eslint-config-arklint 4.0.0 → 4.1.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/README.md CHANGED
@@ -13,7 +13,7 @@ yarn add eslint eslint-config-arklint -D
13
13
 
14
14
  > [!WARNING]
15
15
  > Only **ESM flat config** is supported.
16
- > If your project uses CJS, you need to use the `.mjs` extension on your ESLint config file.
16
+ > If your project uses CJS, you need to use the `.mjs` extension for your ESLint config file.
17
17
 
18
18
  The default configuration includes standards and stylistic rules for JS. Optional extensions can be added to add rules for `import`, `react` and `jsdoc`:
19
19
 
@@ -23,7 +23,7 @@ export default [
23
23
  rules: {
24
24
  "jsdoc/check-param-names": "warn",
25
25
  "jsdoc/check-template-names": "warn",
26
- "jsdoc/lines-before-block": "warn",
26
+ "jsdoc/lines-before-block": ["warn", { ignoreSingleLines: true }],
27
27
  "jsdoc/require-jsdoc": "off",
28
28
  "jsdoc/require-returns": "off",
29
29
  "jsdoc/require-template": "warn",
package/index.mjs CHANGED
@@ -1,6 +1,6 @@
1
1
  import babelParser from "@babel/eslint-parser";
2
2
  import js from "@eslint/js";
3
- import stylisticJsPlugin from "@stylistic/eslint-plugin-js";
3
+ import stylisticPlugin from "@stylistic/eslint-plugin";
4
4
  import globals from "globals";
5
5
 
6
6
 
@@ -31,7 +31,7 @@ export default [
31
31
  js.configs.recommended,
32
32
  {
33
33
  plugins: {
34
- "@stylistic/js": stylisticJsPlugin
34
+ "@stylistic": stylisticPlugin
35
35
  },
36
36
  rules: {
37
37
  "array-callback-return": "warn",
@@ -183,48 +183,48 @@ export default [
183
183
  "unicode-bom": ["warn", "never"],
184
184
  "use-isnan": "warn",
185
185
  "valid-typeof": "warn",
186
- "@stylistic/js/array-bracket-newline": ["warn", "consistent"],
187
- "@stylistic/js/array-bracket-spacing": "warn",
188
- "@stylistic/js/array-element-newline": ["warn", "consistent"],
189
- "@stylistic/js/arrow-parens": "warn",
190
- "@stylistic/js/arrow-spacing": "warn",
191
- "@stylistic/js/block-spacing": "warn",
192
- "@stylistic/js/brace-style": ["warn", "1tbs", {
186
+ "@stylistic/array-bracket-newline": ["warn", "consistent"],
187
+ "@stylistic/array-bracket-spacing": "warn",
188
+ "@stylistic/array-element-newline": ["warn", "consistent"],
189
+ "@stylistic/arrow-parens": "warn",
190
+ "@stylistic/arrow-spacing": "warn",
191
+ "@stylistic/block-spacing": "warn",
192
+ "@stylistic/brace-style": ["warn", "1tbs", {
193
193
  allowSingleLine: true
194
194
  }],
195
- "@stylistic/js/comma-dangle": ["warn", "never"],
196
- "@stylistic/js/comma-spacing": "warn",
197
- "@stylistic/js/comma-style": "warn",
198
- "@stylistic/js/computed-property-spacing": "warn",
199
- "@stylistic/js/dot-location": ["warn", "property"],
200
- "@stylistic/js/eol-last": ["warn", "never"],
201
- "@stylistic/js/function-call-spacing": "warn",
202
- "@stylistic/js/function-call-argument-newline": ["warn", "consistent"],
203
- "@stylistic/js/function-paren-newline": ["warn", "consistent"],
204
- "@stylistic/js/implicit-arrow-linebreak": "warn",
205
- "@stylistic/js/indent": ["warn", "tab", {
195
+ "@stylistic/comma-dangle": ["warn", "never"],
196
+ "@stylistic/comma-spacing": "warn",
197
+ "@stylistic/comma-style": "warn",
198
+ "@stylistic/computed-property-spacing": "warn",
199
+ "@stylistic/dot-location": ["warn", "property"],
200
+ "@stylistic/eol-last": ["warn", "never"],
201
+ "@stylistic/function-call-spacing": "warn",
202
+ "@stylistic/function-call-argument-newline": ["warn", "consistent"],
203
+ "@stylistic/function-paren-newline": ["warn", "consistent"],
204
+ "@stylistic/implicit-arrow-linebreak": "warn",
205
+ "@stylistic/indent": ["warn", "tab", {
206
206
  SwitchCase: 1,
207
207
  ignoreComments: true
208
208
  }],
209
- "@stylistic/js/key-spacing": "warn",
210
- "@stylistic/js/keyword-spacing": "warn",
211
- "@stylistic/js/new-parens": "warn",
212
- "@stylistic/js/no-confusing-arrow": "warn",
213
- "@stylistic/js/no-extra-semi": "warn",
214
- "@stylistic/js/no-floating-decimal": "warn",
215
- "@stylistic/js/no-mixed-operators": "warn",
216
- "@stylistic/js/no-multi-spaces": "warn",
217
- "@stylistic/js/no-multiple-empty-lines": ["warn", {
209
+ "@stylistic/key-spacing": "warn",
210
+ "@stylistic/keyword-spacing": "warn",
211
+ "@stylistic/new-parens": "warn",
212
+ "@stylistic/no-confusing-arrow": "warn",
213
+ "@stylistic/no-extra-semi": "warn",
214
+ "@stylistic/no-floating-decimal": "warn",
215
+ "@stylistic/no-mixed-operators": "warn",
216
+ "@stylistic/no-multi-spaces": "warn",
217
+ "@stylistic/no-multiple-empty-lines": ["warn", {
218
218
  max: 2,
219
219
  maxBOF: 0,
220
220
  maxEOF: 0
221
221
  }],
222
- "@stylistic/js/no-trailing-spaces": "warn",
223
- "@stylistic/js/no-whitespace-before-property": "warn",
224
- "@stylistic/js/nonblock-statement-body-position": "warn",
225
- "@stylistic/js/object-curly-newline": "warn",
226
- "@stylistic/js/object-curly-spacing": ["warn", "always"],
227
- "@stylistic/js/operator-linebreak": ["warn", "after", {
222
+ "@stylistic/no-trailing-spaces": "warn",
223
+ "@stylistic/no-whitespace-before-property": "warn",
224
+ "@stylistic/nonblock-statement-body-position": "warn",
225
+ "@stylistic/object-curly-newline": "warn",
226
+ "@stylistic/object-curly-spacing": ["warn", "always"],
227
+ "@stylistic/operator-linebreak": ["warn", "after", {
228
228
  overrides: {
229
229
  "?": "ignore",
230
230
  ":": "ignore",
@@ -232,28 +232,28 @@ export default [
232
232
  "&&": "ignore"
233
233
  }
234
234
  }],
235
- "@stylistic/js/padding-line-between-statements": [
235
+ "@stylistic/padding-line-between-statements": [
236
236
  "warn",
237
237
  { blankLine: "always", prev: "default", next: "*" },
238
238
  { blankLine: "always", prev: "*", next: "switch" }
239
239
  ],
240
- "@stylistic/js/quote-props": ["warn", "consistent-as-needed"],
241
- "@stylistic/js/quotes": ["warn", "double"],
242
- "@stylistic/js/rest-spread-spacing": "warn",
243
- "@stylistic/js/semi": "warn",
244
- "@stylistic/js/semi-spacing": "warn",
245
- "@stylistic/js/semi-style": "warn",
246
- "@stylistic/js/space-before-blocks": "warn",
247
- "@stylistic/js/space-before-function-paren": ["warn", {
240
+ "@stylistic/quote-props": ["warn", "consistent-as-needed"],
241
+ "@stylistic/quotes": ["warn", "double"],
242
+ "@stylistic/rest-spread-spacing": "warn",
243
+ "@stylistic/semi": "warn",
244
+ "@stylistic/semi-spacing": "warn",
245
+ "@stylistic/semi-style": "warn",
246
+ "@stylistic/space-before-blocks": "warn",
247
+ "@stylistic/space-before-function-paren": ["warn", {
248
248
  anonymous: "always",
249
249
  named: "never",
250
250
  asyncArrow: "always"
251
251
  }],
252
- "@stylistic/js/space-in-parens": "warn",
253
- "@stylistic/js/space-infix-ops": "warn",
254
- "@stylistic/js/space-unary-ops": "warn",
255
- "@stylistic/js/spaced-comment": "warn",
256
- "@stylistic/js/template-curly-spacing": "warn"
252
+ "@stylistic/space-in-parens": "warn",
253
+ "@stylistic/space-infix-ops": "warn",
254
+ "@stylistic/space-unary-ops": "warn",
255
+ "@stylistic/spaced-comment": "warn",
256
+ "@stylistic/template-curly-spacing": "warn"
257
257
  }
258
258
  },
259
259
  {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "eslint-config-arklint",
3
- "version": "4.0.0",
3
+ "version": "4.1.0",
4
4
  "author": "Arkellys",
5
5
  "license": "MIT",
6
6
  "type": "module",
@@ -26,22 +26,22 @@
26
26
  "prepare": "husky"
27
27
  },
28
28
  "dependencies": {
29
- "@babel/core": "^7.26.10",
30
- "@babel/eslint-parser": "^7.27.0",
31
- "@babel/preset-env": "^7.26.9",
32
- "@babel/preset-react": "^7.26.3",
33
- "@eslint/js": "^9.25.0",
34
- "@stylistic/eslint-plugin-js": "^4.2.0",
35
- "eslint-plugin-import": "^2.31.0",
36
- "eslint-plugin-jsdoc": "^50.6.9",
29
+ "@babel/core": "^7.28.0",
30
+ "@babel/eslint-parser": "^7.28.0",
31
+ "@babel/preset-env": "^7.28.0",
32
+ "@babel/preset-react": "^7.27.1",
33
+ "@eslint/js": "^9.32.0",
34
+ "@stylistic/eslint-plugin": "^5.2.2",
35
+ "eslint-plugin-import": "^2.32.0",
36
+ "eslint-plugin-jsdoc": "^51.4.1",
37
37
  "eslint-plugin-jsx-a11y": "^6.10.2",
38
- "eslint-plugin-perfectionist": "^4.11.0",
38
+ "eslint-plugin-perfectionist": "^4.15.0",
39
39
  "eslint-plugin-react": "^7.37.5",
40
40
  "eslint-plugin-react-hooks": "^5.2.0",
41
- "globals": "^16.0.0"
41
+ "globals": "^16.3.0"
42
42
  },
43
43
  "devDependencies": {
44
- "eslint": "^9.25.0",
44
+ "eslint": "^9.32.0",
45
45
  "husky": "^9.1.7"
46
46
  },
47
47
  "peerDependencies": {