-
Notifications
You must be signed in to change notification settings - Fork 6
/
Copy path.eslintrc.json
27 lines (27 loc) · 1.3 KB
/
.eslintrc.json
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
{
"root": true,
"ignorePatterns": ["**/*"],
"parser": "@typescript-eslint/parser",
"plugins": ["@nx", "prettier", "typescript-sort-keys", "@typescript-eslint"],
"extends": ["plugin:import/recommended", "plugin:@typescript-eslint/recommended", "prettier", "plugin:prettier/recommended"],
"rules": {
"prettier/prettier": ["warn", { "tabWidth": 4, "printWidth": 150 }],
"max-lines": ["warn", 300],
"sort-imports": ["warn", { "ignoreCase": true, "ignoreDeclarationSort": true }],
"import/prefer-default-export": "off",
"import/order": [
"warn",
{
"groups": [["external", "builtin", "object"], "type", "internal", ["parent", "sibling", "index"]],
"pathGroups": [{ "pattern": "@/**", "group": "internal" }],
"alphabetize": { "order": "asc", "caseInsensitive": true }
}
],
"typescript-sort-keys/interface": "warn",
"@typescript-eslint/no-non-null-asserted-optional-chain": "off",
"@typescript-eslint/no-explicit-any": "off",
"@typescript-eslint/no-unused-vars": ["warn", { "argsIgnorePattern": "^_", "varsIgnorePattern": "^_" }],
"@typescript-eslint/no-non-null-assertion": "off",
"@typescript-eslint/no-inferrable-types": "off"
}
}