1
0
mirror of https://github.com/kkapsner/CanvasBlocker synced 2024-11-01 02:48:44 +01:00
CanvasBlocker/.eslintrc.json

40 lines
1.3 KiB
JSON
Raw Normal View History

2017-09-24 00:11:16 +02:00
{
"env": {
"browser": true,
"commonjs": true,
"es6": true,
"webextensions": true
},
"parserOptions": {
"ecmaFeatures": {
"jsx": true
},
"sourceType": "script"
},
2017-10-03 15:35:31 +02:00
"extends": "eslint:recommended",
"globals": {
2017-11-07 00:36:44 +01:00
"exportFunction": false
2017-10-03 15:35:31 +02:00
},
2017-09-24 00:11:16 +02:00
"rules": {
2017-10-05 19:00:00 +02:00
"brace-style": ["error", "stroustrup", {"allowSingleLine": true}],
"comma-spacing": ["error", { "before": false, "after": true }],
"constructor-super": "warn",
"eqeqeq": "error",
"max-len": ["warn", {"code": 120, "tabWidth": 4}],
"max-lines": ["warn", {"max": 400, "skipBlankLines": true, "skipComments": true}],
"max-params": ["warn", 4],
2017-09-24 00:11:16 +02:00
"no-const-assign": "warn",
"no-this-before-super": "warn",
2017-10-05 19:00:00 +02:00
"no-undef": "error",
2017-09-24 00:11:16 +02:00
"no-unreachable": "warn",
2017-10-03 15:35:31 +02:00
"no-unused-vars": "off",
2017-10-05 19:00:00 +02:00
"no-trailing-spaces": ["error", {"skipBlankLines": true}],
"no-mixed-spaces-and-tabs": ["error", "smart-tabs"],
"indent": ["error", "tab", {"SwitchCase": 1}],
"space-in-parens": ["error", "never"],
2017-09-24 00:11:16 +02:00
"valid-typeof": "warn",
2017-10-03 15:35:31 +02:00
"quotes": ["error", "double"],
"semi": ["error", "always"],
2017-10-05 19:00:00 +02:00
"strict": ["error", "function"]
2017-09-24 00:11:16 +02:00
}
}