-
Notifications
You must be signed in to change notification settings - Fork 6
/
.eslintrc.json
49 lines (49 loc) · 1.77 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
45
46
47
48
49
{
"root": true,
"parser": "@typescript-eslint/parser",
"parserOptions": {
"ecmaVersion": 13,
"sourceType": "module"
},
"plugins": ["@typescript-eslint", "prettier", "import"],
"extends": ["eslint:recommended", "plugin:@typescript-eslint/recommended", "airbnb-base", "prettier" ],
"rules": {
"prettier/prettier": 2, // Means error
"import/extensions": [0, "never"],
"no-plusplus": 0,
"import/no-unresolved": [2, { "ignore": ["vscode"] }],
"import/prefer-default-export": 0,
"import/no-extraneous-dependencies": ["error", {"devDependencies": ["**/*.test.[jt]s", "**/*.test.[jt]sx", "**/*.spec.[jt]s"]}],
"no-useless-constructor": 0,
"no-restricted-syntax": ["error", "ForInStatement", "LabeledStatement", "WithStatement"],
"max-classes-per-file": 0,
"no-use-before-define": 0,
"no-underscore-dangle": 0,
"no-restricted-globals": 0,
"no-nested-ternary": 0,
"no-param-reassign": 0,
"no-shadow": 0,
"@typescript-eslint/no-shadow": 2,
"class-methods-use-this": 0,
"@typescript-eslint/no-explicit-any": "off",
"@typescript-eslint/ban-ts-comment": "off",
"@typescript-eslint/no-namespace": "off",
"no-unused-vars": "off",
"@typescript-eslint/no-unused-vars": [
"error",
{
"argsIgnorePattern": "^_",
"varsIgnorePattern": "^_",
"caughtErrorsIgnorePattern": "^_"
}
]
},
"ignorePatterns": ["**/*.d.ts", "lib", "dist", "pack", "webpack.config.js"],
"settings": {
"import/resolver": {
"node": {
"extensions": [".js", ".jsx", ".ts", ".tsx"]
}
}
}
}