@shayanthenerd/eslint-config 0.6.1 → 0.8.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 (39) hide show
  1. package/README.md +3 -0
  2. package/dist/configs/base.js +1 -1
  3. package/dist/configs/css.js +6 -3
  4. package/dist/configs/oxlintOverrides.js +1 -2
  5. package/dist/configs/restrictedExports.js +1 -2
  6. package/dist/configs/typescript.js +2 -2
  7. package/dist/configs/vue.js +1 -1
  8. package/dist/configs/vueComponentNames.js +1 -2
  9. package/dist/configs/vueServerComponents.js +1 -2
  10. package/dist/index.js +2 -4
  11. package/dist/oxlint.config.jsonc +9 -2
  12. package/dist/prettier.config.js +1 -1
  13. package/dist/rules/css.js +1 -2
  14. package/dist/rules/cypress.js +1 -2
  15. package/dist/rules/html.js +1 -2
  16. package/dist/rules/importX.js +1 -2
  17. package/dist/rules/javascript.js +3 -2
  18. package/dist/rules/perfectionist.js +3 -3
  19. package/dist/rules/playwright.js +1 -2
  20. package/dist/rules/storybook.js +1 -2
  21. package/dist/rules/stylistic.js +1 -2
  22. package/dist/rules/tailwind.js +1 -4
  23. package/dist/rules/typescript.js +2 -2
  24. package/dist/rules/vitest.js +1 -2
  25. package/dist/rules/vue.js +14 -10
  26. package/dist/rules/vueAccessibility.js +17 -3
  27. package/dist/types/configOptions/nuxt.d.ts +27 -1
  28. package/dist/types/configOptions/typescript.d.ts +3 -1
  29. package/dist/types/eslint-schema.d.ts +156 -40
  30. package/dist/types/index.d.ts +1 -1
  31. package/dist/utils/globs.js +10 -11
  32. package/dist/utils/ignores/getIgnorePatterns.js +1 -2
  33. package/dist/utils/ignores/resolveGitignorePatterns.js +2 -3
  34. package/dist/utils/options/defaultOptions.js +1 -0
  35. package/dist/utils/options/enableDetectedConfigs.js +1 -0
  36. package/dist/utils/options/mergeWithDefaults.js +4 -8
  37. package/dist/utils/vue/getRestrictedVueElements.js +2 -3
  38. package/dist/utils/vue/getRestrictedVueInputs.js +2 -3
  39. package/package.json +41 -42
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@shayanthenerd/eslint-config",
3
- "version": "0.6.1",
3
+ "version": "0.8.0",
4
4
  "license": "MIT",
5
5
  "description": "A modern, flexible ESLint configuration for enforcing best practices and maintaining a consistent coding style",
6
6
  "keywords": [
@@ -52,71 +52,70 @@
52
52
  "#configs/*": "./src/configs/*"
53
53
  },
54
54
  "type": "module",
55
- "packageManager": "bun@1.2.21",
55
+ "packageManager": "pnpm@10.18.1",
56
56
  "scripts": {
57
- "prepare": "bun git:gitmessage && bunx simple-git-hooks && bun generate:types",
58
- "prepublishOnly": "bun build:package",
57
+ "prepare": "pnpm git:gitmessage && pnpm simple-git-hooks && pnpm generate:types",
58
+ "prepublishOnly": "pnpm build:package",
59
59
  "git:gitmessage": "git config --local commit.template \".gitmessage\"",
60
- "inspect": "bunx @eslint/config-inspector",
60
+ "inspect": "pnpm dlx @eslint/config-inspector",
61
61
  "build:package": "tsdown --no-report",
62
- "build:inspector": "bunx @eslint/config-inspector build --config=./scripts/defaultESLintConfigReference.ts",
63
- "preview:inspector": "bunx serve .eslint-config-inspector",
64
- "generate:types": "bun ./scripts/generateESLintTypes.ts",
62
+ "build:inspector": "pnpm dlx @eslint/config-inspector build --config=./scripts/defaultESLintConfigReference.ts",
63
+ "preview:inspector": "pnpm dlx serve .eslint-config-inspector",
64
+ "generate:types": "node ./scripts/generateESLintTypes.ts",
65
+ "update:actions": "pnpm actions-up --yes",
65
66
  "format": "prettier --write '**/*.{json,jsonc,yaml,yml,lock}' --cache",
66
67
  "lint:oxlint": "oxlint --fix",
67
68
  "lint:eslint": "eslint --fix --cache --cache-location=./node_modules/.cache/.eslintcache",
68
- "lint": "bun lint:oxlint && bun lint:eslint",
69
+ "lint": "pnpm lint:oxlint && pnpm lint:eslint",
69
70
  "check:types": "tsc",
70
- "check:exports": "bunx @arethetypeswrong/cli --pack --profile=esm-only --exclude-entrypoints=./oxlint",
71
- "check:spell": "bunx cspell . --gitignore --cache --cache-location=./node_modules/.cache/.cspellcache",
72
- "ci:validate": "bun generate:types && bun format && bun lint && bun check:types && bun build:inspector && bun build:package && bun check:exports"
71
+ "check:exports": "pnpm dlx @arethetypeswrong/cli --pack --profile=esm-only --exclude-entrypoints=./oxlint",
72
+ "check:spell": "pnpm dlx cspell . --gitignore --cache --cache-location=./node_modules/.cache/.cspellcache",
73
+ "ci:validate": "pnpm generate:types && pnpm format && pnpm lint && pnpm check:types && pnpm build:inspector && pnpm build:package && pnpm check:exports"
73
74
  },
