Skip to content

Commit

Permalink
Merge pull request #4421 from pulibrary/add-stylelint
Browse files Browse the repository at this point in the history
Add stylelint
  • Loading branch information
christinach authored Oct 4, 2024
2 parents 1af8ff3 + 7659877 commit 481e376
Show file tree
Hide file tree
Showing 4 changed files with 389 additions and 10 deletions.
3 changes: 3 additions & 0 deletions .stylelintrc.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{
"extends": "stylelint-config-standard-scss"
}
6 changes: 6 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -138,6 +138,12 @@ bundle exec rubocop
bundle exec reek app
```

#### Running stylelint

```
yarn stylelint "**/*.scss"
```

#### Run lighthouse from the command line
This command runs a rails server, so you will need to stop any rails server that is already running locally before running the commands below.

Expand Down
2 changes: 2 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,8 @@
"lint-staged": "^15.2.10",
"prettier": "^3.3.3",
"simple-git-hooks": "^2.11.1",
"stylelint": "^16.9.0",
"stylelint-config-standard-scss": "^13.1.0",
"vite": "^5.2.14",
"vite-plugin-ruby": "^5.0.0"
},
Expand Down
Loading

0 comments on commit 481e376

Please sign in to comment.