0
Fork 0
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:
Juan Picado @jotadeveloper 2018-12-09 16:52:27 +01:00
parent 9570d2d0e1
commit 2ba9e7a6bb
No known key found for this signature in database
GPG key ID: 18AC54485952D158
3 changed files with 45 additions and 8 deletions

View file

@ -1,8 +1,42 @@
{ {
"extends": "stylelint-config-recommended-scss", "processors": ["stylelint-processor-styled-components"],
"rules": { "extends": [
"selector-pseudo-class-no-unknown": [true, { "stylelint-config-recommended"
"ignorePseudoClasses": ["/global/"] ],
}] "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
}
} }

View file

@ -137,8 +137,11 @@
"source-map-loader": "0.2.4", "source-map-loader": "0.2.4",
"standard-version": "4.4.0", "standard-version": "4.4.0",
"style-loader": "0.23.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-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-scss": "3.3.1",
"stylelint-webpack-plugin": "0.10.5", "stylelint-webpack-plugin": "0.10.5",
"supertest": "3.3.0", "supertest": "3.3.0",
@ -179,7 +182,7 @@
"coverage:publish": "codecov", "coverage:publish": "codecov",
"lint": "npm run flow && npm run lint:js && npm run lint:css", "lint": "npm run flow && npm run lint:js && npm run lint:css",
"lint:js": "eslint . ", "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", "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: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", "code:docker-build": "cross-env BABEL_ENV=registry-docker babel src/ --out-dir build/ --ignore src/webui/ --copy-files",

BIN
yarn.lock

Binary file not shown.