|
| 1 | +module.exports = { |
| 2 | + "env": { |
| 3 | + "browser": true, |
| 4 | + "node": true |
| 5 | + }, |
| 6 | + "extends": [ |
| 7 | + "prettier" |
| 8 | + ], |
| 9 | + "parser": "@typescript-eslint/parser", |
| 10 | + "parserOptions": { |
| 11 | + "project": "tsconfig.json", |
| 12 | + "sourceType": "module" |
| 13 | + }, |
| 14 | + "plugins": [ |
| 15 | + "eslint-plugin-import", |
| 16 | + "eslint-plugin-jsdoc", |
| 17 | + "@typescript-eslint" |
| 18 | + ], |
| 19 | + "root": true, |
| 20 | + "rules": { |
| 21 | + "@typescript-eslint/await-thenable": "error", |
| 22 | + "@typescript-eslint/consistent-type-assertions": "error", |
| 23 | + "@typescript-eslint/member-delimiter-style": "off", |
| 24 | + "@typescript-eslint/naming-convention": [ |
| 25 | + "error", |
| 26 | + { |
| 27 | + "selector": "variable", |
| 28 | + "format": [ |
| 29 | + "camelCase", |
| 30 | + "UPPER_CASE", |
| 31 | + "PascalCase" |
| 32 | + ], |
| 33 | + "leadingUnderscore": "allow", |
| 34 | + "trailingUnderscore": "forbid" |
| 35 | + } |
| 36 | + ], |
| 37 | + "@typescript-eslint/no-empty-function": "error", |
| 38 | + "@typescript-eslint/no-floating-promises": "error", |
| 39 | + "@typescript-eslint/no-misused-new": "error", |
| 40 | + "@typescript-eslint/no-unnecessary-qualifier": "error", |
| 41 | + "@typescript-eslint/no-unnecessary-type-assertion": "error", |
| 42 | + "@typescript-eslint/no-unused-expressions": [ |
| 43 | + "error", |
| 44 | + { |
| 45 | + "allowTaggedTemplates": true, |
| 46 | + "allowShortCircuit": true |
| 47 | + } |
| 48 | + ], |
| 49 | + "@typescript-eslint/no-unused-vars": "off", |
| 50 | + "@typescript-eslint/prefer-namespace-keyword": "error", |
| 51 | + "@typescript-eslint/quotes": "off", |
| 52 | + "@typescript-eslint/semi": "off", |
| 53 | + "@typescript-eslint/triple-slash-reference": [ |
| 54 | + "error", |
| 55 | + { |
| 56 | + "path": "always", |
| 57 | + "types": "prefer-import", |
| 58 | + "lib": "always" |
| 59 | + } |
| 60 | + ], |
| 61 | + "@typescript-eslint/type-annotation-spacing": "error", |
| 62 | + "@typescript-eslint/unified-signatures": "error", |
| 63 | + "brace-style": [ |
| 64 | + "error", |
| 65 | + "1tbs" |
| 66 | + ], |
| 67 | + "comma-dangle": [ |
| 68 | + "error", |
| 69 | + { |
| 70 | + "objects": "always-multiline", |
| 71 | + "arrays": "always-multiline", |
| 72 | + "functions": "never" |
| 73 | + } |
| 74 | + ], |
| 75 | + "curly": [ |
| 76 | + "error", |
| 77 | + "multi-line" |
| 78 | + ], |
| 79 | + "eol-last": "error", |
| 80 | + "eqeqeq": [ |
| 81 | + "error", |
| 82 | + "smart" |
| 83 | + ], |
| 84 | + "id-denylist": [ |
| 85 | + "error", |
| 86 | + "any", |
| 87 | + "Number", |
| 88 | + "number", |
| 89 | + "String", |
| 90 | + "string", |
| 91 | + "Boolean", |
| 92 | + "boolean", |
| 93 | + "Undefined", |
| 94 | + "undefined" |
| 95 | + ], |
| 96 | + "id-match": "error", |
| 97 | + "import/no-deprecated": "off", |
| 98 | + "jsdoc/check-alignment": "error", |
| 99 | + "jsdoc/check-indentation": "off", |
| 100 | + "jsdoc/newline-after-description": "off", |
| 101 | + "new-parens": "error", |
| 102 | + "no-caller": "error", |
| 103 | + "no-cond-assign": "error", |
| 104 | + "no-constant-condition": "error", |
| 105 | + "no-control-regex": "error", |
| 106 | + "no-duplicate-imports": "error", |
| 107 | + "no-empty": "error", |
| 108 | + "no-empty-function": "off", |
| 109 | + "no-eval": "error", |
| 110 | + "no-fallthrough": "error", |
| 111 | + "no-invalid-regexp": "error", |
| 112 | + "no-multiple-empty-lines": "error", |
| 113 | + "no-redeclare": "error", |
| 114 | + "no-regex-spaces": "error", |
| 115 | + "no-return-await": "error", |
| 116 | + "no-throw-literal": "error", |
| 117 | + "no-trailing-spaces": "error", |
| 118 | + "no-underscore-dangle": "off", |
| 119 | + "no-unused-expressions": "off", |
| 120 | + "no-unused-labels": "error", |
| 121 | + "no-unused-vars": "off", |
| 122 | + "no-var": "error", |
| 123 | + "one-var": [ |
| 124 | + "error", |
| 125 | + "never" |
| 126 | + ], |
| 127 | + "radix": "error", |
| 128 | + "space-in-parens": [ |
| 129 | + "error", |
| 130 | + "never" |
| 131 | + ], |
| 132 | + "spaced-comment": [ |
| 133 | + "error", |
| 134 | + "always", |
| 135 | + { |
| 136 | + "markers": [ |
| 137 | + "/" |
| 138 | + ] |
| 139 | + } |
| 140 | + ], |
| 141 | + "use-isnan": "error" |
| 142 | + } |
| 143 | +}; |
0 commit comments