@mouse_484/eslint-config 5.4.3 → 5.4.4
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/bin/cli.js +11 -5
- package/package.json +4 -2
package/bin/cli.js
CHANGED
|
@@ -95,11 +95,17 @@ async function main() {
|
|
|
95
95
|
|
|
96
96
|
logger('Updating config file')
|
|
97
97
|
const configPath = path.join(cwd, `eslint.config.${packageJson.type === 'module' ? 'js' : 'mjs'}`)
|
|
98
|
-
await
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
98
|
+
const config = await readFile(configPath, 'utf8')
|
|
99
|
+
await writeFile(
|
|
100
|
+
configPath,
|
|
101
|
+
config
|
|
102
|
+
.replace(
|
|
103
|
+
'import antfu from \'@antfu/eslint-config\'',
|
|
104
|
+
'import mouse from \'@mouse_484/eslint-config\'',
|
|
105
|
+
)
|
|
106
|
+
.replace('antfu', 'mouse'),
|
|
107
|
+
'utf8',
|
|
108
|
+
)
|
|
103
109
|
|
|
104
110
|
logger('Linting the project to verify setup')
|
|
105
111
|
await runAgentCommand(
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@mouse_484/eslint-config",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "5.4.
|
|
4
|
+
"version": "5.4.4",
|
|
5
5
|
"author": "mouse_484",
|
|
6
6
|
"license": "MIT",
|
|
7
7
|
"homepage": "https://github.com/mouse484/config/tree/main/packages/eslint",
|
|
@@ -17,7 +17,9 @@
|
|
|
17
17
|
],
|
|
18
18
|
"main": "src/index.js",
|
|
19
19
|
"types": "src/index.d.ts",
|
|
20
|
-
"bin":
|
|
20
|
+
"bin": {
|
|
21
|
+
"setup": "./bin/cli.js"
|
|
22
|
+
},
|
|
21
23
|
"scripts": {
|
|
22
24
|
"typegen": "node scripts/typegen.js"
|
|
23
25
|
},
|