@ntnyq/eslint-config 2.0.0-beta.11 → 2.0.0-beta.13

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/dist/index.d.ts CHANGED
@@ -1,5 +1,6 @@
1
1
  import { FlatESLintConfig } from 'eslint-define-config';
2
- export { default as tsParser } from '@typescript-eslint/parser';
2
+ import * as parser from '@typescript-eslint/parser';
3
+ export { parser as tsParser };
3
4
  export { default as tsPlugin } from '@typescript-eslint/eslint-plugin';
4
5
  export { default as vueParser } from 'vue-eslint-parser';
5
6
  export { default as vuePlugin } from 'eslint-plugin-vue';
package/dist/index.js CHANGED
@@ -490,7 +490,12 @@ var unicorn = [
490
490
  "unicorn/no-typeof-undefined": "error",
491
491
  "unicorn/prefer-set-size": "error",
492
492
  "unicorn/better-regex": "error",
493
+ "unicorn/prefer-regexp-test": "error",
494
+ "unicorn/prefer-top-level-await": "error",
495
+ "unicorn/no-static-only-class": "error",
496
+ "unicorn/no-zero-fractions": "error",
493
497
  "unicorn/custom-error-definition": "error",
498
+ "unicorn/prefer-modern-math-apis": "error",
494
499
  "unicorn/explicit-length-check": "error",
495
500
  "unicorn/new-for-builtins": "error",
496
501
  "unicorn/no-console-spaces": "error",
@@ -541,24 +546,24 @@ var unicorn = [
541
546
  ];
542
547
 
543
548
  // src/configs/ts.ts
544
- import tsParser from "@typescript-eslint/parser";
549
+ import * as tsParser from "@typescript-eslint/parser";
545
550
  import tsPlugin from "@typescript-eslint/eslint-plugin";
546
551
  var ts = [
547
552
  {
548
553
  files: [GLOB_TS, GLOB_TSX],
549
554
  languageOptions: {
550
- // @ts-expect-error 2322
551
555
  parser: tsParser,
552
556
  parserOptions: {
553
- sourceType: "module"
557
+ sourceType: "module",
558
+ project: true
554
559
  }
555
560
  },
556
561
  plugins: {
557
562
  "@typescript-eslint": tsPlugin
558
563
  },
559
564
  rules: {
560
- ...tsPlugin.configs["eslint-recommended"].overrides[0].rules,
561
565
  ...tsPlugin.configs.recommended.rules,
566
+ ...tsPlugin.configs.stylistic.rules,
562
567
  "@typescript-eslint/no-unused-vars": "error",
563
568
  "@typescript-eslint/no-redeclare": "error",
564
569
  "@typescript-eslint/consistent-type-imports": [
@@ -638,7 +643,6 @@ var vue = [
638
643
  "@typescript-eslint": tsPlugin2
639
644
  },
640
645
  languageOptions: {
641
- // @ts-expect-error 2322
642
646
  parser: vueParser,
643
647
  parserOptions: {
644
648
  parser: "@typescript-eslint/parser",
@@ -665,12 +669,11 @@ var vue = [
665
669
 
666
670
  // src/configs/yml.ts
667
671
  import ymlPlugin, { configs } from "eslint-plugin-yml";
668
- import ymlParser from "yaml-eslint-parser";
672
+ import * as ymlParser from "yaml-eslint-parser";
669
673
  var yml = [
670
674
  {
671
675
  files: [GLOB_YAML],
672
676
  languageOptions: {
673
- // @ts-expect-error 2322
674
677
  parser: ymlParser
675
678
  },
676
679
  plugins: {
@@ -844,12 +847,19 @@ var pkgOrder = [
844
847
  },
845
848
  {
846
849
  pathPattern: "^exports.*$",
847
- order: ["types", "require", "import"]
850
+ order: ["types", "import", "require", "default"]
848
851
  },
849
852
  {
850
853
  pathPattern: "^scripts$",
851
854
  order: { type: "asc" }
852
855
  }
856
+ ],
857
+ "jsonc/sort-array-values": [
858
+ "error",
859
+ {
860
+ pathPattern: "^files$",
861
+ order: { type: "asc" }
862
+ }
853
863
  ]
854
864
  }
855
865
  }
@@ -907,6 +917,7 @@ var markdown = [
907
917
  "@typescript-eslint/no-redeclare": "off",
908
918
  "@typescript-eslint/no-unused-vars": "off",
909
919
  "@typescript-eslint/no-var-requires": "off",
920
+ "@typescript-eslint/no-extraneous-class": "off",
910
921
  "@typescript-eslint/no-use-before-define": "off",
911
922
  "unused-imports/no-unused-imports": "off",
912
923
  "unused-imports/no-unused-vars": "off"
package/package.json CHANGED
@@ -1,8 +1,8 @@
1
1
  {
2
2
  "name": "@ntnyq/eslint-config",
3
3
  "type": "module",
4
- "version": "2.0.0-beta.11",
5
- "packageManager": "pnpm@8.6.2",
4
+ "version": "2.0.0-beta.13",
5
+ "packageManager": "pnpm@8.6.12",
6
6
  "description": "ESLint flat config of ntnyq",
7
7
  "keywords": [
8
8
  "eslint",
@@ -30,42 +30,42 @@
30
30
  "eslint": "^8.30.0"
31
31
  },
32
32
  "dependencies": {
33
- "@eslint/js": "^8.43.0",
34
- "@typescript-eslint/eslint-plugin": "^5.59.11",
35
- "@typescript-eslint/parser": "^5.59.11",
33
+ "@eslint/js": "^8.47.0",
34
+ "@typescript-eslint/eslint-plugin": "^6.4.0",
35
+ "@typescript-eslint/parser": "^6.4.0",
36
36
  "astro-eslint-parser": "^0.14.0",
37
- "eslint-config-prettier": "^8.8.0",
38
- "eslint-define-config": "^1.20.0",
39
- "eslint-plugin-astro": "^0.27.1",
37
+ "eslint-config-prettier": "^9.0.0",
38
+ "eslint-define-config": "^1.23.0",
39
+ "eslint-plugin-astro": "^0.28.0",
40
40
  "eslint-plugin-eslint-comments": "^3.2.0",
41
- "eslint-plugin-import": "^2.27.5",
41
+ "eslint-plugin-import": "^2.28.0",
42
42
  "eslint-plugin-jsonc": "^2.9.0",
43
- "eslint-plugin-markdown": "^3.0.0",
44
- "eslint-plugin-prettier": "^4.2.1",
45
- "eslint-plugin-react": "^7.32.2",
43
+ "eslint-plugin-markdown": "^3.0.1",
44
+ "eslint-plugin-prettier": "^5.0.0",
45
+ "eslint-plugin-react": "^7.33.2",
46
46
  "eslint-plugin-react-hooks": "^4.6.0",
47
- "eslint-plugin-unicorn": "^47.0.0",
48
- "eslint-plugin-vue": "^9.15.0",
47
+ "eslint-plugin-unicorn": "^48.0.1",
48
+ "eslint-plugin-vue": "^9.17.0",
49
49
  "eslint-plugin-yml": "^1.8.0",
50
- "globals": "^13.20.0",
50
+ "globals": "^13.21.0",
51
51
  "jsonc-eslint-parser": "^2.3.0",
52
52
  "local-pkg": "^0.4.3",
53
- "prettier": "^2.8.8",
53
+ "prettier": "^3.0.2",
54
54
  "vue-eslint-parser": "^9.3.1",
55
55
  "yaml-eslint-parser": "^1.2.2"
56
56
  },
57
57
  "devDependencies": {
58
- "@ntnyq/prettier-config": "^1.9.0",
59
- "@types/node": "^20.3.1",
58
+ "@ntnyq/prettier-config": "^1.12.4",
59
+ "@types/node": "^20.5.0",
60
60
  "bumpp": "^9.1.1",
61
- "eslint": "^8.43.0",
61
+ "eslint": "^8.47.0",
62
62
  "husky": "^8.0.3",
63
63
  "nano-staged": "^0.8.0",
64
64
  "npm-run-all": "^4.1.5",
65
- "pnpm": "^8.6.2",
65
+ "pnpm": "^8.6.12",
66
66
  "rimraf": "^5.0.1",
67
- "tsup": "^7.0.0",
68
- "typescript": "5.1.3"
67
+ "tsup": "^7.2.0",
68
+ "typescript": "5.1.6"
69
69
  },
70
70
  "engines": {
71
71
  "node": ">=16.14.0"