-
Notifications
You must be signed in to change notification settings - Fork 0
/
.eslintrc.cjs
36 lines (32 loc) · 874 Bytes
/
.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
const {
configure,
presets
} = require("eslint-kit");
module.exports = configure({
allowDebug: process.env.NODE_ENV !== "production",
presets: [
presets.imports({
sort: {
newline: true,
groups: [
['^\\u0000'],
['^(child_process|crypto|events|fs|http|https|os|path)(/.*)?$', '^@?\\w'],
['^~/app', '^~/pages', '^~/widgets', '^~/features', '^~/entities', '^~/shared', '^'],
['^\\.'],
]
},
}),
presets.node(),
presets.prettier(),
presets.typescript(),
presets.react({
newJSXTransform: true,
}),
presets.effector()
],
extend: {
rules: {
"react/no-unknown-property": "off"
}
}
});