-
Notifications
You must be signed in to change notification settings - Fork 130
/
.eslintrc.json
35 lines (35 loc) · 1.14 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
{
"root": true,
"extends": ["./node_modules/@spryker/frontend-config.eslint/.eslintrc.js", "plugin:@typescript-eslint/recommended"],
"parser": "@typescript-eslint/parser",
"parserOptions": {
"ecmaVersion": 2020,
"sourceType": "module",
"project": "./tsconfig.json"
},
"plugins": ["deprecation"],
"ignorePatterns": [
"docker/",
"public/*/assets/",
"**/dist/",
"**/node_modules/",
"vendor/",
"src/Pyz/Zed/*/Presentation/Components/"
],
"rules": {
"accessor-pairs": ["error", { "setWithoutGet": true, "enforceForClassMembers": false }],
"@typescript-eslint/no-empty-function": ["error", { "allow": ["methods"] }],
"@typescript-eslint/no-magic-numbers": [
"error",
{
"ignore": [-1, 0, 1],
"ignoreDefaultValues": true,
"ignoreClassFieldInitialValues": true,
"ignoreArrayIndexes": true,
"ignoreEnums": true,
"ignoreReadonlyClassProperties": true
}
],
"deprecation/deprecation": "warn"
}
}