mirror of
https://github.com/verdaccio/verdaccio.git
synced 2024-12-16 21:56:25 -05:00
chore: add css on js linting
This commit is contained in:
parent
9570d2d0e1
commit
2ba9e7a6bb
3 changed files with 45 additions and 8 deletions
46
.stylelintrc
46
.stylelintrc
|
@ -1,8 +1,42 @@
|
|||
{
|
||||
"extends": "stylelint-config-recommended-scss",
|
||||
"rules": {
|
||||
"selector-pseudo-class-no-unknown": [true, {
|
||||
"ignorePseudoClasses": ["/global/"]
|
||||
}]
|
||||
}
|
||||
"processors": ["stylelint-processor-styled-components"],
|
||||
"extends": [
|
||||
"stylelint-config-recommended"
|
||||
],
|
||||
"syntax": "scss",
|
||||
"rules": {
|
||||
"at-rule-no-unknown": true,
|
||||
"block-no-empty": true,
|
||||
"color-named": "always-where-possible",
|
||||
"comment-no-empty": true,
|
||||
"declaration-block-no-duplicate-properties": [
|
||||
true,
|
||||
{
|
||||
ignore: ["consecutive-duplicates-with-different-values"]
|
||||
}
|
||||
],
|
||||
"declaration-block-no-shorthand-property-overrides": true,
|
||||
"font-family-no-duplicate-names": true,
|
||||
"color-no-invalid-hex": true,
|
||||
"font-family-no-missing-generic-family-keyword": true,
|
||||
"function-calc-no-unspaced-operator": true,
|
||||
"function-linear-gradient-no-nonstandard-direction": true,
|
||||
"keyframe-declaration-no-important": true,
|
||||
"property-no-vendor-prefix": true,
|
||||
"media-feature-name-no-unknown": true,
|
||||
"no-descending-specificity": true,
|
||||
"no-duplicate-at-import-rules": true,
|
||||
"no-duplicate-selectors": true,
|
||||
"no-empty-source": true,
|
||||
"no-extra-semicolons": true,
|
||||
"no-invalid-double-slash-comments": true,
|
||||
"property-no-unknown": true,
|
||||
"selector-pseudo-class-no-unknown": true,
|
||||
"selector-pseudo-element-no-unknown": true,
|
||||
"selector-type-no-unknown": true,
|
||||
"string-no-newline": true,
|
||||
"unit-no-unknown": true
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
|
|
|
@ -137,8 +137,11 @@
|
|||
"source-map-loader": "0.2.4",
|
||||
"standard-version": "4.4.0",
|
||||
"style-loader": "0.23.0",
|
||||
"stylelint": "9.5.0",
|
||||
"stylelint": "9.9.0",
|
||||
"stylelint-config-recommended": "2.1.0",
|
||||
"stylelint-config-recommended-scss": "3.2.0",
|
||||
"stylelint-config-styled-components": "0.1.1",
|
||||
"stylelint-processor-styled-components": "1.5.1",
|
||||
"stylelint-scss": "3.3.1",
|
||||
"stylelint-webpack-plugin": "0.10.5",
|
||||
"supertest": "3.3.0",
|
||||
|
@ -179,7 +182,7 @@
|
|||
"coverage:publish": "codecov",
|
||||
"lint": "npm run flow && npm run lint:js && npm run lint:css",
|
||||
"lint:js": "eslint . ",
|
||||
"lint:css": "stylelint 'src/**/*.scss' --syntax scss",
|
||||
"lint:css": "stylelint 'src/webui/**/styles.js'",
|
||||
"dev:start": "cross-env BABEL_ENV=registry babel-node src/lib/cli",
|
||||
"code:build": "cross-env BABEL_ENV=registry babel src/ --out-dir build/ --ignore src/webui/ --copy-files",
|
||||
"code:docker-build": "cross-env BABEL_ENV=registry-docker babel src/ --out-dir build/ --ignore src/webui/ --copy-files",
|
||||
|
|
BIN
yarn.lock
BIN
yarn.lock
Binary file not shown.
Loading…
Reference in a new issue