@origin-1/eslint-config 1.10.0 → 1.12.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/lib/rules.js +9 -9
  2. package/package.json +7 -8
package/lib/rules.js CHANGED
@@ -79,6 +79,7 @@ exports.RULES = {
79
79
  'no-sparse-arrays': 'off',
80
80
  'no-template-curly-in-string': 'off',
81
81
  'no-this-before-super': ['error'],
82
+ 'no-unassigned-vars': ['error'],
82
83
  'no-undef': jsts(['error'], 'off'),
83
84
  'no-unexpected-multiline': 'off',
84
85
  'no-unmodified-loop-condition': 'off',
@@ -88,6 +89,7 @@ exports.RULES = {
88
89
  'no-unsafe-negation': ['error'],
89
90
  'no-unsafe-optional-chaining': ['error'],
90
91
  'no-unused-private-class-members': ['error'],
92
+ 'no-use-before-define': 'off',
91
93
  'no-useless-assignment': ['error'],
92
94
  'no-useless-backreference': ['error'],
93
95
  'require-atomic-updates': 'off',
@@ -121,6 +123,7 @@ exports.RULES = {
121
123
  'max-lines': 'off',
122
124
  'max-lines-per-function': 'off',
123
125
  'max-nested-callbacks': 'off',
126
+ 'max-params': 'off',
124
127
  'max-statements': 'off',
125
128
  'new-cap': ['error', { capIsNew: false }],
126
129
  'no-alert': ['error'],
@@ -153,6 +156,7 @@ exports.RULES = {
153
156
  'no-lone-blocks': beforeJSOrElse(2015, ['error'], 'off'),
154
157
  'no-lonely-if': 'off',
155
158
  'no-loop-func': ['error'],
159
+ 'no-magic-numbers': 'off',
156
160
  'no-multi-assign': 'off',
157
161
  'no-multi-str': ['error'],
158
162
  'no-negated-condition': 'off',
@@ -175,6 +179,7 @@ exports.RULES = {
175
179
  'no-return-assign': ['error', 'always'],
176
180
  'no-script-url': ['error'],
177
181
  'no-sequences': ['error'],
182
+ 'no-shadow': 'off',
178
183
  'no-shadow-restricted-names': ['error', { reportGlobalThis: true }],
179
184
  'no-ternary': 'off',
180
185
  'no-throw-literal': jsts(['error'], 'off'),
@@ -196,7 +201,7 @@ exports.RULES = {
196
201
  'no-void': 'off',
197
202
  'no-warning-comments': 'off',
198
203
  'no-with': ['error'],
199
- 'object-shorthand': beforeJSOrElse(2015, 'off', ['error']),
204
+ 'object-shorthand': beforeJSOrElse(2015, 'off', ['error', 'always', { avoidQuotes: true }]),
200
205
  'one-var': ['error', 'never'],
201
206
  'operator-assignment': ['error'],
202
207
  'prefer-arrow-callback': beforeJSOrElse(2015, 'off', ['error']),
@@ -224,15 +229,11 @@ exports.RULES = {
224
229
  },
225
230
  [exports.HYBRID]: {
226
231
  'no-unused-vars': beforeJSOrElse(2018, ['error', { caughtErrors: 'none', vars: 'local' }], 2019, ['error', { caughtErrors: 'none', ignoreRestSiblings: true, vars: 'local' }], ['error', { ignoreRestSiblings: true, vars: 'local' }]),
227
- 'no-use-before-define': 'off',
228
232
  'consistent-return': 'off',
229
233
  'dot-notation': ['error'],
230
- 'max-params': 'off',
231
234
  'no-implied-eval': 'off',
232
- 'no-magic-numbers': 'off',
233
235
  'no-redeclare': jsts(['error', { builtinGlobals: true }], 'off'),
234
236
  'no-restricted-imports': 'off',
235
- 'no-shadow': 'off',
236
237
  'prefer-destructuring': beforeJSOrElse(2015, 'off', ['error']),
237
238
  'prefer-promise-reject-errors': 'off',
238
239
  'require-await': ['error'],
@@ -315,6 +316,7 @@ exports.RULES = {
315
316
  'no-unnecessary-type-arguments': ['error'],
316
317
  'no-unnecessary-type-assertion': ['error'],
317
318
  'no-unnecessary-type-constraint': ['error'],
319
+ 'no-unnecessary-type-conversion': ['error'],
318
320
  'no-unsafe-enum-comparison': ['error'],
319
321
  'no-useless-empty-export': ['error'],
320
322
  'non-nullable-type-assertion-style': ['error'],
@@ -337,7 +339,6 @@ exports.RULES = {
337
339
  'strict-boolean-expressions': 'off',
338
340
  'switch-exhaustiveness-check': ['error', { considerDefaultExhaustiveForUnions: true }],
339
341
  'triple-slash-reference': ['error', { lib: 'never' }],
340
- 'typedef': ['error'],
341
342
  'unified-signatures': ['error', { ignoreDifferentlyNamedParameters: true }],
342
343
  'use-unknown-in-catch-callback-variable': ['error'],
343
344
  },
@@ -378,7 +379,6 @@ exports.RULES = {
378
379
  'curly-newline': ['off'],
379
380
  'dot-location': ['error', 'property'],
380
381
  'eol-last': ['error'],
381
- 'func-call-spacing': 'off',
382
382
  'function-call-argument-newline': ['error', 'consistent'],
383
383
  'function-call-spacing': 'off',
384
384
  'function-paren-newline': ['error', 'consistent'],
@@ -399,7 +399,6 @@ exports.RULES = {
399
399
  'jsx-max-props-per-line': 'off',
400
400
  'jsx-newline': 'off',
401
401
  'jsx-one-expression-per-line': 'off',
402
- 'jsx-props-no-multi-spaces': 'off',
403
402
  'jsx-quotes': ['error'],
404
403
  'jsx-self-closing-comp': 'off',
405
404
  'jsx-sort-props': 'off',
@@ -449,7 +448,7 @@ exports.RULES = {
449
448
  'nonblock-statement-body-position': 'off',
450
449
  'object-curly-newline': 'off',
451
450
  'object-curly-spacing': ['error', 'always'],
452
- 'object-property-newline': ['error', { allowMultiplePropertiesPerLine: true }],
451
+ 'object-property-newline': ['error', { allowAllPropertiesOnSameLine: true }],
453
452
  'one-var-declaration-per-line': ['error'],
454
453
  'operator-linebreak': ['error', 'after'],
455
454
  'padded-blocks': ['error', 'never'],
@@ -503,6 +502,7 @@ exports.RULES = {
503
502
  'no-extraneous-require': 'off',
504
503
  'no-missing-import': 'off',
505
504
  'no-missing-require': 'off',
505
+ 'no-top-level-await': 'off',
506
506
  'no-unpublished-bin': 'off',
507
507
  'no-unpublished-import': ['error'],
508
508
  'no-unpublished-require': ['error'],
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@origin-1/eslint-config",
3
- "version": "1.10.0",
3
+ "version": "1.12.0",
4
4
  "description": "ESLint configuration generator with Origin₁ presets",
5
5
  "homepage": "https://github.com/origin-1/eslint-config#readme",
6
6
  "license": "ISC",
@@ -10,17 +10,16 @@
10
10
  "url": "git+https://github.com/origin-1/eslint-config.git"
11
11
  },
12
12
  "dependencies": {
13
- "@types/eslint": "9",
14
- "semver": "^7.5.2"
13
+ "semver": "^7.7.2"
15
14
  },
16
15
  "peerDependencies": {
17
16
  "@eslint-community/eslint-plugin-eslint-comments": ">=4.1",
18
17
  "@origin-1/eslint-plugin": ">=0.16",
19
- "@stylistic/eslint-plugin": "^4.0",
20
- "@typescript-eslint/eslint-plugin": "^8.20",
21
- "@typescript-eslint/parser": "^8.20",
22
- "eslint": "^9.26",
23
- "eslint-plugin-n": "17"
18
+ "@stylistic/eslint-plugin": "^5.0",
19
+ "@typescript-eslint/eslint-plugin": "^8.32",
20
+ "@typescript-eslint/parser": "^8.32",
21
+ "eslint": "^9.28",
22
+ "eslint-plugin-n": "^17.19"
24
23
  },
25
24
  "engines": {
26
25
  "node": ">=20.9"