-
Notifications
You must be signed in to change notification settings - Fork 2
/
.eslintrc
77 lines (77 loc) · 1.8 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
{
"env": {
"browser": true,
"es2021": true,
"jest": true
},
"parserOptions": {
"ecmaVersion": 2020,
"sourceType": "module"
},
"ignorePatterns": [
"node_modules",
"packages/backend",
"packages/frontend/app/out",
"packages/design-system/storybook-static"
],
"extends": [
"airbnb",
"prettier",
"plugin:react/recommended",
"plugin:cypress/recommended",
"plugin:mdx/recommended"
],
"plugins": ["prettier", "react", "check-file"],
"overrides": [
{
"files": ["**/*.test.js", "**/*.test.jsx"],
"env": {
"jest": true
}
},
{
"files": "*.mdx",
"parser": "eslint-mdx",
"rules": {
"react/react-in-jsx-scope": "off",
"react/jsx-filename-extension": "off",
"no-use-before-define": "off",
"radix": "off"
}
}
],
"rules": {
"prettier/prettier": ["error", { "endOfLine": "auto" }],
"no-unused-vars": "warn",
"import/no-extraneous-dependencies": "off",
"import/prefer-default-export": "off",
"react/react-in-jsx-scope": "off",
"react/jsx-props-no-spreading": "off",
"react/function-component-definition": [
"warn",
{
"namedComponents": ["function-expression", "arrow-function"],
"unnamedComponents": ["function-expression", "arrow-function"]
}
],
"check-file/folder-match-with-fex": [
"error",
{
"*.test.{js,jsx}": "**/__tests__/"
}
],
"check-file/filename-naming-convention": [
"error",
{
"packages/design-system/**/*.{jsx}": "CAMEL_CASE"
}
],
"check-file/folder-naming-convention": [
"error",
{
"packages/design-system/components/*": "CAMEL_CASE",
"packages/design-system/patterns/*": "CAMEL_CASE"
}
]
}
}