Use stylelint on styled-components

This commit is contained in:
Aarni Halinen
2020-12-28 22:40:04 +02:00
parent 23973c2865
commit c55ddf81eb
6 changed files with 1279 additions and 320 deletions
+5 -6
View File
@@ -23,10 +23,10 @@
"build": "NODE_ENV=production npm-run-all build:client build:server",
"build:server": "webpack -p --config=configs/webpack/prod.js --env.platform=server",
"build:client": "webpack -p --config=configs/webpack/prod.js --env.platform=client",
"lint": "npm run lint:es && npm run lint:sass",
"lint": "npm run lint:es && npm run lint:css",
"lint:es": "eslint \"./src/**/*.{ts,tsx}\"",
"lint:es:fix": "eslint --fix \"./src/**/*.{ts,tsx}\"",
"lint:sass": "stylelint \"./src/**/*.{scss,css}\"",
"lint:css": "stylelint \"./src/**/*.{ts,tsx}\"",
"start": "npm run start-dev",
"start-dev": "webpack-dev-server --config=configs/webpack/dev.js",
"serve": "node dist/js/server.js",
@@ -96,10 +96,9 @@
"serve": "11.3.2",
"style-loader": "0.21.0",
"stylelint": "11.1.1",
"stylelint-config-recommended-scss": "4.0.0",
"stylelint-config-standard": "19.0.0",
"stylelint-scss": "3.12.1",
"stylelint-webpack-plugin": "1.0.3",
"stylelint-config-recommended": "3.0.0",
"stylelint-config-styled-components": "0.1.1",
"stylelint-processor-styled-components": "1.10.0",
"testcafe": "1.6.1",
"testcafe-react-selectors": "2.1.0",
"ts-loader": "7.0.5",