@egy186/eslint-config 0.96.0 → 0.98.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/base.js CHANGED
@@ -152,9 +152,9 @@ module.exports = {
152
152
  'no-nested-ternary': 'error',
153
153
  'no-new': 'error',
154
154
  'no-new-func': 'error',
155
- 'no-new-object': 'error',
156
155
  'no-new-wrappers': 'error',
157
156
  'no-nonoctal-decimal-escape': 'error',
157
+ 'no-object-constructor': 'error',
158
158
  'no-octal': 'error',
159
159
  'no-octal-escape': 'error',
160
160
  'no-param-reassign': ['error', { props: false }],
package/jest.js CHANGED
@@ -12,6 +12,7 @@ module.exports = {
12
12
  'jest/no-commented-out-tests': 'error',
13
13
  'jest/no-conditional-expect': 'error',
14
14
  'jest/no-conditional-in-test': 'error',
15
+ 'jest/no-confusing-set-timeout': 'error',
15
16
  'jest/no-deprecated-functions': 'error',
16
17
  'jest/no-disabled-tests': 'error',
17
18
  'jest/no-done-callback': 'error',
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.96.0",
4
+ "version": "0.98.0",
5
5
  "author": "egy186",
6
6
  "bugs": {
7
7
  "url": "https://github.com/egy186/eslint-config/issues"
@@ -10,13 +10,13 @@
10
10
  "lodash": "^4.17.21"
11
11
  },
12
12
  "devDependencies": {
13
- "@typescript-eslint/eslint-plugin": "~6.4.1",
14
- "@typescript-eslint/parser": "~6.4.1",
15
- "eslint": "~8.48.0",
16
- "eslint-plugin-import": "~2.28.1",
17
- "eslint-plugin-jest": "~27.2.3",
18
- "eslint-plugin-jsdoc": "~46.5.0",
19
- "eslint-plugin-n": "~16.0.2",
13
+ "@typescript-eslint/eslint-plugin": "~6.9.1",
14
+ "@typescript-eslint/parser": "~6.9.1",
15
+ "eslint": "~8.52.0",
16
+ "eslint-plugin-import": "~2.29.0",
17
+ "eslint-plugin-jest": "~27.6.0",
18
+ "eslint-plugin-jsdoc": "~46.8.2",
19
+ "eslint-plugin-n": "~16.2.0",
20
20
  "eslint-plugin-react": "~7.33.2",
21
21
  "eslint-plugin-react-hooks": "~4.6.0",
22
22
  "husky": "^8.0.1",
@@ -45,11 +45,11 @@
45
45
  "license": "MIT",
46
46
  "main": "index.js",
47
47
  "peerDependencies": {
48
- "@typescript-eslint/eslint-plugin": "^6.2.0",
49
- "@typescript-eslint/parser": "^6.2.0",
50
- "eslint": "^8.27.0",
48
+ "@typescript-eslint/eslint-plugin": "^6.9.0",
49
+ "@typescript-eslint/parser": "^6.9.0",
50
+ "eslint": "^8.50.0",
51
51
  "eslint-plugin-import": "^2.27.4",
52
- "eslint-plugin-jest": "^27.2.0",
52
+ "eslint-plugin-jest": "^27.3.0",
53
53
  "eslint-plugin-jsdoc": "^46.2.6",
54
54
  "eslint-plugin-n": "^16.0.0",
55
55
  "eslint-plugin-react": "^7.32.0",
package/typescript.js CHANGED
@@ -46,6 +46,7 @@ module.exports = {
46
46
  ],
47
47
  '@typescript-eslint/lines-around-comment': 'off',
48
48
  '@typescript-eslint/lines-between-class-members': 'error',
49
+ '@typescript-eslint/max-params': 'error',
49
50
  '@typescript-eslint/member-delimiter-style': 'error',
50
51
  '@typescript-eslint/member-ordering': 'error',
51
52
  '@typescript-eslint/method-signature-style': 'error',
@@ -55,6 +56,10 @@ module.exports = {
55
56
  format: ['camelCase'],
56
57
  selector: 'default'
57
58
  },
59
+ {
60
+ format: ['camelCase', 'PascalCase'],
61
+ selector: 'import'
62
+ },
58
63
  {
59
64
  format: ['camelCase', 'UPPER_CASE'],
60
65
  selector: 'variable'
@@ -151,6 +156,7 @@ module.exports = {
151
156
  '@typescript-eslint/padding-line-between-statements': 'error',
152
157
  '@typescript-eslint/parameter-properties': 'error',
153
158
  '@typescript-eslint/prefer-as-const': 'error',
159
+ '@typescript-eslint/prefer-destructuring': ['error', { enforceForDeclarationWithTypeAnnotation: true }],
154
160
  '@typescript-eslint/prefer-enum-initializers': 'error',
155
161
  '@typescript-eslint/prefer-for-of': 'error',
156
162
  '@typescript-eslint/prefer-function-type': 'off',
@@ -199,6 +205,7 @@ module.exports = {
199
205
  'keyword-spacing': 'off',
200
206
  'lines-around-comment': 'off',
201
207
  'lines-between-class-members': 'off',
208
+ 'max-params': 'off',
202
209
  'no-dupe-class-members': 'off',
203
210
  'no-extra-parens': 'off',
204
211
  'no-extra-semi': 'off',
@@ -212,6 +219,7 @@ module.exports = {
212
219
  'no-use-before-define': 'off',
213
220
  'object-curly-spacing': 'off',
214
221
  'padding-line-between-statements': 'off',
222
+ 'prefer-destructuring': 'off',
215
223
  'require-await': 'off',
216
224
  semi: 'off',
217
225
  'space-before-blocks': 'off',