@viclafouch/eslint-config-viclafouch 3.3.2 → 3.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.
package/.eslintrc-base.js CHANGED
@@ -11,6 +11,26 @@ module.exports = {
11
11
  }
12
12
  },
13
13
  rules: {
14
+ 'id-length': [
15
+ 'error',
16
+ { min: 2, max: Infinity, exceptions: ['t', '_'], properties: 'never' }
17
+ ],
18
+ 'id-denylist': [
19
+ 'error',
20
+ 'err',
21
+ 'cb',
22
+ 'arr',
23
+ 'acc',
24
+ 'idx',
25
+ 'ctx',
26
+ 'res',
27
+ 'val',
28
+ 'obj',
29
+ 'src',
30
+ 'el',
31
+ 'elem',
32
+ 'req'
33
+ ],
14
34
  'react/prop-types': 'off',
15
35
  'simple-import-sort/imports': 'error',
16
36
  'react/jsx-props-no-spreading': 0,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@viclafouch/eslint-config-viclafouch",
3
- "version": "3.3.2",
3
+ "version": "3.4.0",
4
4
  "description": "ESLint and Prettier Config from Victor de la Fouchardiere",
5
5
  "main": "index.js",
6
6
  "keywords": [
@@ -24,39 +24,41 @@
24
24
  "license": "MIT",
25
25
  "homepage": "https://github.com/viclafouch/eslint-config-viclafouch#readme",
26
26
  "peerDependencies": {
27
- "@babel/core": "7.16.0",
28
- "@babel/eslint-parser": "7.16.3",
29
- "@typescript-eslint/eslint-plugin": "5.4.0",
30
- "@typescript-eslint/parser": "5.4.0",
31
- "eslint": "8.3.0",
32
- "eslint-config-airbnb": "19.0.1",
33
- "eslint-config-prettier": "^8.3.0",
34
- "eslint-plugin-import": "2.25.3",
27
+ "@babel/core": "7.17.5",
28
+ "@babel/eslint-parser": "7.17.0",
29
+ "@typescript-eslint/eslint-plugin": "5.14.0",
30
+ "@typescript-eslint/parser": "5.14.0",
31
+ "eslint": "8.11.0",
32
+ "eslint-config-airbnb": "19.0.4",
33
+ "eslint-config-airbnb-typescript": "16.1.1",
34
+ "eslint-config-prettier": "^8.5.0",
35
+ "eslint-plugin-import": "2.25.4",
35
36
  "eslint-plugin-jsx-a11y": "6.5.1",
36
37
  "eslint-plugin-prettier": "^4.0.0",
37
- "eslint-plugin-react": "7.27.1",
38
+ "eslint-plugin-react": "7.29.3",
38
39
  "eslint-plugin-react-hooks": "4.3.0",
39
40
  "eslint-plugin-simple-import-sort": "^7.0.0",
40
- "prettier": "^2.5.0",
41
- "typescript": "4.5.2"
41
+ "prettier": "^2.5.1",
42
+ "typescript": "4.6.2"
42
43
  },
43
44
  "devDependencies": {
44
- "@babel/core": "7.16.0",
45
- "@babel/eslint-parser": "7.16.3",
46
- "@typescript-eslint/eslint-plugin": "5.4.0",
47
- "@typescript-eslint/parser": "5.4.0",
48
- "eslint": "8.3.0",
49
- "eslint-config-airbnb": "19.0.1",
50
- "eslint-config-prettier": "^8.3.0",
51
- "eslint-plugin-import": "2.25.3",
45
+ "@babel/core": "7.17.5",
46
+ "@babel/eslint-parser": "7.17.0",
47
+ "@typescript-eslint/eslint-plugin": "5.14.0",
48
+ "@typescript-eslint/parser": "5.14.0",
49
+ "eslint": "8.11.0",
50
+ "eslint-config-airbnb": "19.0.4",
51
+ "eslint-config-airbnb-typescript": "16.1.1",
52
+ "eslint-config-prettier": "^8.5.0",
53
+ "eslint-plugin-import": "2.25.4",
52
54
  "eslint-plugin-jsx-a11y": "6.5.1",
53
55
  "eslint-plugin-prettier": "^4.0.0",
54
- "eslint-plugin-react": "7.27.1",
56
+ "eslint-plugin-react": "7.29.3",
55
57
  "eslint-plugin-react-hooks": "4.3.0",
56
58
  "eslint-plugin-simple-import-sort": "^7.0.0",
57
- "prettier": "^2.5.0",
59
+ "prettier": "^2.5.1",
58
60
  "standard-version": "9.3.2",
59
- "typescript": "4.5.2"
61
+ "typescript": "4.6.2"
60
62
  },
61
63
  "scripts": {
62
64
  "lint": "eslint .",
package/typescript.js CHANGED
@@ -4,6 +4,7 @@ module.exports = {
4
4
  'airbnb-typescript',
5
5
  'airbnb/hooks',
6
6
  'plugin:@typescript-eslint/recommended',
7
+ 'plugin:@typescript-eslint/recommended-requiring-type-checking',
7
8
  'plugin:prettier/recommended',
8
9
  './.eslintrc-base.js'
9
10
  ],