Skip to content

Commit

Permalink
Add stylelint and enforce via global package.json (#106)
Browse files Browse the repository at this point in the history
  • Loading branch information
diehbria authored May 17, 2022
1 parent df87b8b commit bb89175
Show file tree
Hide file tree
Showing 4 changed files with 192 additions and 462 deletions.
5 changes: 5 additions & 0 deletions .stylelintignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
build/
dist/
www/
loader/
node_modules/
13 changes: 13 additions & 0 deletions .stylelintrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
{
"extends": "stylelint-config-standard",
"rules": {
"no-empty-source": null,
"selector-class-pattern": "^([a-z][a-z0-9]*)(-[a-z0-9]+)*$",
"selector-type-no-unknown": [
true,
{
"ignore": ["custom-elements"]
}
]
}
}
10 changes: 6 additions & 4 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,10 +14,12 @@
"start": "cd packages/components && yarn run start",
"build": "lerna run build --stream",
"clean": "git clean -dxf -e /.idea -e /.vscode -e creds.json",
"fix": "npm-run-all -p fix:eslint",
"fix": "npm-run-all -p fix:eslint fix:stylelint",
"fix:eslint": "eslint --fix --ext .js,.ts,.tsx .",
"test": "npm-run-all -p test:unit test:eslint test:git",
"fix:stylelint": "stylelint '**/*.css' --fix",
"test": "npm-run-all -p test:unit test:eslint test:stylelint test:git",
"test:eslint": "eslint --ext .js,.ts,.tsx . --max-warnings=49",
"test:stylelint": "stylelint '**/*.css' --max-warnings 0",
"test:unit": "lerna run test --stream --concurrency 1",
"test:git": "git diff --exit-code",
"pack": "lerna run pack",
Expand Down Expand Up @@ -74,8 +76,8 @@
"lerna-changelog": "^1.0.1",
"npm-run-all": "^4.1.5",
"query-string": "^6.13.5",
"stylelint": "^11.1.1",
"stylelint-config-standard": "^19.0.0",
"stylelint": "14.8.2",
"stylelint-config-standard": "25.0.0",
"ts-jest": "26.5.6",
"ts-loader": "9.2.6",
"webpack": "^4.41.2",
Expand Down
Loading

0 comments on commit bb89175

Please sign in to comment.