mirror of
https://github.com/kremalicious/portfolio.git
synced 2024-12-22 17:23:22 +01:00
simplify stylelint/prettier setup
This commit is contained in:
parent
d1d4d09980
commit
1abeaf427b
11
.stylelintrc
11
.stylelintrc
@ -1,12 +1,5 @@
|
|||||||
{
|
{
|
||||||
"extends": [
|
"extends": [
|
||||||
"stylelint-config-standard",
|
"stylelint-prettier/recommended"
|
||||||
"stylelint-config-css-modules",
|
]
|
||||||
"./node_modules/prettier-stylelint/config.js"
|
|
||||||
],
|
|
||||||
"syntax": "scss",
|
|
||||||
"rules": {
|
|
||||||
"indentation": 4,
|
|
||||||
"no-descending-specificity": null
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
1575
package-lock.json
generated
1575
package-lock.json
generated
File diff suppressed because it is too large
Load Diff
@ -14,8 +14,7 @@
|
|||||||
"lint:css": "stylelint ./src/**/*.{css,scss}",
|
"lint:css": "stylelint ./src/**/*.{css,scss}",
|
||||||
"lint": "npm run lint:js && npm run lint:css",
|
"lint": "npm run lint:js && npm run lint:css",
|
||||||
"build": "gatsby build",
|
"build": "gatsby build",
|
||||||
"format": "prettier --write 'src/**/*.{js,jsx}'",
|
"format": "prettier --write 'src/**/*.{js,jsx,css,scss}'",
|
||||||
"format:css": "prettier-stylelint --write --quiet 'src/**/*.{css,scss}'",
|
|
||||||
"test": "npm run lint && jest --coverage --silent",
|
"test": "npm run lint && jest --coverage --silent",
|
||||||
"test:watch": "npm run lint && jest --coverage --watch",
|
"test:watch": "npm run lint && jest --coverage --watch",
|
||||||
"deploy": "./scripts/deploy.sh",
|
"deploy": "./scripts/deploy.sh",
|
||||||
@ -88,11 +87,10 @@
|
|||||||
"postcss-preset-env": "^6.7.0",
|
"postcss-preset-env": "^6.7.0",
|
||||||
"prepend": "^1.0.2",
|
"prepend": "^1.0.2",
|
||||||
"prettier": "^2.0.0",
|
"prettier": "^2.0.0",
|
||||||
"prettier-stylelint": "^0.4.2",
|
|
||||||
"slugify": "^1.4.0",
|
"slugify": "^1.4.0",
|
||||||
"stylelint": "^13.2.1",
|
"stylelint": "^13.2.1",
|
||||||
"stylelint-config-css-modules": "^2.2.0",
|
"stylelint-config-prettier": "^8.0.1",
|
||||||
"stylelint-config-standard": "^20.0.0"
|
"stylelint-prettier": "^1.1.2"
|
||||||
},
|
},
|
||||||
"browserslist": [
|
"browserslist": [
|
||||||
">0.2%",
|
">0.2%",
|
||||||
|
Loading…
Reference in New Issue
Block a user