-
Notifications
You must be signed in to change notification settings - Fork 0
/
.eslintrc.cjs
66 lines (65 loc) · 1.42 KB
/
.eslintrc.cjs
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
module.exports = {
root: true,
env: {
es2022: true
},
extends: [
"@mia-platform/eslint-config-mia",
"plugin:@typescript-eslint/recommended",
"plugin:@typescript-eslint/stylistic-type-checked",
],
ignorePatterns: [
".eslintrc.cjs",
"compiled",
"build",
],
parser: "@typescript-eslint/parser",
parserOptions: {
ecmaVersion: "latest",
sourceType: "module",
project: [
"./packages/*/tsconfig.json"
],
tsconfigRootDir: __dirname
},
plugins: [
"import",
"@typescript-eslint"
],
rules: {
"import/order": ["error", {
groups: [
["builtin", "external"],
],
"newlines-between": "always"
}],
"max-statements": "off",
"no-underscore-dangle": "off",
"no-shadow": "off",
"sort-imports": 0,
/**
* Eslint plugin Typescript
* @link https://typescript-eslint.io/rules
*/
"@typescript-eslint/consistent-type-definitions": ["error", "type"],
"@typescript-eslint/explicit-function-return-type": ["error", {
allowExpressions: true
}],
"@typescript-eslint/no-shadow": ["off"],
"@typescript-eslint/prefer-nullish-coalescing": "off",
"@typescript-eslint/no-unused-vars": [
"error",
{
"argsIgnorePattern": "^_",
}
]
},
overrides: [
{
files: ["packages/console-types/**/*.test.ts"],
rules: {
"id-length": "off",
}
}
]
}