@speechanddebate/eslint-config-nsda 1.0.19 → 1.0.21

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/README.md CHANGED
@@ -1,5 +1,5 @@
1
1
  # eslint-config-nsda
2
- This package exports the base NSDA eslint config, and a second optional config for React/JSX. The exports respectively extend airbnb-base and airbnb. They require eslint and eslint-plugin-import, along with eslint-plugin-react and eslint-plugin-jsx-a11y for the React config.
2
+ This package exports the base NSDA eslint config, and a second optional config for React/JSX. The exports respectively extend airbnb-base and airbnb. They require eslint and eslint-plugin-import, along with eslint-plugin-react, eslint-plugin-jsx-a11y, and eslint-plugin-testing-library for the React config.
3
3
 
4
4
  First install eslint and any plugins:
5
5
 
@@ -8,7 +8,7 @@ npm install eslint eslint-plugin-import --save-dev
8
8
  ```
9
9
  or
10
10
  ```
11
- npm install eslint eslint-plugin-import eslint-plugin-react eslint-plugin-jsx-a11y --save-dev
11
+ npm install eslint eslint-plugin-import eslint-plugin-react eslint-plugin-jsx-a11y eslint-plugin-testing-library --save-dev
12
12
  ```
13
13
 
14
14
  Then install the package:
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@speechanddebate/eslint-config-nsda",
3
- "version": "1.0.19",
3
+ "version": "1.0.21",
4
4
  "description": "NSDA ESLint config",
5
5
  "main": "index.js",
6
6
  "scripts": {
@@ -29,7 +29,8 @@
29
29
  "dependencies": {
30
30
  "eslint-config-airbnb": "^19.0.4",
31
31
  "eslint-config-airbnb-base": "^15.0.0",
32
+ "eslint-plugin-jest": "26.5.3",
32
33
  "eslint-plugin-react": "^7.30.0",
33
- "eslint-plugin-jest": "26.5.3"
34
+ "eslint-plugin-testing-library": "^6.0.1"
34
35
  }
35
36
  }
package/react.js CHANGED
@@ -4,6 +4,7 @@ module.exports = {
4
4
  "import",
5
5
  "react",
6
6
  "jsx-a11y",
7
+ "testing-library",
7
8
  ],
8
9
  "env": {
9
10
  "browser": true,
package/tabroom.js CHANGED
@@ -11,6 +11,7 @@ module.exports = {
11
11
  "import/no-dynamic-require": 0,
12
12
  "global-require": 0,
13
13
  "padded-blocks": 0,
14
+ "no-restricted-syntax": ["error", "LabeledStatement", "WithStatement"],
14
15
  "no-plusplus": 0,
15
16
  "indent": [
16
17
  "error",