mirror of
https://github.com/AleziaKurdis/Overte-community-apps.git
synced 2025-04-12 04:27:19 +02:00
Add initial eslint config.
This commit is contained in:
parent
2228d48bb0
commit
1fe8c9752a
1 changed files with 31 additions and 0 deletions
31
applications/inventory-app/.eslintrc.js
Normal file
31
applications/inventory-app/.eslintrc.js
Normal file
|
@ -0,0 +1,31 @@
|
|||
module.exports = {
|
||||
root: true,
|
||||
extends: "eslint:recommended",
|
||||
"parserOptions": {
|
||||
"ecmaVersion": 5
|
||||
},
|
||||
|
||||
"rules": {
|
||||
"brace-style": ["error", "1tbs", { "allowSingleLine": false }],
|
||||
"camelcase": ["error"],
|
||||
"comma-dangle": ["error", "never"],
|
||||
"curly": ["error", "all"],
|
||||
"eqeqeq": ["error", "always"],
|
||||
"indent": ["error", 4, { "SwitchCase": 1 }],
|
||||
"key-spacing": ["error", { "beforeColon": false, "afterColon": true, "mode": "strict" }],
|
||||
"keyword-spacing": ["error", { "before": true, "after": true }],
|
||||
"max-len": ["error", 128, 4],
|
||||
"new-cap": ["error"],
|
||||
"no-console": ["off"],
|
||||
"no-floating-decimal": ["error"],
|
||||
"no-magic-numbers": ["error", { "ignore": [0.5, -1, 0, 1, 2], "ignoreArrayIndexes": true }],
|
||||
"no-multi-spaces": ["error"],
|
||||
"no-multiple-empty-lines": ["error"],
|
||||
"no-unused-vars": ["error", { "args": "none", "vars": "local" }],
|
||||
"semi": ["error", "always"],
|
||||
"space-before-blocks": ["error"],
|
||||
"space-before-function-paren": ["error", { "anonymous": "ignore", "named": "never" }],
|
||||
"spaced-comment": ["error", "always", { "line": { "markers": ["/"] } }]
|
||||
}
|
||||
|
||||
};
|
Loading…
Reference in a new issue