-
Notifications
You must be signed in to change notification settings - Fork 17
/
Copy path.eslintrc.js
40 lines (39 loc) · 1.07 KB
/
.eslintrc.js
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
require("@rushstack/eslint-config/patch/modern-module-resolution")
module.exports = {
extends: [
"@rushstack/eslint-config/profile/node",
"@rushstack/eslint-config/mixins/friendly-locals"
],
plugins: ["simple-import-sort"],
ignorePatterns: [".eslintrc.js", "lib", "test", "bin"],
rules: {
"@typescript-eslint/naming-convention": [
"warn",
{
"selector": "interface",
"format": ["PascalCase"],
"custom": {
"regex": "^I[A-Z]",
"match": false,
},
},
],
"@typescript-eslint/member-ordering": "error",
"@typescript-eslint/no-require-imports": "error",
"@typescript-eslint/no-parameter-properties": "off",
"simple-import-sort/imports": "error",
"simple-import-sort/exports": "error",
"@rushstack/no-new-null": "off",
"sort-imports": "off",
"import/order": "off",
"no-duplicate-imports": "off",
},
overrides: [
{
files: ["*/schemas/*.ts", "**/schemas.ts", "**/schema.ts"],
rules: {
"@typescript-eslint/typedef": "off",
},
},
],
}