forked from uvarov-frontend/vanilla-calendar-pro
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.eslintrc
45 lines (45 loc) · 1.19 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
{
"root": true,
"env": {
"browser": true,
"es2021": true
},
"extends": [
"airbnb-base",
"airbnb-typescript/base",
"plugin:@typescript-eslint/recommended",
"plugin:cypress/recommended"
],
"plugins": ["@typescript-eslint"],
"parser": "@typescript-eslint/parser",
"parserOptions": {
"project": "./tsconfig.json"
},
"rules": {
"no-tabs": "off",
"no-plusplus": "off",
"no-param-reassign": "off",
"no-nested-ternary": "off",
"import/extensions": "off",
"import/no-unresolved": "off",
"import/no-extraneous-dependencies": ["error", { "devDependencies": true }],
"class-methods-use-this": "off",
"max-len": ["error", { "code": 180 }],
"prefer-destructuring": ["error", { "object": true, "array": false }],
"indent": "off",
"@typescript-eslint/indent": ["error", "tab", { "SwitchCase": 1 }],
"@typescript-eslint/lines-between-class-members": "off"
},
"overrides": [
{
"files": ["./examples/**/*.ts"],
"rules": {
"@typescript-eslint/no-use-before-define": "off",
"@typescript-eslint/no-unused-vars": "off",
"@typescript-eslint/indent": ["error", 2, { "SwitchCase": 1 }],
"indent": ["error", 2, { "SwitchCase": 1 }],
"no-console": "off"
}
}
]
}