Skip to content

Commit

Permalink
Improve stylelint
Browse files Browse the repository at this point in the history
  • Loading branch information
Gnuk committed Sep 23, 2022
1 parent 5760a69 commit e16ad97
Show file tree
Hide file tree
Showing 4 changed files with 15 additions and 22 deletions.
4 changes: 2 additions & 2 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@tikui/cli",
"version": "2.1.0",
"version": "2.2.0",
"description": "Command lines tool for Tikui",
"main": "index.js",
"scripts": {
Expand Down
18 changes: 6 additions & 12 deletions src/cli/generate-project/common/.stylelintrc.json
Original file line number Diff line number Diff line change
@@ -1,24 +1,18 @@
{
"plugins": [
"stylelint-scss"
],
"plugins": ["stylelint-scss"],
"customSyntax": "postcss-scss",
"extends": [
"stylelint-config-standard-scss",
"stylelint-config-sass-guidelines",
"stylelint-config-concentric-order"
],
"extends": ["stylelint-config-standard-scss", "stylelint-config-concentric-order"],
"rules": {
"max-empty-lines": 1,
"max-nesting-depth": 3,
"order/properties-alphabetical-order": null,
"string-quotes": "single",
"selector-class-pattern": "^-?([a-z][a-z0-9]*)(-[a-z0-9]+)*$",
"function-parentheses-newline-inside": "always-multi-line",
"selector-list-comma-newline-after": "always-multi-line",
"selector-no-qualifying-type": [
true,
{
"ignore": [
"class"
]
"ignore": ["class"]
}
]
}
Expand Down
13 changes: 6 additions & 7 deletions src/cli/generate-project/templated/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
"lint": "concurrently npm:sass:lint npm:pug:lint",
"pug:lint": "pug-lint src",
"sass:lint": "stylelint \"src/**/*.scss\"",
"sass:lint:fix": "stylelint \"src/**/*.scss\"",
"sass:lint:fix": "stylelint \"src/**/*.scss\" --fix",
"prepare": "husky install"
},
"dependencies": {
Expand All @@ -35,13 +35,12 @@
"devDependencies": {
"concurrently": "^7.2.2",
"husky": "^8.0.1",
"postcss-scss": "^4.0.4",
"postcss-scss": "^4.0.5",
"pug-lint": "^2.6.0",
"stylelint": "^14.8.2",
"stylelint-config-concentric-order": "^5.0.0",
"stylelint-config-sass-guidelines": "^9.0.1",
"stylelint-config-standard": "^26.0.0",
"stylelint-config-standard-scss": "^4.0.0"
"stylelint": "^14.12.1",
"stylelint-config-concentric-order": "^5.1.0",
"stylelint-config-standard": "^28.0.0",
"stylelint-config-standard-scss": "^5.0.0"
},
"engines": {
"node": ">=16.15.1",
Expand Down

0 comments on commit e16ad97

Please sign in to comment.