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

chore: add stylelint #3

Merged
merged 1 commit into from
Mar 14, 2024
Merged
Show file tree
Hide file tree
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
12 changes: 0 additions & 12 deletions .eslintrc.cjs

This file was deleted.

12 changes: 12 additions & 0 deletions .eslintrc.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
{
"root": true,
"env": { "browser": true, "es2020": true },
"extends": [
"eslint:recommended",
"plugin:@typescript-eslint/recommended",
"prettier"
],
"ignorePatterns": ["dist", ".eslintrc.cjs"],
"parser": "@typescript-eslint/parser",
"plugins": ["prettier"]
}
1 change: 1 addition & 0 deletions .lintstagedrc.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,5 +3,6 @@
"eslint --quiet --fix",
"prettier --write --ignore-unknown"
],
"*.{css,scss}": "stylelint --fix",
"*.{json,html}": ["prettier --write --ignore-unknown"]
}
File renamed without changes.
5 changes: 5 additions & 0 deletions .stylelintignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
node_modules
public
dist
coverage
.scannerwork
17 changes: 17 additions & 0 deletions .stylelintrc.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
{
"extends": [
"stylelint-config-standard-scss",
"stylelint-config-recess-order",
"stylelint-prettier/recommended"
],
"rules": {
"custom-property-no-missing-var-function": null,
"selector-class-pattern": [
"^[a-z]([a-z0-9-]+)?(__([a-z0-9]+-?)+)?(--([a-z0-9]+-?)+){0,2}$",
{
"message": "Expected BEM naming convention for class."
}
],
"declaration-no-important": true
}
}
50 changes: 0 additions & 50 deletions package copy.json

This file was deleted.

6 changes: 6 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@
"author": "",
"license": "ISC",
"dependencies": {
"classnames": "2.5.1",
"preact": "10.19.6"
},
"devDependencies": {
Expand All @@ -38,6 +39,11 @@
"lint-staged": "15.2.2",
"prettier": "3.2.5",
"sass": "1.71.1",
"stylelint": "16.2.1",
"stylelint-config-recess-order": "5.0.0",
"stylelint-config-standard-scss": "13.0.0",
"stylelint-order": "6.0.4",
"stylelint-prettier": "5.0.0",
"typescript": "5.4.2",
"vite": "5.1.5",
"vitest": "1.3.1"
Expand Down
Loading
Loading