@azat-io/eslint-config 2.18.0 → 2.19.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.
@@ -271,7 +271,12 @@ let core = (config) => {
271
271
  "no-useless-rename": "error",
272
272
  "no-useless-return": "error",
273
273
  "no-var": "error",
274
- "no-void": "error",
274
+ "no-void": [
275
+ "error",
276
+ {
277
+ allowAsStatement: true
278
+ }
279
+ ],
275
280
  "no-with": "error",
276
281
  "object-shorthand": ["error", "always"],
277
282
  "one-var": [
package/dist/index.js CHANGED
@@ -1,4 +1,5 @@
1
1
  import gitignore from "eslint-config-flat-gitignore";
2
+ import { defineConfig } from "eslint/config";
2
3
  import { perfectionist } from "./perfectionist/index.js";
3
4
  import { packageJson } from "./package-json/index.js";
4
5
  import { typescript } from "./typescript/index.js";
@@ -47,7 +48,7 @@ const index = async ({
47
48
  let configs = await Promise.all(
48
49
  configFunctions.map((createConfigFunction) => createConfigFunction(config))
49
50
  );
50
- return [
51
+ return defineConfig([
51
52
  gitignore(),
52
53
  ...configs,
53
54
  ...Array.isArray(customExtends) ? customExtends : [
@@ -56,7 +57,7 @@ const index = async ({
56
57
  ...customExtends
57
58
  }
58
59
  ]
59
- ];
60
+ ]);
60
61
  };
61
62
  export {
62
63
  index as default
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@azat-io/eslint-config",
3
- "version": "2.18.0",
3
+ "version": "2.19.0",
4
4
  "description": "ESLint shareable config",
5
5
  "keywords": [
6
6
  "eslint",
@@ -30,15 +30,15 @@
30
30
  "@vitest/eslint-plugin": "1.1.36",
31
31
  "astro-eslint-parser": "^1.2.1",
32
32
  "eslint-config-flat-gitignore": "^2.1.0",
33
- "eslint-import-resolver-typescript": "^3.8.3",
33
+ "eslint-import-resolver-typescript": "^3.8.4",
34
34
  "eslint-plugin-astro": "^1.3.1",
35
35
  "eslint-plugin-de-morgan": "^1.2.0",
36
36
  "eslint-plugin-import-x": "^4.6.1",
37
37
  "eslint-plugin-jsdoc": "^50.6.3",
38
38
  "eslint-plugin-jsx-a11y": "^6.10.2",
39
- "eslint-plugin-n": "^17.16.1",
40
- "eslint-plugin-package-json": "^0.26.1",
41
- "eslint-plugin-perfectionist": "^4.9.0",
39
+ "eslint-plugin-n": "^17.16.2",
40
+ "eslint-plugin-package-json": "^0.26.3",
41
+ "eslint-plugin-perfectionist": "^4.10.1",
42
42
  "eslint-plugin-prefer-arrow": "^1.2.3",
43
43
  "eslint-plugin-prefer-let": "^4.0.0",
44
44
  "eslint-plugin-promise": "^7.2.1",
@@ -49,17 +49,17 @@
49
49
  "eslint-plugin-react-perf": "^3.3.3",
50
50
  "eslint-plugin-regexp": "^2.7.0",
51
51
  "eslint-plugin-sonarjs": "^3.0.2",
52
- "eslint-plugin-svelte": "^3.0.2",
52
+ "eslint-plugin-svelte": "^3.1.0",
53
53
  "eslint-plugin-unicorn": "^57.0.0",
54
- "eslint-plugin-vue": "^9.32.0",
54
+ "eslint-plugin-vue": "^10.0.0",
55
55
  "globals": "^16.0.0",
56
56
  "jsonc-eslint-parser": "^2.4.0",
57
- "svelte-eslint-parser": "^1.0.0",
58
- "typescript-eslint": "^8.26.0",
59
- "vue-eslint-parser": "^9.4.3"
57
+ "svelte-eslint-parser": "^1.0.1",
58
+ "typescript-eslint": "^8.26.1",
59
+ "vue-eslint-parser": "^10.1.1"
60
60
  },
61
61
  "peerDependencies": {
62
- "eslint": ">=9.14.0"
62
+ "eslint": ">=9.22.0"
63
63
  },
64
64
  "publishConfig": {
65
65
  "access": "public"