|
| 1 | +{ |
| 2 | + "extends": ["eslint:recommended"], |
| 3 | + "parserOptions": { |
| 4 | + "sourceType": "module", |
| 5 | + "ecmaVersion": 2022 |
| 6 | + }, |
| 7 | + "env": { |
| 8 | + "browser": true, |
| 9 | + "es6": true |
| 10 | + }, |
| 11 | + "rules": { |
| 12 | + "no-undef": ["error"], |
| 13 | + "no-restricted-globals": ["error", "event", "self"], |
| 14 | + "no-const-assign": ["error"], |
| 15 | + "no-debugger": ["error"], |
| 16 | + "no-dupe-class-members": ["error"], |
| 17 | + "no-dupe-keys": ["error"], |
| 18 | + "no-dupe-args": ["error"], |
| 19 | + "no-dupe-else-if": ["error"], |
| 20 | + "no-unsafe-negation": ["error"], |
| 21 | + "no-duplicate-imports": ["error"], |
| 22 | + "valid-typeof": ["error"], |
| 23 | + "no-unused-vars": ["error", { "vars": "all", "args": "none", "ignoreRestSiblings": false, "caughtErrors": "all" }], |
| 24 | + "curly": ["error", "all"], |
| 25 | + "no-restricted-syntax": ["error", "PrivateIdentifier"], |
| 26 | + "prefer-const": ["error", { |
| 27 | + "destructuring": "all", |
| 28 | + "ignoreReadBeforeAssign": true |
| 29 | + }], |
| 30 | + "no-console": ["warn"], |
| 31 | + "no-var": ["error"], |
| 32 | + "arrow-body-style": ["error", "as-needed"], |
| 33 | + "arrow-parens": ["error"], |
| 34 | + "brace-style": ["error"], |
| 35 | + "object-curly-spacing": ["error", "always"], |
| 36 | + "array-bracket-spacing": ["error"], |
| 37 | + "comma-dangle": ["error", "always-multiline"], |
| 38 | + "semi": ["error", "always"], |
| 39 | + "quotes": ["error", "double"], |
| 40 | + "indent": ["error", 4, { "SwitchCase": 1 }], |
| 41 | + "eol-last": ["error"], |
| 42 | + "no-multiple-empty-lines": ["error"], |
| 43 | + "no-trailing-spaces": ["error"] |
| 44 | + }, |
| 45 | + "globals": { |
| 46 | + "diff_match_patch": "readonly", |
| 47 | + "$": "readonly", |
| 48 | + "jQuery": "readonly", |
| 49 | + "Chart": "readonly" |
| 50 | + } |
| 51 | +} |
0 commit comments