mirror of
https://github.com/glitch-soc/mastodon.git
synced 2024-11-24 00:54:02 -05:00
Run Rubocop with lint-staged on commit (#24644)
This commit is contained in:
parent
60ac9e8634
commit
470b8abb69
@ -212,6 +212,7 @@
|
|||||||
},
|
},
|
||||||
"lint-staged": {
|
"lint-staged": {
|
||||||
"*": "prettier --ignore-unknown --write",
|
"*": "prettier --ignore-unknown --write",
|
||||||
|
"Capfile|Gemfile|*.{rb,ruby,ru,rake}": "bundle exec rubocop -a",
|
||||||
"*.{js,jsx,ts,tsx}": "eslint --fix",
|
"*.{js,jsx,ts,tsx}": "eslint --fix",
|
||||||
"*.{css,scss}": "stylelint --fix"
|
"*.{css,scss}": "stylelint --fix"
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user