@shayanthenerd/eslint-config 0.1.0 → 0.2.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.
- package/README.md +24 -8
- package/dist/configs/base.cjs +1 -1
- package/dist/configs/base.js +1 -1
- package/dist/configs/commons.cjs +3 -2
- package/dist/configs/commons.js +3 -2
- package/dist/configs/importX.cjs +22 -2
- package/dist/configs/importX.js +22 -2
- package/dist/configs/oxlintOverrides.cjs +3 -1
- package/dist/configs/oxlintOverrides.js +3 -1
- package/dist/configs/tailwind.cjs +3 -3
- package/dist/configs/tailwind.js +3 -3
- package/dist/configs/typescript.cjs +1 -1
- package/dist/configs/typescript.js +1 -1
- package/dist/rules/importX.cjs +12 -12
- package/dist/rules/importX.js +12 -12
- package/dist/rules/vue.cjs +4 -2
- package/dist/rules/vue.js +4 -2
- package/dist/types/configOptions/importX.d.cts +16 -7
- package/dist/types/configOptions/importX.d.ts +16 -7
- package/dist/types/eslint-schema.d.cts +475 -1
- package/dist/types/eslint-schema.d.ts +475 -1
- package/dist/utils/globs.cjs +3 -2
- package/dist/utils/globs.js +3 -2
- package/dist/utils/options/defaultOptions.cjs +2 -1
- package/dist/utils/options/defaultOptions.js +2 -1
- package/dist/utils/options/enableDetectedConfigs.cjs +8 -4
- package/dist/utils/options/enableDetectedConfigs.js +8 -4
- package/package.json +24 -28
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@shayanthenerd/eslint-config",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.2.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": [
|
|
@@ -57,37 +57,47 @@
|
|
|
57
57
|
"type": "module",
|
|
58
58
|
"packageManager": "bun@1.2.19",
|
|
59
59
|
"scripts": {
|
|
60
|
-
"postinstall": "bun simple-git-hooks && bun generate:types",
|
|
60
|
+
"postinstall": "bun set:gitmessage && bunx simple-git-hooks && bun generate:types",
|
|
61
61
|
"prepublishOnly": "bun ci:validate",
|
|
62
|
+
"set:gitmessage": "git config --local commit.template \".gitmessage\"",
|
|
62
63
|
"inspect": "bunx @eslint/config-inspector",
|
|
63
64
|
"build:package": "tsdown --no-report",
|
|
64
|
-
"build:inspector": "bunx @eslint/config-inspector build --config
|
|
65
|
+
"build:inspector": "bunx @eslint/config-inspector build --config=./scripts/defaultESLintConfigReference.ts",
|
|
65
66
|
"preview:inspector": "bunx serve .eslint-config-inspector",
|
|
66
|
-
"generate:types": "bun
|
|
67
|
+
"generate:types": "bun ./scripts/generateESLintTypes.ts",
|
|
67
68
|
"format": "prettier --write . '!**/*.{js,ts}' --cache",
|
|
68
69
|
"lint:oxlint": "oxlint --fix",
|
|
69
|
-
"lint:eslint": "eslint --fix --cache --cache-location
|
|
70
|
+
"lint:eslint": "eslint --fix --cache --cache-location=./node_modules/.cache/.eslintcache",
|
|
70
71
|
"lint": "bun lint:oxlint && bun lint:eslint",
|
|
71
|
-
"check:types": "tsc
|
|
72
|
+
"check:types": "tsc",
|
|
72
73
|
"check:exports": "bunx @arethetypeswrong/cli --pack --exclude-entrypoints ./prettier ./oxlint",
|
|
73
|
-
"check:spell": "bunx cspell . --gitignore --cache --cache-location
|
|
74
|
+
"check:spell": "bunx cspell . --gitignore --cache --cache-location=./node_modules/.cache/.cspellcache",
|
|
74
75
|
"ci:validate": "bun generate:types && bun format && bun lint && bun check:types && bun --bun build:inspector && bun build:package && bun check:exports"
|
|
75
76
|
},
|
|
76
77
|
"simple-git-hooks": {
|
|
77
|
-
"pre-commit": "
|
|
78
|
+
"pre-commit": "./node_modules/.bin/nano-staged"
|
|
79
|
+
},
|
|
80
|
+
"nano-staged": {
|
|
81
|
+
"**/*.{json,jsonc,yaml,yml,md,lock}": "prettier --write --ignore-unknown --cache",
|
|
82
|
+
"**/*.{js,ts}": [
|
|
83
|
+
"oxlint --fix",
|
|
84
|
+
"eslint --fix --cache --cache-location=./node_modules/.cache/.eslintcache"
|
|
85
|
+
]
|
|
78
86
|
},
|
|
79
87
|
"dependencies": {
|
|
80
88
|
"@eslint/compat": "1.3.1",
|
|
81
89
|
"@eslint/css": "0.10.0",
|
|
82
|
-
"@eslint/js": "9.
|
|
90
|
+
"@eslint/js": "9.32.0",
|
|
83
91
|
"@html-eslint/eslint-plugin": "0.43.1",
|
|
84
92
|
"@stylistic/eslint-plugin": "5.2.2",
|
|
85
93
|
"@vitest/eslint-plugin": "1.3.4",
|
|
86
94
|
"defu": "6.1.4",
|
|
87
|
-
"eslint": "9.
|
|
95
|
+
"eslint": "9.32.0",
|
|
88
96
|
"eslint-flat-config-utils": "2.1.0",
|
|
89
|
-
"eslint-
|
|
97
|
+
"eslint-import-resolver-typescript": "4.4.4",
|
|
98
|
+
"eslint-plugin-better-tailwindcss": "3.7.2",
|
|
90
99
|
"eslint-plugin-cypress": "5.1.0",
|
|
100
|
+
"eslint-plugin-import": "2.32.0",
|
|
91
101
|
"eslint-plugin-import-x": "4.16.1",
|
|
92
102
|
"eslint-plugin-oxlint": "1.8.0",
|
|
93
103
|
"eslint-plugin-perfectionist": "4.15.0",
|
|
@@ -99,32 +109,18 @@
|
|
|
99
109
|
"globals": "16.3.0",
|
|
100
110
|
"local-pkg": "1.1.1",
|
|
101
111
|
"oxlint": "1.8.0",
|
|
102
|
-
"tailwind-csstree": "0.1.
|
|
112
|
+
"tailwind-csstree": "0.1.2",
|
|
103
113
|
"typescript-eslint": "8.38.0"
|
|
104
114
|
},
|
|
105
|
-
"peerDependencies": {
|
|
106
|
-
"eslint-import-resolver-typescript": "^4.4.4"
|
|
107
|
-
},
|
|
108
|
-
"peerDependenciesMeta": {
|
|
109
|
-
"eslint-import-resolver-typescript": {
|
|
110
|
-
"optional": true
|
|
111
|
-
}
|
|
112
|
-
},
|
|
113
115
|
"devDependencies": {
|
|
114
116
|
"@types/node": "24.1.0",
|
|
115
|
-
"eslint-import-resolver-typescript": "4.4.4",
|
|
116
117
|
"eslint-typegen": "2.3.0",
|
|
117
118
|
"lint-staged": "16.1.2",
|
|
119
|
+
"nano-staged": "0.8.0",
|
|
118
120
|
"prettier": "3.6.2",
|
|
119
121
|
"publint": "0.3.12",
|
|
120
|
-
"simple-git-hooks": "2.13.0",
|
|
121
122
|
"tsdown": "0.13.0",
|
|
122
123
|
"typescript": "5.8.3",
|
|
123
124
|
"unplugin-unused": "0.5.1"
|
|
124
|
-
}
|
|
125
|
-
"trustedDependencies": [
|
|
126
|
-
"esbuild",
|
|
127
|
-
"unrs-resolver",
|
|
128
|
-
"simple-git-hooks"
|
|
129
|
-
]
|
|
125
|
+
}
|
|
130
126
|
}
|