forked from wix-incubator/obsidian
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.eslintrc.json
105 lines (105 loc) · 3.35 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
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
{
"root": true,
"env": {
"es2021": true,
"jest": true
},
"ignorePatterns": ["**/*.config.js"],
"extends": [
"airbnb-base",
"airbnb-typescript",
"plugin:react/recommended",
"plugin:@typescript-eslint/recommended",
"plugin:import/typescript"
],
"parser": "@typescript-eslint/parser",
"parserOptions": {
"project": "./tsconfig.json",
"ecmaVersion": 2021,
"sourceType": "module",
"ecmaFeatures": {
"jsx": true
}
},
"plugins": [
"react",
"@typescript-eslint",
"import-newlines",
"unused-imports"
],
"rules": {
"max-len": ["error", {"code": 115}],
"lines-between-class-members": ["error", "always", {"exceptAfterSingleLine": true}],
"import/extensions": "off",
"@typescript-eslint/no-non-null-assertion": "off",
"no-useless-constructor": "off",
"@typescript-eslint/member-delimiter-style": "error",
"import/no-unresolved": "off",
"class-methods-use-this": "off",
"react/jsx-filename-extension": ["error", {"extensions": [".js", ".ts", ".jsx", ".tsx"]}],
"react/jsx-props-no-spreading": "off",
"no-use-before-define": "off",
"@typescript-eslint/no-use-before-define": ["off"],
"no-restricted-syntax": "off",
"import/no-named-as-default": "off",
"@typescript-eslint/ban-types": ["off"],
"import/no-extraneous-dependencies": ["error", {"devDependencies": true}],
"max-classes-per-file": ["off"],
"curly": ["error", "multi-line"],
"semi": ["error", "always"],
"comma-dangle": ["error", "always-multiline"],
"function-call-argument-newline": ["error", "consistent"],
"function-paren-newline": ["error", "multiline-arguments"],
"object-curly-newline": [
"error",
{
"ObjectExpression": {
"multiline": true,
"consistent": true
},
"ObjectPattern": {
"multiline": true,
"consistent": true
}
}
],
"no-whitespace-before-property": "error",
"import-newlines/enforce": [
"error",
{
"items": 3,
"max-len": 115,
"semi": false
}
],
"react/display-name": "off",
"no-plusplus": "off",
"no-trailing-spaces": "error",
"no-shadow": "off",
"@typescript-eslint/no-shadow": ["error", {"allow": ["Graph"]}],
"react/button-has-type": "off",
"react/jsx-one-expression-per-line": ["off"],
"arrow-body-style": ["off"],
"@typescript-eslint/quotes": ["error", "single", {"avoidEscape": true, "allowTemplateLiterals": true}],
"@typescript-eslint/lines-between-class-members": "off",
"@typescript-eslint/no-explicit-any": "off",
"import/prefer-default-export": "off",
"@typescript-eslint/no-unused-vars": "off",
"unused-imports/no-unused-imports": "error",
"unused-imports/no-unused-vars": [
"error",
{ "vars": "all", "varsIgnorePattern": "^_", "args": "after-used", "argsIgnorePattern": "^_" }
],
"@typescript-eslint/ban-ts-comment": "off"
},
"settings": {
"import/resolver": {
"node": {
"extensions": [".js", ".jsx", ".ts", ".tsx"]
}
},
"react": {
"version": "detect"
}
}
}