github.com/simpleiot/simpleiot@v0.18.3/frontend/.eslintrc.json (about) 1 { 2 "extends": ["eslint:recommended", "prettier"], 3 "parserOptions": { 4 "sourceType": "module", 5 "ecmaVersion": 2022 6 }, 7 "rules": { 8 "eqeqeq": ["error", "always", { "null": "never" }], 9 "no-unused-expressions": "error", 10 "new-cap": "error", 11 "no-nested-ternary": "error", 12 "no-unused-vars": ["error", { "args": "none" }], 13 "no-var": "error", 14 "no-template-curly-in-string": "error", 15 "no-alert": "error", 16 "linebreak-style": ["error", "unix"], 17 "spaced-comment": ["warn", "always"], 18 "arrow-body-style": ["error", "as-needed"], 19 "prefer-destructuring": [ 20 "warn", 21 { 22 "AssignmentExpression": { "object": false, "array": true }, 23 "VariableDeclarator": { "object": true, "array": true } 24 } 25 ], 26 "prefer-const": [ 27 "error", 28 { 29 "destructuring": "all", 30 "ignoreReadBeforeAssign": false 31 } 32 ], 33 "object-shorthand": ["warn", "always"], 34 "require-atomic-updates": "warn" 35 }, 36 "env": { 37 "browser": true, 38 "es6": true 39 }, 40 "globals": { 41 "process": "readonly" 42 } 43 }