|
| 1 | +{ |
| 2 | + "root": true, |
| 3 | + "env": { |
| 4 | + "browser": true, |
| 5 | + "commonjs": true, |
| 6 | + "es2021": true, |
| 7 | + "node": true |
| 8 | + }, |
| 9 | + "extends": ["eslint:recommended", "plugin:@typescript-eslint/recommended"], |
| 10 | + "parser": "@typescript-eslint/parser", |
| 11 | + "parserOptions": { |
| 12 | + "ecmaVersion": 12 |
| 13 | + }, |
| 14 | + "plugins": ["@typescript-eslint"], |
| 15 | + "rules": { |
| 16 | + "strict": "warn", |
| 17 | + "@typescript-eslint/no-non-null-assertion": "off", |
| 18 | + "@typescript-eslint/ban-ts-comment": "off", |
| 19 | + "@typescript-eslint/no-this-alias": "off", |
| 20 | + "@typescript-eslint/naming-convention": [ |
| 21 | + "warn", |
| 22 | + { |
| 23 | + "selector": "function", |
| 24 | + "format": ["camelCase"] |
| 25 | + } |
| 26 | + ], |
| 27 | + "@typescript-eslint/semi": "warn", |
| 28 | + "semi": "off", |
| 29 | + "getter-return": "warn", |
| 30 | + "no-dupe-args": "warn", |
| 31 | + "no-dupe-else-if": "warn", |
| 32 | + "no-dupe-keys": "warn", |
| 33 | + "no-duplicate-case": "warn", |
| 34 | + "no-empty": "warn", |
| 35 | + "accessor-pairs": "warn", |
| 36 | + "array-callback-return": "warn", |
| 37 | + "block-scoped-var": "warn", |
| 38 | + "class-methods-use-this": "warn", |
| 39 | + "complexity": "warn", |
| 40 | + "consistent-return": "warn", |
| 41 | + "curly": "warn", |
| 42 | + "default-case": "warn", |
| 43 | + "default-case-last": "warn", |
| 44 | + "default-param-last": "warn", |
| 45 | + "dot-location": "off", |
| 46 | + "dot-notation": "warn", |
| 47 | + "eqeqeq": "warn", |
| 48 | + "grouped-accessor-pairs": "warn", |
| 49 | + "guard-for-in": "off", |
| 50 | + "max-classes-per-file": ["warn", 2], |
| 51 | + "no-alert": "warn", |
| 52 | + "no-caller": "warn", |
| 53 | + "no-case-declarations": "off", |
| 54 | + "no-constructor-return": "warn", |
| 55 | + "no-div-regex": "warn", |
| 56 | + "no-else-return": "warn", |
| 57 | + "no-empty-function": "warn", |
| 58 | + "no-empty-pattern": "warn", |
| 59 | + "no-eq-null": "warn", |
| 60 | + "no-eval": "warn", |
| 61 | + "no-extend-native": "off", |
| 62 | + "no-extra-bind": "warn", |
| 63 | + "no-extra-label": "warn", |
| 64 | + "no-fallthrough": "warn", |
| 65 | + "no-floating-decimal": "warn", |
| 66 | + "no-global-assign": "warn", |
| 67 | + "no-implicit-coercion": "warn", |
| 68 | + "no-implicit-globals": "warn", |
| 69 | + "no-implied-eval": "warn", |
| 70 | + "no-invalid-this": "off", |
| 71 | + "no-iterator": "warn", |
| 72 | + "no-labels": "warn", |
| 73 | + "no-lone-blocks": "warn", |
| 74 | + "no-loop-func": "warn", |
| 75 | + "no-magic-numbers": "off", |
| 76 | + "no-mixed-spaces-and-tabs": ["warn", "smart-tabs"], |
| 77 | + "no-multi-spaces": "warn", |
| 78 | + "no-multi-str": "warn", |
| 79 | + "no-new": "warn", |
| 80 | + "no-new-func": "warn", |
| 81 | + "no-new-wrappers": "warn", |
| 82 | + "no-octal": "warn", |
| 83 | + "no-octal-escape": "warn", |
| 84 | + "no-param-reassign": "warn", |
| 85 | + "no-proto": "warn", |
| 86 | + "no-redeclare": "off", |
| 87 | + "no-restricted-properties": "warn", |
| 88 | + "no-return-assign": "warn", |
| 89 | + "no-return-await": "warn", |
| 90 | + "no-script-url": "warn", |
| 91 | + "no-self-assign": "warn", |
| 92 | + "no-self-compare": "warn", |
| 93 | + "no-sequences": "warn", |
| 94 | + "no-throw-literal": "warn", |
| 95 | + "no-unmodified-loop-condition": "warn", |
| 96 | + "no-unused-expressions": "warn", |
| 97 | + "no-unused-labels": "warn", |
| 98 | + "no-useless-call": "warn", |
| 99 | + "no-useless-catch": "warn", |
| 100 | + "no-useless-concat": "warn", |
| 101 | + "no-useless-escape": "warn", |
| 102 | + "no-useless-return": "warn", |
| 103 | + "no-void": "warn", |
| 104 | + "no-warning-comments": "warn", |
| 105 | + "no-with": "warn", |
| 106 | + "prefer-named-capture-group": "warn", |
| 107 | + "prefer-promise-reject-errors": "off", |
| 108 | + "prefer-regex-literals": "warn", |
| 109 | + "radix": "warn", |
| 110 | + "require-await": "warn", |
| 111 | + "require-unicode-regexp": "off", |
| 112 | + "vars-on-top": "warn", |
| 113 | + "wrap-iife": "warn" |
| 114 | + } |
| 115 | +} |
0 commit comments