eslint-config-adslot 1.2.2 → 1.4.0

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.
Files changed (2) hide show
  1. package/index.js +8 -1
  2. package/package.json +9 -9
package/index.js CHANGED
@@ -41,6 +41,7 @@ module.exports = {
41
41
  'react-hooks',
42
42
  'lodash',
43
43
  'chai-friendly',
44
+ 'jest',
44
45
  ],
45
46
 
46
47
  extends: ['prettier'],
@@ -177,8 +178,9 @@ module.exports = {
177
178
  'no-unused-vars': [
178
179
  'error',
179
180
  {
180
- args: 'none',
181
+ args: 'all',
181
182
  ignoreRestSiblings: true,
183
+ argsIgnorePattern: '^_',
182
184
  },
183
185
  ],
184
186
  'no-use-before-define': [
@@ -321,5 +323,10 @@ module.exports = {
321
323
  'lodash/chain-style': ['error', 'as-needed'],
322
324
  'lodash/chaining': ['error', 'always'],
323
325
  'lodash/path-style': ['error', 'string'],
326
+
327
+ // https://github.com/jest-community/eslint-plugin-jest
328
+ // could also be used in non-jest tests
329
+ 'jest/no-disabled-tests': 'error',
330
+ 'jest/no-focused-tests': 'error',
324
331
  },
325
332
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "eslint-config-adslot",
3
- "version": "1.2.2",
3
+ "version": "1.4.0",
4
4
  "description": "ESLint configuration for Adslot",
5
5
  "main": "index.js",
6
6
  "files": [
@@ -31,19 +31,19 @@
31
31
  "release:patch": "npm version patch -m 'build: release patch version %s'"
32
32
  },
33
33
  "dependencies": {
34
- "@typescript-eslint/eslint-plugin": "^5.22.0",
35
- "@typescript-eslint/parser": "^5.22.0",
34
+ "@typescript-eslint/eslint-plugin": "^5.30.0",
35
+ "@typescript-eslint/parser": "^5.30.0",
36
36
  "confusing-browser-globals": "^1.0.11",
37
37
  "eslint-config-prettier": "^8.5.0",
38
38
  "eslint-plugin-chai-friendly": "^0.7.2",
39
39
  "eslint-plugin-import": "^2.26.0",
40
- "eslint-plugin-jsx-a11y": "^6.5.1",
40
+ "eslint-plugin-jest": "^27.0.1",
41
+ "eslint-plugin-jsx-a11y": "^6.6.0",
41
42
  "eslint-plugin-lodash": "^7.4.0",
42
- "eslint-plugin-react": "^7.29.4",
43
- "eslint-plugin-react-hooks": "^4.5.0"
43
+ "eslint-plugin-react": "^7.30.1",
44
+ "eslint-plugin-react-hooks": "^4.6.0"
44
45
  },
45
46
  "peerDependencies": {
46
- "eslint": "^8.14.0"
47
- },
48
- "devDependencies": {}
47
+ "eslint": "^8.18.0"
48
+ }
49
49
  }