forked from changesets/changesets
-
Notifications
You must be signed in to change notification settings - Fork 13
/
.eslintrc
75 lines (75 loc) · 1.61 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
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
{
"extends": [
"plugin:@typescript-eslint/eslint-recommended",
"standard",
"prettier"
],
"plugins": ["prettier", "@typescript-eslint"],
"parser": "@typescript-eslint/parser",
"rules": {
"prettier/prettier": "error",
"standard/computed-property-even-spacing": "off",
"lines-between-class-members": "off",
"no-template-curly-in-string": "off",
"camelcase": "off",
"import/no-duplicates": "off",
"no-unusued-vars": "off",
"no-use-before-define": "off",
"no-useless-constructor": "off",
"@typescript-eslint/no-unused-vars": [
"error",
{ "argsIgnorePattern": "^_", "ignoreRestSiblings": true }
],
"import/no-extraneous-dependencies": [
"error",
{
"devDependencies": [
"**/__tests__/**/*.{ts,js}",
"**/*.test.{ts,js}",
"**/test.{ts,js}"
]
}
]
},
"overrides": [
{
"files": [
"*.test.js",
"**/__tests__/**",
"*.test.ts",
"**/test.ts",
"**/test-utils/**/*"
],
"env": {
"jest": true
}
},
{
"files": ["**/packages/*/src/*", "**/packages/*/src/**/*"],
"rules": {
"import/no-commonjs": "error"
}
},
{
"files": ["**/__fixtures__/*"],
"rules": {
"no-unused-vars": "off"
},
"env": {
"jest": false
}
},
{
"files": ["*.ts"],
"rules": {
"prefer-const": "off"
}
},
{
"files": ["packages/cli/default-files/config.js"],
"rules": {
"@typescript-eslint/no-unused-vars": "off"
}
}
]
}