@kitql/eslint-config 0.4.0-next.4 → 0.4.0-next.6
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 +4 -1
- package/eslint.config.js +1 -1
- package/package.json +2 -2
package/cmd.js
CHANGED
|
@@ -3,7 +3,7 @@ import { spawn } from 'node:child_process'
|
|
|
3
3
|
import { Option, program } from 'commander'
|
|
4
4
|
import ora from 'ora'
|
|
5
5
|
|
|
6
|
-
import { bgBlueBright, gray, red } from '@kitql/helpers'
|
|
6
|
+
import { bgBlueBright, bgGreen, bgRedBright, gray, red } from '@kitql/helpers'
|
|
7
7
|
|
|
8
8
|
import { findFileOrUp } from './helper/findFileOrUp.js'
|
|
9
9
|
|
|
@@ -113,16 +113,19 @@ async function prettierRun() {
|
|
|
113
113
|
|
|
114
114
|
const eslintCode = await eslintRun()
|
|
115
115
|
if (eslintCode.status) {
|
|
116
|
+
spinner.prefixText = bgRedBright(` kitql-lint `)
|
|
116
117
|
spinner.fail(red(`eslint failed, check logs above.`))
|
|
117
118
|
process.exit(eslintCode.status)
|
|
118
119
|
}
|
|
119
120
|
|
|
120
121
|
const prettierCode = await prettierRun()
|
|
121
122
|
if (prettierCode.status) {
|
|
123
|
+
spinner.prefixText = bgRedBright(` kitql-lint `)
|
|
122
124
|
spinner.fail(red(`prettier failed, check logs above.`))
|
|
123
125
|
process.exit(eslintCode.status)
|
|
124
126
|
}
|
|
125
127
|
|
|
128
|
+
spinner.prefixText = bgGreen(` kitql-lint `)
|
|
126
129
|
spinner.succeed(`All good, your files looks great!`)
|
|
127
130
|
spinner.stop()
|
|
128
131
|
process.exit(0)
|
package/eslint.config.js
CHANGED
|
@@ -13,7 +13,7 @@ const pathPrettierIgnore = findFileOrUp('.prettierignore', { absolute: true })
|
|
|
13
13
|
export const config = [
|
|
14
14
|
{
|
|
15
15
|
name: '@kitql:prettier:ignores',
|
|
16
|
-
ignores: includeIgnoreFile(pathPrettierIgnore).ignores,
|
|
16
|
+
ignores: pathPrettierIgnore ? includeIgnoreFile(pathPrettierIgnore).ignores : [],
|
|
17
17
|
},
|
|
18
18
|
{
|
|
19
19
|
name: 'eslint/defaults/recommended',
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@kitql/eslint-config",
|
|
3
|
-
"version": "0.4.0-next.
|
|
3
|
+
"version": "0.4.0-next.6",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"description": "opinionated linting and formatting for projects",
|
|
6
6
|
"repository": {
|
|
@@ -39,7 +39,7 @@
|
|
|
39
39
|
"commander": "12.1.0",
|
|
40
40
|
"eslint": "^9.10.0",
|
|
41
41
|
"eslint-plugin-svelte": "2.43.0",
|
|
42
|
-
"eslint-plugin-unused-imports": "^4.1.
|
|
42
|
+
"eslint-plugin-unused-imports": "^4.1.4",
|
|
43
43
|
"globals": "15.9.0",
|
|
44
44
|
"ora": "^8.1.0",
|
|
45
45
|
"prettier": "3.3.3",
|