Add CSS linting through stylelint
Include CSS linting by default for our CSS/SCSS files, originally introduced in cockpit. The stylelint configuration is copied from 760a4628282e02fbcef3.
This commit is contained in:
parent
0e2591ee93
commit
ee366ca531
4 changed files with 78 additions and 2 deletions
|
|
@ -9,7 +9,9 @@
|
|||
"watch": "webpack --watch --progress",
|
||||
"build": "webpack",
|
||||
"eslint": "eslint --ext .js --ext .jsx src/",
|
||||
"eslint:fix": "eslint --fix --ext .js --ext .jsx src/"
|
||||
"eslint:fix": "eslint --fix --ext .js --ext .jsx src/",
|
||||
"stylelint": "stylelint src/*{.css,scss}",
|
||||
"stylelint:fix": "stylelint --fix src/*{.css,scss}"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@babel/core": "^7.5.4",
|
||||
|
|
@ -43,6 +45,7 @@
|
|||
"sass-loader": "^12.1.0",
|
||||
"sizzle": "^2.3.3",
|
||||
"string-replace-loader": "^3.0.0",
|
||||
"stylelint": "^14.9.1",
|
||||
"terser-webpack-plugin": "^5.1.4",
|
||||
"webpack": "^5.54.0",
|
||||
"webpack-cli": "^4.9.1"
|
||||
|
|
@ -51,6 +54,8 @@
|
|||
"@patternfly/patternfly": "4.203.4",
|
||||
"@patternfly/react-core": "4.225.4",
|
||||
"react": "17.0.2",
|
||||
"react-dom": "17.0.2"
|
||||
"react-dom": "17.0.2",
|
||||
"stylelint-config-standard-scss": "^5.0.0",
|
||||
"stylelint-webpack-plugin": "^3.3.0"
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue