@egy186/eslint-config 0.82.1 → 0.84.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/modules.js CHANGED
@@ -4,6 +4,7 @@ module.exports = {
4
4
  parserOptions: { sourceType: 'module' },
5
5
  plugins: ['import'],
6
6
  rules: {
7
+ 'import/consistent-type-specifier-style': 'error',
7
8
  'import/default': 'error',
8
9
  'import/dynamic-import-chunkname': 'error',
9
10
  'import/export': 'error',
@@ -24,6 +25,7 @@ module.exports = {
24
25
  'import/no-deprecated': 'error',
25
26
  'import/no-duplicates': 'error',
26
27
  'import/no-dynamic-require': 'error',
28
+ 'import/no-empty-named-blocks': 'error',
27
29
  'import/no-extraneous-dependencies': 'off',
28
30
  'import/no-import-module-exports': 'error',
29
31
  'import/no-internal-modules': 'off',
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@egy186/eslint-config",
3
3
  "description": "Eslint shareable config",
4
- "version": "0.82.1",
4
+ "version": "0.84.0",
5
5
  "author": "egy186",
6
6
  "bugs": {
7
7
  "url": "https://github.com/egy186/eslint-config/issues"
@@ -10,18 +10,18 @@
10
10
  "lodash": "^4.17.21"
11
11
  },
12
12
  "devDependencies": {
13
- "@typescript-eslint/eslint-plugin": "~5.47.1",
14
- "@typescript-eslint/parser": "~5.47.1",
15
- "eslint": "~8.31.0",
16
- "eslint-plugin-import": "~2.26.0",
17
- "eslint-plugin-jest": "~27.2.0",
18
- "eslint-plugin-jsdoc": "~39.6.4",
13
+ "@typescript-eslint/eslint-plugin": "~5.50.0",
14
+ "@typescript-eslint/parser": "~5.50.0",
15
+ "eslint": "~8.33.0",
16
+ "eslint-plugin-import": "~2.27.5",
17
+ "eslint-plugin-jest": "~27.2.1",
18
+ "eslint-plugin-jsdoc": "~39.8.0",
19
19
  "eslint-plugin-node": "~11.1.0",
20
- "eslint-plugin-react": "~7.31.11",
20
+ "eslint-plugin-react": "~7.32.2",
21
21
  "eslint-plugin-react-hooks": "~4.6.0",
22
22
  "husky": "^8.0.1",
23
23
  "require-dir": "^1.2.0",
24
- "typescript": "^4.9.4"
24
+ "typescript": "~4.9.5"
25
25
  },
26
26
  "engines": {
27
27
  "node": ">=14.19.1"
@@ -45,14 +45,14 @@
45
45
  "license": "MIT",
46
46
  "main": "index.js",
47
47
  "peerDependencies": {
48
- "@typescript-eslint/eslint-plugin": "^5.42.0",
49
- "@typescript-eslint/parser": "^5.42.0",
48
+ "@typescript-eslint/eslint-plugin": "^5.50.0",
49
+ "@typescript-eslint/parser": "^5.50.0",
50
50
  "eslint": "^8.27.0",
51
- "eslint-plugin-import": "^2.25.3",
51
+ "eslint-plugin-import": "^2.27.4",
52
52
  "eslint-plugin-jest": "^27.2.0",
53
53
  "eslint-plugin-jsdoc": "^39.5.0",
54
54
  "eslint-plugin-node": "^11.1.0",
55
- "eslint-plugin-react": "^7.30.0",
55
+ "eslint-plugin-react": "^7.32.0",
56
56
  "eslint-plugin-react-hooks": "^4.3.0",
57
57
  "typescript": "^4.4.4"
58
58
  },
package/react.js CHANGED
@@ -84,7 +84,6 @@ module.exports = {
84
84
  'react/jsx-pascal-case': 'error',
85
85
  'react/jsx-props-no-multi-spaces': 'error',
86
86
  'react/jsx-props-no-spreading': 'off',
87
- 'react/jsx-sort-default-props': 'error',
88
87
  'react/jsx-sort-props': 'error',
89
88
  'react/jsx-tag-spacing': ['error', { beforeClosing: 'never' }],
90
89
  'react/jsx-uses-react': 'error',
@@ -106,6 +105,7 @@ module.exports = {
106
105
  'react/no-is-mounted': 'error',
107
106
  'react/no-multi-comp': 'error',
108
107
  'react/no-namespace': 'error',
108
+ 'react/no-object-type-as-default-prop': 'error',
109
109
  'react/no-redundant-should-component-update': 'error',
110
110
  'react/no-render-return-value': 'error',
111
111
  'react/no-set-state': 'warn',
@@ -142,6 +142,7 @@ module.exports = {
142
142
  ]
143
143
  }
144
144
  ],
145
+ 'react/sort-default-props': 'error',
145
146
  'react/sort-prop-types': 'error',
146
147
  'react/state-in-constructor': 'error',
147
148
  'react/static-property-placement': 'error',
package/typescript.js CHANGED
@@ -28,6 +28,13 @@ module.exports = {
28
28
  '@typescript-eslint/func-call-spacing': 'error',
29
29
  '@typescript-eslint/indent': ['error', 2],
30
30
  '@typescript-eslint/init-declarations': 'error',
31
+ '@typescript-eslint/key-spacing': [
32
+ 'error',
33
+ {
34
+ afterColon: true,
35
+ beforeColon: false
36
+ }
37
+ ],
31
38
  '@typescript-eslint/keyword-spacing': [
32
39
  'error',
33
40
  {
@@ -180,6 +187,7 @@ module.exports = {
180
187
  'comma-dangle': 'off',
181
188
  'dot-notation': 'off',
182
189
  'init-declarations': 'off',
190
+ 'key-spacing': 'off',
183
191
  'keyword-spacing': 'off',
184
192
  'lines-between-class-members': 'off',
185
193
  'no-dupe-class-members': 'off',