-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.eslintrc
129 lines (129 loc) · 4.18 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
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
{
"$schema": "https://json.schemastore.org/eslintrc.json",
"root": true,
"env": {
"browser": false,
"es2024": true,
"node": true
},
"extends": ["plugin:jsx-a11y/recommended", "plugin:prettier/recommended", "plugin:react/recommended"],
"settings": {
"react": {
"version": "detect"
}
},
"plugins": [
"@typescript-eslint",
"eslint-plugin-jsdoc",
"jsx-a11y",
"prettier",
"react",
"simple-import-sort",
"unused-imports"
],
"parser": "@typescript-eslint/parser",
"parserOptions": {
"ecmaFeatures": {
"jsx": true
},
"sourceType": "module",
"ecmaVersion": "latest",
"project": [
"./tsconfig.json",
"./tsconfig.node.json",
"./tsconfig.test.json",
"./apps/**/tsconfig.json",
"./apps/**/tsconfig.test.json",
"./packages/**/tsconfig.json",
"./packages/**/tsconfig.node.json",
"./packages/**/tsconfig.test.json"
]
},
"rules": {
"@next/next/no-html-link-for-pages": "off",
"@typescript-eslint/consistent-type-exports": ["error", { "fixMixedExportsWithInlineTypeSpecifier": false }],
"@typescript-eslint/consistent-type-imports": [
"error",
{ "fixStyle": "separate-type-imports", "prefer": "type-imports" }
],
"@typescript-eslint/no-require-imports": "error",
"@typescript-eslint/no-unnecessary-condition": "warn",
"brace-style": [
"error",
"1tbs",
{
"allowSingleLine": true
}
],
"consistent-return": "error",
"import/first": "off",
"import/order": "off",
"indent": "off",
"jsdoc/check-alignment": "error",
"jsdoc/check-indentation": "off",
"jsdoc/check-line-alignment": "error",
"jsdoc/check-param-names": "error",
"jsdoc/check-property-names": "error",
"jsdoc/check-syntax": "error",
"jsdoc/check-types": "error",
"jsdoc/require-hyphen-before-param-description": "error",
"jsx-a11y/alt-text": "off",
"jsx-a11y/anchor-is-valid": "off",
"jsx-a11y/interactive-supports-focus": "off",
"no-console": [
"error",
{
"allow": ["debug", "warn", "error"]
}
],
"no-mixed-operators": "off",
"no-unused-vars": "off",
"no-useless-constructor": "off",
"prettier/prettier": "error",
"react/jsx-uses-react": "off",
"react/no-children-prop": "off",
"react/no-find-dom-node": "off",
"react/no-string-refs": "off",
"react/prop-types": "error",
"react/react-in-jsx-scope": "off",
"react/display-name": "off",
"semi": ["error", "always"],
"sort-imports": "off",
"simple-import-sort/exports": "error",
"simple-import-sort/imports": [
"error",
{
"groups": [
["server-only"],
// Side effect imports and styles.
["^\\u0000", "vitest", "^.+\\.s?css$"],
// Node.js built-ins.
["^node:", "^react", "^/next"],
// Our packages.
["^@nordcom(/.*|$)"],
// Path aliases.
["^@/\\w", "^"],
// Local components.
["^@/components(/.*|$)"],
// Parent imports.
["^\\.\\.(?!/?$)"],
// Relative imports.
["^\\.", "^\\./?$"],
// Types.
["^.+\\u0000$", "^.+\\u0000$\\."]
]
}
],
"standard/computed-property-even-spacing": "off",
"unused-imports/no-unused-imports": "error",
"unused-imports/no-unused-vars": [
"warn",
{
"vars": "all",
"varsIgnorePattern": "^_",
"args": "after-used",
"argsIgnorePattern": "^_"
}
]
}
}