@forsakringskassan/eslint-config 13.0.6 → 13.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.
Files changed (3) hide show
  1. package/eslint.js +1 -1
  2. package/index.mjs +21 -6
  3. package/package.json +4 -4
package/eslint.js CHANGED
@@ -1,7 +1,7 @@
1
1
  #!/usr/bin/env node
2
2
 
3
- const path = require("path");
4
3
  const { spawn } = require("child_process");
4
+ const path = require("path");
5
5
 
6
6
  const pkgPath = path.dirname(require.resolve("eslint/package.json"));
7
7
  const binary = path.join(pkgPath, "bin/eslint");
package/index.mjs CHANGED
@@ -1,8 +1,8 @@
1
1
  import { fileURLToPath } from "node:url";
2
2
  import js from "@eslint/js";
3
+ import eslintCommentsPlugin from "@eslint-community/eslint-plugin-eslint-comments";
3
4
  import prettierConfig from "eslint-config-prettier";
4
5
  import importPlugin from "eslint-plugin-import";
5
- import eslintCommentsPlugin from "@eslint-community/eslint-plugin-eslint-comments";
6
6
  import prettierPlugin from "eslint-plugin-prettier";
7
7
  import sonarjsPlugin from "eslint-plugin-sonarjs";
8
8
  import globals from "globals";
@@ -236,12 +236,31 @@ export default [
236
236
  "error",
237
237
  {
238
238
  pathGroups: [
239
+ {
240
+ pattern: "{vue,vite}",
241
+ group: "external",
242
+ position: "before",
243
+ },
244
+ {
245
+ pattern: "{cypress,cypress/vue}",
246
+ group: "external",
247
+ position: "before",
248
+ },
239
249
  {
240
250
  pattern: "@/**",
241
251
  group: "parent",
242
252
  position: "before",
243
253
  },
244
254
  ],
255
+ pathGroupsExcludedImportTypes: ["builtin", "object"],
256
+ alphabetize: {
257
+ order: "asc",
258
+ orderImportKind: "asc",
259
+ },
260
+ named: {
261
+ enabled: true,
262
+ types: "types-first",
263
+ },
245
264
  },
246
265
  ],
247
266
  },
@@ -262,11 +281,6 @@ export default [
262
281
  languageOptions: {
263
282
  ecmaVersion: 2024,
264
283
  sourceType: "module",
265
- parserOptions: {
266
- ecmaFeatures: {
267
- globalReturn: true,
268
- },
269
- },
270
284
  },
271
285
  }),
272
286
 
@@ -322,6 +336,7 @@ const defaultAppConfig = defineConfig({
322
336
  name: "@forsakringskassan/eslint-config/app",
323
337
  rules: {
324
338
  "sonarjs/no-commented-code": "warn",
339
+ "vue/no-restricted-block": "off",
325
340
  },
326
341
  });
327
342
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@forsakringskassan/eslint-config",
3
- "version": "13.0.6",
3
+ "version": "13.1.0",
4
4
  "description": "Försäkringskassans eslint shareable config",
5
5
  "keywords": [
6
6
  "eslint"
@@ -25,8 +25,8 @@
25
25
  ],
26
26
  "dependencies": {
27
27
  "@eslint-community/eslint-plugin-eslint-comments": "4.5.0",
28
- "@eslint/js": "9.36.0",
29
- "eslint": "9.36.0",
28
+ "@eslint/js": "9.37.0",
29
+ "eslint": "9.37.0",
30
30
  "eslint-config-prettier": "10.1.8",
31
31
  "eslint-import-resolver-node": "0.3.9",
32
32
  "eslint-import-resolver-typescript": "4.4.4",
@@ -41,5 +41,5 @@
41
41
  "engines": {
42
42
  "node": ">= 22.0"
43
43
  },
44
- "gitHead": "556a90f51eed6bedb7b99232c4d8c9fc5f27e07b"
44
+ "gitHead": "33341c2116207c0377de2b350e0c59c0d75fe3a5"
45
45
  }