1
0
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:
Matthias Kretschmann 2020-03-22 00:27:33 +01:00
parent d1d4d09980
commit 1abeaf427b
Signed by: m
GPG Key ID: 606EEEF3C479A91F
28 changed files with 586 additions and 2152 deletions

View File

@ -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

File diff suppressed because it is too large Load Diff

View File

@ -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%",