Skip to content

Commit 4baa9ca

Browse files
author
罗学
committed
feat: 增加stylelint
1 parent ec48c4d commit 4baa9ca

File tree

8 files changed

+1454
-1845
lines changed

8 files changed

+1454
-1845
lines changed

package-lock.json

Lines changed: 20 additions & 20 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -20,10 +20,10 @@
2020
},
2121
"main": "index.js",
2222
"devDependencies": {
23-
"@pkb/cli": "^1.4.18",
23+
"@pkb/cli": "^1.4.19",
2424
"@pkb/plugin-react": "^1.4.8",
25-
"@pkb/webpack-box": "^1.4.18",
26-
"@pkb/rollup-box": "^1.4.18"
25+
"@pkb/webpack-box": "^1.4.19",
26+
"@pkb/rollup-box": "^1.4.20"
2727
},
2828
"bugs": {
2929
"url": "https://github.com/luoxue-victor/learn_webpack/issues"

packages/cli/commands/eslint.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,6 @@ exports.registerCommand = (params) => {
44
.command('eslint')
55
.description('js代码检查')
66
.action((cmd) => {
7-
require('@pkb/plugin-eslint/lint')({})
7+
require('@pkb/plugin-eslint/lint')()
88
})
99
}

packages/cli/commands/stylelint.js

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
exports.registerCommand = (params) => {
2+
const { program, cleanArgs } = params
3+
program
4+
.command('stylelint')
5+
.description('style 代码检查')
6+
.action((cmd) => {
7+
require('@pkb/plugin-stylelint/lint')()
8+
})
9+
}

0 commit comments

Comments
 (0)