Skip to content

Commit

Permalink
Replace scss-lint for stylelint
Browse files Browse the repository at this point in the history
scss-lint is no longer being actively worked on and stylelint is a more full-featured utility.

See: https://github.com/sds/scss-lint
  • Loading branch information
tysongach committed Jun 8, 2020
1 parent 509c10b commit e431f0d
Show file tree
Hide file tree
Showing 5 changed files with 1,301 additions and 268 deletions.
6 changes: 5 additions & 1 deletion .hound.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,11 @@ rubocop:
version: 0.75.0

scss:
config_file: .scss-lint.yml
enabled: false

stylelint:
config_file: .stylelintrc.json
enabled: true

eslint:
enabled: true
Expand Down
252 changes: 0 additions & 252 deletions .scss-lint.yml

This file was deleted.

3 changes: 3 additions & 0 deletions .stylelintrc.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{
"extends": "@thoughtbot/stylelint-config"
}
3 changes: 3 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
"version": "1.0.0",
"main": "index.js",
"scripts": {
"stylelint": "stylelint 'app/assets/stylesheets/**/*.scss' --formatter verbose",
"test": "jest",
"test:watch": "jest --watch",
"test:coverage": "jest --coverage"
Expand Down Expand Up @@ -46,6 +47,7 @@
"webpacker-react": "^1.0.0-beta.1"
},
"devDependencies": {
"@thoughtbot/stylelint-config": "2.0.0",
"babel-eslint": "^10.0.3",
"babel-jest": "^24.9.0",
"enzyme": "^3.3.0",
Expand All @@ -62,6 +64,7 @@
"react-test-renderer": "^16.9.0",
"react-transform-hmr": "^1.0.2",
"sinon": "^7.4.2",
"stylelint": "13.2.1",
"webpack-cli": "^3.3.0",
"webpack-dev-server": "^3.8.0"
},
Expand Down
Loading

0 comments on commit e431f0d

Please sign in to comment.