-
Notifications
You must be signed in to change notification settings - Fork 12
/
Copy path.eslintrc
40 lines (40 loc) · 1.29 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
{
"env": {
"es6": true,
"node": true
},
"parser": "@typescript-eslint/parser",
"parserOptions": {
"project": "./tsconfig.json"
},
"extends": [
"@alifd/eslint-config-next",
"plugin:@typescript-eslint/recommended",
"prettier"
],
"plugins": ["@typescript-eslint", "eslint-plugin-tsdoc"],
"overrides": [
{
"files": ["./test/**/*.ts", "./test/**/*.tsx"],
"extends": ["plugin:cypress/recommended"],
"plugins": ["cypress"]
}
],
"rules": {
"tsdoc/syntax": "error",
"valid-jsdoc": "off",
"max-statements": "off",
"max-len": "off",
"import/prefer-default-export": "off",
"no-unused-vars": "off",
"@typescript-eslint/no-unused-vars": ["warn", {"ignoreRestSiblings": true}],
"no-use-before-define": "off",
"react/no-multi-comp": "off",
"react/jsx-filename-extension": ["error", { "extensions": [".tsx", ".jsx"] }],
"@typescript-eslint/no-use-before-define": "error",
"@typescript-eslint/no-explicit-any": "warn",
"@typescript-eslint/no-this-alias": "warn",
"@typescript-eslint/consistent-type-exports": "warn",
"@typescript-eslint/consistent-type-imports": "warn"
}
}