@pumpn/eslint-config 16.1.2 → 16.2.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.
@@ -12,13 +12,6 @@ const jsxRules = {
12
12
  "@stylistic/jsx-one-expression-per-line": ["error", { allow: "single-line" }],
13
13
  "@stylistic/jsx-pascal-case": ["error", { allowNamespace: true }],
14
14
  "@stylistic/jsx-self-closing-comp": "error",
15
- "@stylistic/jsx-sort-props": [
16
- "off",
17
- {
18
- callbacksLast: true,
19
- shorthandFirst: true
20
- }
21
- ],
22
15
  "@stylistic/jsx-tag-spacing": [
23
16
  "error",
24
17
  {
@@ -9,13 +9,7 @@ const spacingRules = {
9
9
  "@stylistic/block-spacing": ["error", "always"],
10
10
  "@stylistic/computed-property-spacing": ["error", "never"],
11
11
  "@stylistic/function-call-spacing": ["error", "never"],
12
- "@stylistic/generator-star-spacing": [
13
- "error",
14
- {
15
- before: false,
16
- after: true
17
- }
18
- ],
12
+ "@stylistic/generator-star-spacing": ["error", "after"],
19
13
  "@stylistic/key-spacing": [
20
14
  "error",
21
15
  {
@@ -204,6 +204,7 @@ const suggestionsRules = {
204
204
  "prefer-rest-params": "error",
205
205
  "prefer-spread": "error",
206
206
  "prefer-template": "error",
207
+ "preserve-caught-error": "error",
207
208
  radix: ["error", "as-needed"],
208
209
  "require-await": "error",
209
210
  "require-unicode-regexp": "off",
package/rules/unicorn.js CHANGED
@@ -68,6 +68,7 @@ const unicornRules = {
68
68
  "unicorn/no-array-method-this-argument": "error",
69
69
  "unicorn/no-array-reduce": "off",
70
70
  "unicorn/no-array-reverse": "error",
71
+ "unicorn/no-array-sort": "off",
71
72
  "unicorn/no-await-expression-member": "error",
72
73
  "unicorn/no-await-in-promise-methods": "error",
73
74
  "unicorn/no-console-spaces": "error",
@@ -75,6 +76,7 @@ const unicornRules = {
75
76
  "unicorn/no-empty-file": "error",
76
77
  "unicorn/no-for-loop": "error",
77
78
  "unicorn/no-hex-escape": "error",
79
+ "unicorn/no-immediate-mutation": "error",
78
80
  "unicorn/no-instanceof-array": "error",
79
81
  "unicorn/no-instanceof-builtins": "error",
80
82
  "unicorn/no-invalid-fetch-options": "error",
@@ -110,6 +112,7 @@ const unicornRules = {
110
112
  "unicorn/no-unreadable-array-destructuring": "error",
111
113
  "unicorn/no-unreadable-iife": "error",
112
114
  "unicorn/no-unused-properties": "error",
115
+ "unicorn/no-useless-collection-argument": "error",
113
116
  "unicorn/no-useless-error-capture-stack-trace": "error",
114
117
  "unicorn/no-useless-fallback-in-spread": "error",
115
118
  "unicorn/no-useless-length-check": "error",
@@ -153,8 +156,10 @@ const unicornRules = {
153
156
  "unicorn/prefer-array-index-of": "error",
154
157
  "unicorn/prefer-array-some": "error",
155
158
  "unicorn/prefer-at": "error",
159
+ "unicorn/prefer-bigint-literals": "error",
156
160
  "unicorn/prefer-blob-reading-methods": "error",
157
161
  "unicorn/prefer-class-fields": "error",
162
+ "unicorn/prefer-classlist-toggle": "error",
158
163
  "unicorn/prefer-code-point": "error",
159
164
  "unicorn/prefer-date-now": "error",
160
165
  "unicorn/prefer-default-parameters": "error",
@@ -190,6 +195,7 @@ const unicornRules = {
190
195
  "unicorn/prefer-query-selector": "error",
191
196
  "unicorn/prefer-reflect-apply": "error",
192
197
  "unicorn/prefer-regexp-test": "error",
198
+ "unicorn/prefer-response-static-json": "error",
193
199
  "unicorn/prefer-set-has": "error",
194
200
  "unicorn/prefer-set-size": "error",
195
201
  "unicorn/prefer-single-call": "error",
@@ -207,6 +213,7 @@ const unicornRules = {
207
213
  "unicorn/prevent-abbreviations": "error",
208
214
  "unicorn/relative-url-style": "error",
209
215
  "unicorn/require-array-join-separator": "error",
216
+ "unicorn/require-module-attributes": "error",
210
217
  "unicorn/require-module-specifiers": "error",
211
218
  "unicorn/require-number-to-fixed-digits-argument": "error",
212
219
  "unicorn/require-post-message-target-origin": "off",
@@ -234,7 +241,7 @@ const unicornRules = {
234
241
  ]
235
242
  }
236
243
  ],
237
- "unicorn/text-encoding-identifier-case": "error",
244
+ "unicorn/text-encoding-identifier-case": ["error", { withDash: true }],
238
245
  "unicorn/throw-new-error": "error"
239
246
  };
240
247