@kitql/eslint-config 0.6.1-next.1 → 0.7.0-next.2
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/cmd.js +2 -2
- package/package.json +2 -2
- /package/{.prettierrc.mjs → .prettierrc.js} +0 -0
package/cmd.js
CHANGED
|
@@ -40,7 +40,7 @@ program.parse(process.argv)
|
|
|
40
40
|
const options_cli = program.opts()
|
|
41
41
|
|
|
42
42
|
const pathPrettierIgnore = findFileOrUp('.prettierignore')
|
|
43
|
-
const
|
|
43
|
+
const pathPrettier_js = findFileOrUp('.prettierrc.js')
|
|
44
44
|
|
|
45
45
|
const format = options_cli.format ?? false
|
|
46
46
|
let glob = options_cli.glob ?? '.'
|
|
@@ -294,7 +294,7 @@ async function prettierRun() {
|
|
|
294
294
|
// ignore?
|
|
295
295
|
` --ignore-path ${pathPrettierIgnore}` +
|
|
296
296
|
// config
|
|
297
|
-
` --config ${
|
|
297
|
+
` --config ${pathPrettier_js}` +
|
|
298
298
|
// format or not
|
|
299
299
|
`${format ? ' --write' : ''}` +
|
|
300
300
|
// exec
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@kitql/eslint-config",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.7.0-next.2",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"description": "opinionated linting and formatting for projects",
|
|
6
6
|
"repository": {
|
|
@@ -17,7 +17,7 @@
|
|
|
17
17
|
},
|
|
18
18
|
"main": "eslint.config.js",
|
|
19
19
|
"files": [
|
|
20
|
-
".prettierrc.
|
|
20
|
+
".prettierrc.js",
|
|
21
21
|
"cmd.js",
|
|
22
22
|
"eslint.config.js",
|
|
23
23
|
"helper/findFileOrUp.js"
|
|
File without changes
|