-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy patheslint.config.mjs
More file actions
executable file
·34 lines (32 loc) · 1.22 KB
/
eslint.config.mjs
File metadata and controls
executable file
·34 lines (32 loc) · 1.22 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
// @ts-check
import eslint from "@eslint/js";
import tslint from "typescript-eslint";
export default tslint.config(
eslint.configs.recommended,
...tslint.configs.recommended,
...tslint.configs.stylistic,
{
rules: {
"semi": ["error", "always"], // Add this line to enforce semicolon use
"@typescript-eslint/no-duplicate-enum-values": "off",
//"@typescript-eslint/no-misleading-character-class": "off",
"@typescript-eslint/class-literal-property-style": "off",
"@typescript-eslint/no-this-alias": "off",
"@typescript-eslint/no-unused-vars": [
"warn", {
argsIgnorePattern: "^(_+$|_[^_])",
varsIgnorePattern: "^(_+$|_[^_])",
caughtErrorsIgnorePattern: "^_",
},
],
"@typescript-eslint/no-explicit-any": "off",
//"@typescript-eslint/explicit-module-boundary-types": "off",
//"@typescript-eslint/no-non-null-assertion": "off"
"@typescript-eslint/no-empty-function": "off",
"@typescript-eslint/consistent-indexed-object-style": "off"
},
},
{
files: ["src/*.ts", "src/*.tsx"],
}
);