-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy path.eslintrc
40 lines (40 loc) · 1.23 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
{
"extends": ["plugin:@titian-design/recommended"],
"parserOptions": {
"parser": "@typescript-eslint/parser",
"project": "./tsconfig.json"
},
"rules": {
"react/react-in-jsx-scope": "off",
"no-return-assign": "off",
"no-param-reassign": "off",
"import/prefer-default-export": "off",
"no-unused-vars": ["error", { "varsIgnorePattern": "^h|Fragment$" }],
"@typescript-eslint/no-unused-vars": ["error", { "varsIgnorePattern": "^h|Fragment$" }],
"react/jsx-props-no-spreading": "off",
"no-cond-assign": "warn",
"no-nested-ternary": "warn",
"class-methods-use-this": "warn",
"no-inner-declarations": "warn",
"@typescript-eslint/ban-ts-comment": "warn",
"@typescript-eslint/naming-convention": "warn",
"react/no-unknown-property": [
"error",
{
"ignore": ["class", "onSlotchange", "date-src"]
}
],
"no-underscore-dangle": "warn",
"@titian-design/no-more-args": "warn",
"@typescript-eslint/no-explicit-any":"off",
"import/no-extraneous-dependencies": [
"error",
{
"devDependencies": true
}
],
"jsx-a11y/no-autofocus": "off",
"rules/require-default-props":"off",
"@typescript-eslint/no-var-requires":"off"
}
}