mirror of
https://github.com/fooflington/selfdefined.git
synced 2025-12-14 16:29:04 +00:00
* tooling: add stylelint and base configuration (see #74) * Autofix with stylelint on commit
This commit is contained in:
12
package.json
12
package.json
@@ -9,7 +9,8 @@
|
||||
"build:site": "eleventy",
|
||||
"build": "npm run build:css && npm run build:site",
|
||||
"create-definitions": "bin/create-definitions",
|
||||
"lint": "npm run lint:js",
|
||||
"lint": "npm run lint:css && npm run lint:js",
|
||||
"lint:css": "stylelint \"assets/css/**/*.scss\"",
|
||||
"lint:js": "eslint \"11ty/**/*.js\"",
|
||||
"serve": "concurrently \"npm run serve:site\" \"npm run watch:css\"",
|
||||
"serve:site": "eleventy --serve",
|
||||
@@ -42,6 +43,9 @@
|
||||
"11ty/**/*.js": [
|
||||
"npm run lint:js -- --fix",
|
||||
"npm run test"
|
||||
],
|
||||
"assets/css/**/*.scss": [
|
||||
"npm run lint:css -- --fix"
|
||||
]
|
||||
},
|
||||
"dependencies": {
|
||||
@@ -62,6 +66,10 @@
|
||||
"parcel-bundler": "^1.12.4",
|
||||
"prettier": "^1.19.1",
|
||||
"sass": "^1.23.7",
|
||||
"slugify": "^1.3.6"
|
||||
"slugify": "^1.3.6",
|
||||
"stylelint": "^13.2.0",
|
||||
"stylelint-config-recommended-scss": "^4.2.0",
|
||||
"stylelint-order": "^4.0.0",
|
||||
"stylelint-scss": "^3.14.2"
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user