Skip to content

Commit fb72d69

Browse files
committed
adding codeclimate 6 file
1 parent 6cff60b commit fb72d69

File tree

1 file changed

+91
-0
lines changed

1 file changed

+91
-0
lines changed

codeclimateEslintRulesv6.js

Lines changed: 91 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,91 @@
1+
// THIS FILE IS AUTO-GENERATED. DO NOT MODIFY THIS FILE BY HAND
2+
module.exports = {
3+
"plugins": [
4+
"html",
5+
"json",
6+
"babel",
7+
"react-hooks"
8+
],
9+
"extends": [
10+
"airbnb",
11+
"prettier/react",
12+
"plugin:jest/recommended",
13+
"plugin:prettier/recommended"
14+
],
15+
"rules": {
16+
"no-console": [
17+
"warn",
18+
{
19+
"allow": [
20+
"error",
21+
"trace",
22+
"time"
23+
]
24+
}
25+
],
26+
"no-param-reassign": "off",
27+
"no-plusplus": "off",
28+
"no-unused-expressions": "off",
29+
"babel/no-unused-expressions": [
30+
"warn",
31+
{
32+
"allowShortCircuit": true
33+
}
34+
],
35+
"no-use-before-define": [
36+
"error",
37+
{
38+
"functions": false,
39+
"classes": true,
40+
"variables": true
41+
}
42+
],
43+
"no-warning-comments": 1,
44+
"prefer-destructuring": "off",
45+
"import/no-extraneous-dependencies": [
46+
"error",
47+
{
48+
"devDependencies": [
49+
"**/*.stories.js",
50+
"**/*.test.js",
51+
"**/demo/**"
52+
]
53+
}
54+
],
55+
"jsx-a11y/label-has-for": 0,
56+
"jsx-a11y/label-has-associated-control": [
57+
2,
58+
{
59+
"assert": "either"
60+
}
61+
],
62+
"react/prop-types": "off",
63+
"react/jsx-filename-extension": "off",
64+
"react/require-default-props": "off",
65+
"react-hooks/rules-of-hooks": "error",
66+
"react-hooks/exhaustive-deps": "warn",
67+
"jest/no-large-snapshots": "error",
68+
"prettier/prettier": [
69+
"warn",
70+
{
71+
"arrowParens": "always",
72+
"printWidth": 120,
73+
"semi": false,
74+
"singleQuote": true,
75+
"trailingComma": "es5"
76+
}
77+
]
78+
},
79+
"env": {
80+
"es6": true,
81+
"browser": true
82+
},
83+
"parserOptions": {
84+
"ecmaVersion": 2018,
85+
"sourceType": "module",
86+
"ecmaFeatures": {
87+
"jsx": true
88+
}
89+
},
90+
"parser": "babel-eslint"
91+
}

0 commit comments

Comments
 (0)