yomichan/.eslintrc.json
2020-02-11 22:22:16 -05:00

37 lines
1.1 KiB
JSON

{
"root": true,
"extends": "eslint:recommended",
"parserOptions": {
"ecmaVersion": 8,
"sourceType": "script"
},
"env": {
"browser": true,
"es2017": true,
"webextensions": true
},
"ignorePatterns": [
"/ext/mixed/lib/",
"/ext/bg/js/templates.js"
],
"rules": {
"arrow-parens": ["error", "always"],
"comma-dangle": ["error", "never"],
"curly": ["error", "all"],
"dot-notation": "error",
"eqeqeq": "error",
"no-case-declarations": "error",
"no-const-assign": "error",
"no-constant-condition": "off",
"no-undef": "off",
"no-unused-vars": ["error", {"vars": "local", "args": "after-used", "argsIgnorePattern": "^_", "caughtErrors": "none"}],
"no-unused-expressions": "error",
"no-var": "error",
"prefer-const": ["error", {"destructuring": "all"}],
"quote-props": ["error", "consistent"],
"quotes": ["error", "single", "avoid-escape"],
"require-atomic-updates": "off",
"semi": "error"
}
}