-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.eslintrc.json
44 lines (44 loc) · 1.05 KB
/
.eslintrc.json
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
35
36
37
38
39
40
41
42
43
44
{
"env": {
"browser": false,
"commonjs": false,
"es2021": true,
"node": true
},
"extends": [
"eslint:recommended",
"plugin:@typescript-eslint/recommended",
"prettier"
],
"parser": "@typescript-eslint/parser",
"parserOptions": {
"ecmaVersion": "latest",
"project": ["./tsconfig.json"],
"sourceType": "module"
},
"plugins": ["@typescript-eslint"],
"rules": {
"@typescript-eslint/no-explicit-any": 0,
"@typescript-eslint/consistent-type-definitions": [1, "type"],
"@typescript-eslint/naming-convention": [
"error",
{
"selector": "parameter",
"format": ["camelCase"],
"leadingUnderscore": "allow"
}
],
"@typescript-eslint/typedef": 0,
"@typescript-eslint/no-floating-promises": "warn",
"@typescript-eslint/no-unused-vars": "warn",
"@typescript-eslint/method-signature-style": "error"
},
"ignorePatterns": [
"src/**/*.test.ts",
"out/**/*",
"jest.config.cjs",
"babel.config.cjs",
"scripts/**/*",
"rollup.config.js"
]
}