2019-01-04 13:27:24 -08:00
|
|
|
module.exports = {
|
2022-12-23 13:27:08 -08:00
|
|
|
"parser": "@babel/eslint-parser",
|
2019-01-06 12:49:39 -08:00
|
|
|
"plugins": [
|
|
|
|
"flowtype"
|
|
|
|
],
|
2019-01-04 13:27:24 -08:00
|
|
|
'extends': [
|
|
|
|
// "google",
|
|
|
|
"eslint:recommended",
|
2019-01-06 12:49:39 -08:00
|
|
|
"plugin:flowtype/recommended",
|
2019-01-04 13:27:24 -08:00
|
|
|
],
|
|
|
|
'env': {
|
|
|
|
'browser': true,
|
|
|
|
'webextensions': true,
|
|
|
|
'node': true,
|
|
|
|
'es6': true,
|
|
|
|
},
|
|
|
|
|
|
|
|
"parserOptions": {
|
|
|
|
'sourceType': 'module',
|
|
|
|
"ecmaFeatures": {
|
|
|
|
"forOf": true,
|
|
|
|
"modules": true,
|
|
|
|
}
|
|
|
|
},
|
|
|
|
|
|
|
|
"rules": {
|
|
|
|
"indent": "off",
|
|
|
|
"comma-dangle": "off",
|
|
|
|
"no-console": "off",
|
2022-12-23 13:27:08 -08:00
|
|
|
"no-inner-declarations": "off",
|
|
|
|
"flowtype/space-before-type-colon": "off",
|
|
|
|
"no-unused-vars": ["error", {
|
|
|
|
"argsIgnorePattern": "^_",
|
|
|
|
"varsIgnorePattern": "^_"
|
|
|
|
}],
|
2019-01-04 13:27:24 -08:00
|
|
|
}
|
|
|
|
// TODO use flow?
|
|
|
|
};
|