@shayanthenerd/eslint-config 0.7.0 → 0.8.1
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 +3 -0
- package/dist/configs/base.js +1 -1
- package/dist/configs/css.js +0 -2
- package/dist/configs/oxlintOverrides.js +1 -2
- package/dist/configs/restrictedExports.js +1 -2
- package/dist/configs/typescript.js +2 -2
- package/dist/configs/vue.js +1 -1
- package/dist/configs/vueComponentNames.js +1 -2
- package/dist/configs/vueServerComponents.js +1 -2
- package/dist/index.js +2 -4
- package/dist/oxlint.config.jsonc +7 -1
- package/dist/prettier.config.js +1 -1
- package/dist/rules/css.js +1 -2
- package/dist/rules/cypress.js +1 -2
- package/dist/rules/html.js +1 -2
- package/dist/rules/importX.js +1 -2
- package/dist/rules/javascript.js +3 -2
- package/dist/rules/perfectionist.js +3 -3
- package/dist/rules/playwright.js +1 -2
- package/dist/rules/storybook.js +1 -2
- package/dist/rules/stylistic.js +1 -2
- package/dist/rules/tailwind.js +1 -2
- package/dist/rules/typescript.js +2 -2
- package/dist/rules/vitest.js +1 -2
- package/dist/rules/vue.js +14 -10
- package/dist/rules/vueAccessibility.js +17 -3
- package/dist/types/configOptions/nuxt.d.ts +27 -1
- package/dist/types/configOptions/typescript.d.ts +3 -1
- package/dist/types/eslint-schema.d.ts +143 -39
- package/dist/utils/globs.js +10 -11
- package/dist/utils/ignores/getIgnorePatterns.js +1 -2
- package/dist/utils/ignores/resolveGitignorePatterns.js +2 -3
- package/dist/utils/options/defaultOptions.js +1 -0
- package/dist/utils/options/enableDetectedConfigs.js +1 -0
- package/dist/utils/options/mergeWithDefaults.js +4 -8
- package/dist/utils/vue/getRestrictedVueElements.js +2 -3
- package/dist/utils/vue/getRestrictedVueInputs.js +2 -3
- package/package.json +41 -42
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@shayanthenerd/eslint-config",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.8.1",
|
|
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": "
|
|
55
|
+
"packageManager": "pnpm@10.18.1",
|
|
56
56
|
"scripts": {
|
|
57
|
-
"prepare": "
|
|
58
|
-
"prepublishOnly": "
|
|
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": "
|
|
60
|
+
"inspect": "pnpm dlx @eslint/config-inspector",
|
|
61
61
|
"build:package": "tsdown --no-report",
|
|
62
|
-
"build:inspector": "
|
|
63
|
-
"preview:inspector": "
|
|
64
|
-
"generate:types": "
|
|
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": "
|
|
69
|
+
"lint": "pnpm lint:oxlint && pnpm lint:eslint",
|
|
69
70
|
"check:types": "tsc",
|
|
70
|
-
"check:exports": "
|
|
71
|
-
"check:spell": "
|
|
72
|
-
"ci:validate": "
|
|
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}": "
|
|
79
|
-
"**/*.{json,jsonc,yaml,yml,lock}": "
|
|
79
|
+
"**/*.{js,ts}": "pnpm lint",
|
|
80
|
+
"**/*.{json,jsonc,yaml,yml,lock}": "pnpm format"
|
|
80
81
|
},
|
|
81
82
|
"dependencies": {
|
|
82
|
-
"@eslint/compat": "1.
|
|
83
|
-
"@eslint/css": "0.
|
|
84
|
-
"@eslint/js": "9.
|
|
85
|
-
"@html-eslint/eslint-plugin": "0.
|
|
86
|
-
"@stylistic/eslint-plugin": "5.
|
|
87
|
-
"@vitest/eslint-plugin": "1.3.
|
|
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.
|
|
90
|
-
"eslint-flat-config-utils": "2.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.
|
|
93
|
-
"eslint-plugin-cypress": "5.
|
|
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.
|
|
96
|
-
"eslint-plugin-perfectionist": "4.15.
|
|
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.
|
|
99
|
+
"eslint-plugin-storybook": "9.1.10",
|
|
99
100
|
"eslint-plugin-unused-imports": "4.2.0",
|
|
100
|
-
"eslint-plugin-vue": "10.
|
|
101
|
+
"eslint-plugin-vue": "10.5.0",
|
|
101
102
|
"eslint-plugin-vuejs-accessibility": "2.4.1",
|
|
102
|
-
"globals": "16.
|
|
103
|
+
"globals": "16.4.0",
|
|
103
104
|
"local-pkg": "1.1.2",
|
|
104
|
-
"oxlint": "1.
|
|
105
|
-
"tailwind-csstree": "0.1.
|
|
106
|
-
"typescript-eslint": "8.
|
|
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.
|
|
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.
|
|
114
|
-
"
|
|
115
|
-
"
|
|
116
|
-
"
|
|
117
|
-
|
|
118
|
-
|
|
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
|
}
|