Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add stylelint and enforce via global package.json #106

Merged
merged 1 commit into from
May 17, 2022
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
@@ -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",
@@ -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",
626 changes: 168 additions & 458 deletions yarn.lock

Large diffs are not rendered by default.