-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy path.eslintrc.cjs
66 lines (64 loc) · 1.56 KB
/
.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
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
module.exports = {
"ignorePatterns": [
"node_modules/",
"dist/",
"builder/",
"!.storybook/",
"storybook-static/",
"binary-repo/",
"lib/"
],
"parser": "@babel/eslint-parser",
"extends": [
"airbnb",
"plugin:json/recommended",
"plugin:jest/recommended",
"plugin:prettier/recommended",
"plugin:storybook/recommended",
"plugin:mdx/recommended"
],
"settings": {
"mdx/code-blocks": true,
},
"rules": {
"prettier/prettier": ["error"],
"import/no-extraneous-dependencies": [
"error",
{
"devDependencies": true
}
],
"react/jsx-filename-extension": [2, { "extensions": [".js", ".jsx", ".ts", ".tsx", ".mdx"] }],
"no-console": ["warn", { "allow": ["warn", "error", "info", "debug"] }],
"no-param-reassign": ["error", { "props": false }],
"class-methods-use-this": 0,
"jsx-a11y/control-has-associated-label": "warn",
"import/prefer-default-export": "off",
"import/no-webpack-loader-syntax": "off",
"jsx-a11y/anchor-has-content": "off",
"jsx-a11y/heading-has-content": "off",
"react/self-closing-comp": "off",
},
"env": {
"jest/globals": true
},
"globals": {
"Formio": true,
"document": true,
"window": true,
"$": true,
"premium": true,
"FormioLoader": true,
"localStorage": true
},
"overrides": [
{
"files": ["*.mdx", "*.md"],
"extends": ["plugin:mdx/recommended", "plugin:mdx/overrides"],
"settings": {
"mdx/code-blocks": true,
"mdx/language-mapper": {}
}
}
]
}