74
75
  "simple-git-hooks": {
75
76
  "pre-commit": "./node_modules/.bin/nano-staged"
76
77
  },
77
78
  "nano-staged": {
78
- "**/*.{js,ts}": "bun lint",
79
- "**/*.{json,jsonc,yaml,yml,lock}": "bun format"
79
+ "**/*.{js,ts}": "pnpm lint",
80
+ "**/*.{json,jsonc,yaml,yml,lock}": "pnpm format"
80
81
  },
81
82
  "dependencies": {
82
- "@eslint/compat": "1.3.2",
83
- "@eslint/css": "0.10.0",
84
- "@eslint/js": "9.34.0",
85
- "@html-eslint/eslint-plugin": "0.46.1",
86
- "@stylistic/eslint-plugin": "5.2.3",
87
- "@vitest/eslint-plugin": "1.3.4",
83
+ "@eslint/compat": "1.4.0",
84
+ "@eslint/css": "0.12.0",
85
+ "@eslint/js": "9.37.0",
86
+ "@html-eslint/eslint-plugin": "0.47.0",
87
+ "@stylistic/eslint-plugin": "5.4.0",
88
+ "@vitest/eslint-plugin": "1.3.16",
88
89
  "defu": "6.1.4",
89
- "eslint": "9.34.0",
90
- "eslint-flat-config-utils": "2.1.1",
90
+ "eslint": "9.37.0",
91
+ "eslint-flat-config-utils": "2.1.4",
91
92
  "eslint-import-resolver-typescript": "4.4.4",
92
- "eslint-plugin-better-tailwindcss": "3.7.5",
93
- "eslint-plugin-cypress": "5.1.1",
93
+ "eslint-plugin-better-tailwindcss": "3.7.9",
94
+ "eslint-plugin-cypress": "5.2.0",
94
95
  "eslint-plugin-import-x": "4.16.1",
95
- "eslint-plugin-oxlint": "1.13.0",
96
- "eslint-plugin-perfectionist": "4.15.0",
96
+ "eslint-plugin-oxlint": "1.20.0",
97
+ "eslint-plugin-perfectionist": "4.15.1",
97
98
  "eslint-plugin-playwright": "2.2.2",
98
- "eslint-plugin-storybook": "9.1.3",
99
+ "eslint-plugin-storybook": "9.1.10",
99
100
  "eslint-plugin-unused-imports": "4.2.0",
100
- "eslint-plugin-vue": "10.4.0",
101
+ "eslint-plugin-vue": "10.5.0",
101
102
  "eslint-plugin-vuejs-accessibility": "2.4.1",
102
- "globals": "16.3.0",
103
+ "globals": "16.4.0",
103
104
  "local-pkg": "1.1.2",
104
- "oxlint": "1.13.0",
105
- "tailwind-csstree": "0.1.3",
106
- "typescript-eslint": "8.41.0"
105
+ "oxlint": "1.20.0",
106
+ "tailwind-csstree": "0.1.4",
107
+ "typescript-eslint": "8.46.0"
107
108
  },
108
109
  "devDependencies": {
109
- "@types/node": "24.3.0",
110
+ "@types/node": "24.7.0",
111
+ "actions-up": "1.4.1",
110
112
  "eslint-typegen": "2.3.0",
111
113
  "nano-staged": "0.8.0",
112
114
  "prettier": "3.6.2",
113
- "publint": "0.3.12",
114
- "tsdown": "0.14.2",
115
- "typescript": "5.9.2",
116
- "unplugin-unused": "0.5.2"
117
- },
118
- "trustedDependencies": [
119
- "esbuild",
120
- "unrs-resolver"
121
- ]
115
+ "publint": "0.3.14",
116
+ "simple-git-hooks": "2.13.1",
117
+ "tsdown": "0.15.6",
118
+ "typescript": "5.9.3",
119
+ "unplugin-unused": "0.5.3"
120
+ }
122
121
  }