@speechanddebate/eslint-config-nsda 1.0.14 → 1.0.17

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 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
@@ -0,0 +1,10 @@
1
+ module.exports = {
2
+ "plugins": [
3
+ "jest",
4
+ ],
5
+ "extends": ["airbnb", "plugin:jest/recommended", "./index.js"],
6
+ "rules": {
7
+ "jest/prefer-expect-assertions": "off",
8
+ "jest/expect-expect": "off"
9
+ }
10
+ };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@speechanddebate/eslint-config-nsda",
3
- "version": "1.0.14",
3
+ "version": "1.0.17",
4
4
  "description": "NSDA ESLint config",
5
5
  "main": "index.js",
6
6
  "scripts": {
@@ -29,6 +29,7 @@
29
29
  "dependencies": {
30
30
  "eslint-config-airbnb": "^19.0.4",
31
31
  "eslint-config-airbnb-base": "^15.0.0",
32
- "eslint-plugin-react": "^7.30.0"
32
+ "eslint-plugin-react": "^7.30.0",
33
+ "eslint-plugin-jest": "26.5.3"
33
34
  }
34
35
  }
package/react.js CHANGED
@@ -9,9 +9,10 @@ module.exports = {
9
9
  "browser": true,
10
10
  "node": true,
11
11
  "mocha": true,
12
+ "jest": true,
12
13
  },
13
14
  "parserOptions": {
14
- "ecmaVersion": 2018,
15
+ "ecmaVersion": 2022,
15
16
  "ecmaFeatures": {
16
17
  "jsx": true
17
18
  }
@@ -55,6 +56,8 @@ module.exports = {
55
56
  "jsx-a11y/click-events-have-key-events": 0,
56
57
  "jsx-a11y/no-autofocus": 0,
57
58
  "jsx-a11y/label-has-for": [2, {"required": {"every": ["id"]}}],
59
+ "react/function-component-definition": [2, { "namedComponents": "arrow-function" }],
60
+ "react/no-unstable-nested-components": [2, { "allowAsProps": true }],
58
61
 
59
62
  // New rules that are to be kept off
60
63
  "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
+ };