yomichan/.eslintrc.json

29 lines
922 B
JSON
Raw Normal View History

2019-11-25 05:40:30 +00:00
{
"extends": "eslint:recommended",
"parserOptions": {
"ecmaVersion": 8
},
2019-11-25 19:48:20 +00:00
"ignorePatterns": [
"/ext/mixed/lib/",
"/ext/bg/js/templates.js"
],
2019-11-25 05:40:30 +00:00
"rules": {
2019-11-27 03:01:54 +00:00
"arrow-parens": ["error", "always"],
2019-11-25 05:40:30 +00:00
"comma-dangle": ["error", "never"],
2019-11-25 19:48:20 +00:00
"curly": ["error", "all"],
2019-11-25 05:40:30 +00:00
"dot-notation": "error",
2019-11-25 19:48:20 +00:00
"eqeqeq": "error",
2019-11-25 05:40:30 +00:00
"no-case-declarations": "error",
2019-11-25 19:48:20 +00:00
"no-const-assign": "error",
"no-constant-condition": "off",
"no-undef": "off",
"no-unused-vars": ["error", {"vars": "local", "args": "after-used", "argsIgnorePattern": "^_", "caughtErrors": "none"}],
"no-var": "error",
"prefer-const": ["error", {"destructuring": "all"}],
2019-11-25 05:40:30 +00:00
"quote-props": ["error", "consistent"],
2019-11-25 19:48:20 +00:00
"quotes": ["error", "single", "avoid-escape"],
"require-atomic-updates": "off",
"semi": "error"
2019-11-25 05:40:30 +00:00
}
}