-
-
Notifications
You must be signed in to change notification settings - Fork 1
/
.eslintrc
55 lines (55 loc) · 1.26 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
46
47
48
49
50
51
52
53
54
55
{
"root": true,
"extends": ["airbnb-base", "plugin:prettier/recommended"],
"ignorePatterns": ["lib/", "reports/"],
"parser": "@typescript-eslint/parser",
"plugins": ["@typescript-eslint", "prettier"],
"settings": {
"import/resolver": {
"node": {
"extensions": [".js", ".jsx", ".ts", ".tsx"]
}
}
},
"rules": {
"max-len": "off",
"no-template-curly-in-string": "off",
"global-require": "off",
"import/extensions": [
"error",
"ignorePackages",
{
"js": "never",
"jsx": "never",
"ts": "never",
"tsx": "never"
}
]
},
"overrides": [
{
"files": ["src/rules/*"],
"extends": ["plugin:eslint-plugin/rules-recommended"],
"rules": {
"eslint-plugin/require-meta-docs-description": [
"error",
{ "pattern": "^(Enforce|Require|Disallow)" }
],
"eslint-plugin/require-meta-type": "off"
}
},
{
"files": ["__tests__/src/rules/*.{js,ts,jsx,tsx}"],
"extends": ["plugin:eslint-plugin/tests-recommended"]
},
{
"files": ["**/*.test.{js,ts,jsx,tsx}"],
"rules": {
"import/no-extraneous-dependencies": "off"
},
"env": {
"jest": true
}
}
]
}