feat: add stylelint

This commit is contained in:
syy11cn 2021-10-29 16:27:35 +08:00
parent 935af41294
commit 9d13bcb37a
3 changed files with 674 additions and 9 deletions

13
.stylelintrc Normal file
View File

@ -0,0 +1,13 @@
{
"extends": "stylelint-config-standard",
"rules": {},
"ignoreFiles": [
"node_modules/**/*",
"public/**/*",
"dist/**/*",
"**/*.js",
"**/*.jsx",
"**/*.tsx",
"**/*.ts"
]
}

View File

@ -5,6 +5,7 @@
"dev": "vite",
"build": "vite build",
"serve": "vite preview",
"lint:less": "stylelint --fix \"src/**/*.less\" --syntax less",
"lint-staged:js": "eslint --ext .js,.jsx,.ts,.tsx",
"lint:js": "eslint --cache --ext .js,.jsx,.ts,.tsx ./src",
"lint:fix": "eslint --fix --cache --ext .js,.jsx,.ts,.tsx",
@ -24,6 +25,8 @@
"eslint-plugin-react-hooks": "^4.2.0",
"esprima": "^4.0.1",
"prettier": "^2.4.1",
"stylelint": "^14.0.1",
"stylelint-config-standard": "^23.0.0",
"vite": "^2.6.4"
}
}

667
yarn.lock

File diff suppressed because it is too large Load Diff