-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.eslintrc
107 lines (107 loc) · 3.05 KB
/
.eslintrc
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
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
{
// Specifies the ESLint parser
"parser": "@typescript-eslint/parser",
"parserOptions": {
// Allows for the parsing of modern ECMAScript features
"ecmaVersion": 2020,
// Allows for the use of imports,
"sourceType": "module",
"ecmaFeatures": {
},
"tsconfigRootDir": ".",
"project": [
"./tsconfig.json"
],
"projectFolderIgnoreList": [
"node_modules",
"dist",
"build",
".yarn",
"build-utils"
]
},
"env": {
"es6": true,
"node": true
},
"extends": [
"plugin:import/errors",
"plugin:import/warnings",
"plugin:import/typescript",
"plugin:prettier/recommended",
"plugin:@typescript-eslint/eslint-recommended",
"plugin:@typescript-eslint/recommended",
"plugin:@typescript-eslint/recommended-requiring-type-checking",
"standard-kit/prettier/typescript",
"standard-kit/prettier/node"
],
"plugins": [
"prettier",
"simple-import-sort",
"@typescript-eslint"
],
"rules": {
"prettier/prettier": "error",
"@typescript-eslint/ban-ts-comment": "off",
"@typescript-eslint/no-empty-function": "warn",
"no-unused-vars": 0,
"@typescript-eslint/no-unused-vars": [
"warn",
{
"ignoreRestSiblings": true,
"argsIgnorePattern": "^_"
}
],
"@typescript-eslint/no-use-before-define": [
"error"
],
"@typescript-eslint/no-explicit-any": 0,
"@typescript-eslint/no-unsafe-argument": "off",
"@typescript-eslint/no-unsafe-assignment": "off",
"@typescript-eslint/no-unsafe-member-access": "off",
"@typescript-eslint/no-unsafe-call": "off",
"@typescript-eslint/no-unsafe-return": "off",
"@typescript-eslint/no-var-requires": "off",
"@typescript-eslint/prefer-ts-expect-error": "off",
"@typescript-eslint/promise-function-async": "off",
"@typescript-eslint/require-await": "off",
"@typescript-eslint/restrict-template-expressions": "off",
"@typescript-eslint/strict-boolean-expressions": "off",
"@typescript-eslint/unbound-method": 0,
"@typescript-eslint/no-non-null-assertion": "off",
"no-param-reassign": "error",
"no-duplicate-imports": "warn",
//"dynamic-import-chunkname": "warn",
"import/order": [
"error",
{
"alphabetize": {
"order": "asc",
/* sort in ascending order. Options: ['ignore', 'asc', 'desc'] */
"caseInsensitive": true
/* ignore case. Options: [true, false] */
},
"newlines-between": "always"
}
],
"import/extensions": 0,
"import/no-unresolved": 0,
"import/prefer-default-export": 0,
"import/no-extraneous-dependencies": "off",
"sort-keys": "off",
"comma-dangle": "off",
"no-use-before-define": "off",
"spaced-comment": "warn",
"max-len": 0,
"indent": 0,
"no-console": 0,
"arrow-body-style": 0,
"no-extra-semi": "error",
"no-multiple-empty-lines": "warn",
"no-restricted-globals": "off",
"eslint linebreak-style": 0,
"object-curly-newline": 0,
"no-shadow": 0
},
"settings": {}
}