Skip to content

Commit

Permalink
Merge pull request #3 from Rue-pro/setup-stylelint
Browse files Browse the repository at this point in the history
chore: add stylelint
  • Loading branch information
Rue-pro authored Mar 14, 2024
2 parents 8f80cca + 84afbc6 commit 706690a
Show file tree
Hide file tree
Showing 9 changed files with 472 additions and 62 deletions.
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

0 comments on commit 706690a

Please sign in to comment.