@speechanddebate/eslint-config-nsda 1.0.13 → 1.0.16
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/index.js +3 -0
- package/jest.js +10 -0
- package/package.json +9 -8
- package/react.js +3 -1
- package/tabroom.js +39 -0
package/index.js
CHANGED
|
@@ -6,6 +6,7 @@ module.exports = {
|
|
|
6
6
|
"env": {
|
|
7
7
|
"node": true,
|
|
8
8
|
"mocha": true,
|
|
9
|
+
"jest": true,
|
|
9
10
|
},
|
|
10
11
|
"rules": {
|
|
11
12
|
"indent": [2, 4, {"SwitchCase": 1, "MemberExpression": "off", "flatTernaryExpressions": true, "ignoredNodes": ["ConditionalExpression"]}],
|
|
@@ -45,6 +46,8 @@ module.exports = {
|
|
|
45
46
|
"no-else-return": 1,
|
|
46
47
|
"operator-linebreak": 0,
|
|
47
48
|
"class-methods-use-this": 0,
|
|
49
|
+
"prefer-regex-literals": 0,
|
|
50
|
+
"default-param-last": 0,
|
|
48
51
|
"import/no-named-as-default": 0,
|
|
49
52
|
"import/no-mutable-exports": 0,
|
|
50
53
|
"import/no-extraneous-dependencies": 0,
|
package/jest.js
ADDED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@speechanddebate/eslint-config-nsda",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.16",
|
|
4
4
|
"description": "NSDA ESLint config",
|
|
5
5
|
"main": "index.js",
|
|
6
6
|
"scripts": {
|
|
@@ -21,14 +21,15 @@
|
|
|
21
21
|
},
|
|
22
22
|
"homepage": "https://github.com/speechanddebate/eslint-config-nsda#readme",
|
|
23
23
|
"peerDependencies": {
|
|
24
|
-
"eslint": "
|
|
25
|
-
"eslint-plugin-import": "
|
|
26
|
-
"eslint-plugin-jsx-a11y": "
|
|
27
|
-
"eslint-plugin-react": "
|
|
24
|
+
"eslint": "^8.15.0",
|
|
25
|
+
"eslint-plugin-import": "^2.25.2",
|
|
26
|
+
"eslint-plugin-jsx-a11y": "^6.5.1",
|
|
27
|
+
"eslint-plugin-react": "^7.30.0"
|
|
28
28
|
},
|
|
29
29
|
"dependencies": {
|
|
30
|
-
"eslint-config-airbnb": "
|
|
31
|
-
"eslint-config-airbnb-base": "
|
|
32
|
-
"eslint-plugin-react": "^7.
|
|
30
|
+
"eslint-config-airbnb": "^19.0.4",
|
|
31
|
+
"eslint-config-airbnb-base": "^15.0.0",
|
|
32
|
+
"eslint-plugin-react": "^7.30.0",
|
|
33
|
+
"eslint-plugin-jest": "26.5.3"
|
|
33
34
|
}
|
|
34
35
|
}
|
package/react.js
CHANGED
|
@@ -11,7 +11,7 @@ module.exports = {
|
|
|
11
11
|
"mocha": true,
|
|
12
12
|
},
|
|
13
13
|
"parserOptions": {
|
|
14
|
-
"ecmaVersion":
|
|
14
|
+
"ecmaVersion": 2022,
|
|
15
15
|
"ecmaFeatures": {
|
|
16
16
|
"jsx": true
|
|
17
17
|
}
|
|
@@ -55,6 +55,8 @@ module.exports = {
|
|
|
55
55
|
"jsx-a11y/click-events-have-key-events": 0,
|
|
56
56
|
"jsx-a11y/no-autofocus": 0,
|
|
57
57
|
"jsx-a11y/label-has-for": [2, {"required": {"every": ["id"]}}],
|
|
58
|
+
"react/function-component-definition": [2, { "namedComponents": "arrow-function" }],
|
|
59
|
+
"react/no-unstable-nested-components": [2, { "allowAsProps": true }],
|
|
58
60
|
|
|
59
61
|
// New rules that are to be kept off
|
|
60
62
|
"react/destructuring-assignment": 0,
|
package/tabroom.js
ADDED
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
module.exports = {
|
|
2
|
+
"extends": ["airbnb", "./index.js", "./react.js"],
|
|
3
|
+
"rules": {
|
|
4
|
+
"no-tabs": 0,
|
|
5
|
+
"key-spacing": 0,
|
|
6
|
+
"comma-spacing": 0,
|
|
7
|
+
"implicit-arrow-linebreak": 0,
|
|
8
|
+
"space-before-function-paren": 0,
|
|
9
|
+
"space-in-parens": 0,
|
|
10
|
+
"import/no-dynamic-require": 0,
|
|
11
|
+
"global-require": 0,
|
|
12
|
+
"padded-blocks": 0,
|
|
13
|
+
"no-plusplus": 0,
|
|
14
|
+
"indent": [
|
|
15
|
+
"error",
|
|
16
|
+
"tab"
|
|
17
|
+
],
|
|
18
|
+
"no-multi-spaces": [
|
|
19
|
+
0,
|
|
20
|
+
{
|
|
21
|
+
"exceptions": {
|
|
22
|
+
"Property": true,
|
|
23
|
+
"VariableDeclarator": true
|
|
24
|
+
}
|
|
25
|
+
}
|
|
26
|
+
],
|
|
27
|
+
"react/jsx-indent": [
|
|
28
|
+
0,
|
|
29
|
+
"tab",
|
|
30
|
+
{
|
|
31
|
+
"checkAttributes": false,
|
|
32
|
+
"indentLogicalExpressions": true
|
|
33
|
+
}
|
|
34
|
+
],
|
|
35
|
+
"react/jsx-indent-props": 0,
|
|
36
|
+
"react/jsx-equals-spacing": 0,
|
|
37
|
+
"jsx-a11y/anchor-has-content": 0
|
|
38
|
+
}
|
|
39
|
+
};
|