forked from grafana/k6-docs
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.eslintrc
95 lines (95 loc) · 2.25 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
{
"parser": "babel-eslint",
"env": {
"browser": true,
"node": true
},
"rules": {
"prettier/prettier": ["error"],
"arrow-body-style": "warn",
"camelcase": 0,
"object-curly-newline": 0,
"operator-linebreak": 0,
"no-shadow": 0,
"max-len": [2, 120],
"no-underscore-dangle": "off",
"react/prop-types": 0,
"react/jsx-curly-brace-presence": [
2,
{
"props": "ignore",
"children": "never"
}
],
"react/jsx-tag-spacing": [
2,
{
"closingSlash": "never",
"beforeSelfClosing": "always",
"afterOpening": "allow-multiline",
"beforeClosing": "never"
}
],
"react/jsx-filename-extension": [
2,
{
"extensions": [".js"]
}
],
"react/no-array-index-key": 0,
"react/jsx-one-expression-per-line": 0,
"react/jsx-props-no-spreading": 0,
"react/jsx-wrap-multilines": 0,
"import/no-extraneous-dependencies": [
"warn",
{ "devDependencies": false, "peerDependencies": true }
],
"import/order": [
"warn",
{
"alphabetize": {
"order": "asc" /* sort in ascending order. Options: ['ignore', 'asc', 'desc'] */,
"caseInsensitive": true /* ignore case. Options: [true, false] */
},
"newlines-between": "always"
}
],
"import/no-unresolved": [
2,
{
"ignore": [
"components",
"hooks",
"images",
"layouts",
"pages",
"styles",
"svg",
"templates",
"utils",
"contexts",
"i18n",
"data",
]
}
],
"import/prefer-default-export": 0,
"jsx-a11y/html-has-lang": 0, // We use react-helmet for that
"jsx-a11y/control-has-associated-label": 0,
"mdx/no-jsx-html-comments": "error",
"mdx/no-unused-expressions": "error"
},
"extends": ["airbnb", "plugin:mdx/recommended", "prettier"],
"plugins": ["prettier"],
"overrides": [
{
"files": ["*.mdx" ,"*.md"],
"parser": "eslint-mdx", // enable `eslint-mdx` manually if it does not work
"extends": ["plugin:mdx/recommended"],
"rules": {
"prettier/prettier": 0,
"max-len": 0,
}
}
]
}