@egy186/eslint-config 0.97.0 → 0.98.1

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/package.json +9 -9
  2. package/typescript.js +8 -0
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.97.0",
4
+ "version": "0.98.1",
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.7.2",
14
- "@typescript-eslint/parser": "~6.7.2",
15
- "eslint": "~8.50.0",
16
- "eslint-plugin-import": "~2.28.1",
17
- "eslint-plugin-jest": "~27.4.0",
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
18
  "eslint-plugin-jsdoc": "~46.8.2",
19
- "eslint-plugin-n": "~16.1.0",
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,8 +45,8 @@
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",
48
+ "@typescript-eslint/eslint-plugin": "^6.9.0",
49
+ "@typescript-eslint/parser": "^6.9.0",
50
50
  "eslint": "^8.50.0",
51
51
  "eslint-plugin-import": "^2.27.4",
52
52
  "eslint-plugin-jest": "^27.3.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',
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',