grasp/extension/.eslintrc.js

39 lines
838 B
JavaScript
Raw Permalink Normal View History

2019-01-04 13:27:24 -08:00
module.exports = {
"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",
"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?
};