@oliver139/eslint-config 2.3.2 → 2.4.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/dist/cli.js +3 -3
- package/package.json +2 -2
package/dist/cli.js
CHANGED
|
@@ -5,7 +5,7 @@ import c5 from "ansis";
|
|
|
5
5
|
import { cac } from "cac";
|
|
6
6
|
|
|
7
7
|
// package.json
|
|
8
|
-
var version = "2.
|
|
8
|
+
var version = "2.4.0";
|
|
9
9
|
|
|
10
10
|
// src/cli/run.ts
|
|
11
11
|
import fs3 from "node:fs";
|
|
@@ -159,9 +159,9 @@ function isGitClean() {
|
|
|
159
159
|
}
|
|
160
160
|
function getEslintConfigContent(mainConfig, additionalConfigs) {
|
|
161
161
|
return `
|
|
162
|
-
import
|
|
162
|
+
import eslintConfig from '@oliver139/eslint-config'
|
|
163
163
|
|
|
164
|
-
export default
|
|
164
|
+
export default eslintConfig({
|
|
165
165
|
${mainConfig}
|
|
166
166
|
}${additionalConfigs?.map((config) => `,{
|
|
167
167
|
${config}
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@oliver139/eslint-config",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "2.
|
|
4
|
+
"version": "2.4.0",
|
|
5
5
|
"description": " Oliver's ESLint config preset powered by @antfu/eslint-config",
|
|
6
6
|
"author": "Oliver Mak <oliver139.working@gmail.com> (https://github.com/oliver139)",
|
|
7
7
|
"license": "MIT",
|
|
@@ -159,7 +159,7 @@
|
|
|
159
159
|
"typescript": "^5.8.2",
|
|
160
160
|
"vitest": "^3.0.9",
|
|
161
161
|
"vue": "^3.5.13",
|
|
162
|
-
"@oliver139/eslint-config": "2.
|
|
162
|
+
"@oliver139/eslint-config": "2.4.0"
|
|
163
163
|
},
|
|
164
164
|
"simple-git-hooks": {
|
|
165
165
|
"pre-commit": "npx lint-staged"
|