mirror of
https://github.com/bookwyrm-social/bookwyrm.git
synced 2024-11-22 01:21:07 +00:00
[lint] Update context for linting frontend files:
- Lint files when pushing on the _frontend_ branch. - Lint files when eslint or stylelint config files are updated. - Use _strict_ parsing of JS files by default. This should make the JS linting test to fail.
This commit is contained in:
parent
cbed5e331b
commit
27e47b0a35
2 changed files with 9 additions and 3 deletions
|
@ -6,5 +6,9 @@ module.exports = {
|
|||
"es6": true
|
||||
},
|
||||
|
||||
"extends": "eslint:recommended"
|
||||
"extends": "eslint:recommended",
|
||||
|
||||
"rules": {
|
||||
"strict": "error"
|
||||
}
|
||||
};
|
||||
|
|
6
.github/workflows/lint-frontend.yaml
vendored
6
.github/workflows/lint-frontend.yaml
vendored
|
@ -3,12 +3,14 @@ name: Lint Frontend
|
|||
|
||||
on:
|
||||
push:
|
||||
branches: [ main, ci ]
|
||||
branches: [ main, ci, frontend ]
|
||||
paths:
|
||||
- '.github/workflows/**'
|
||||
- 'static/**'
|
||||
- '.eslintrc'
|
||||
- '.stylelintrc'
|
||||
pull_request:
|
||||
branches: [ main, ci ]
|
||||
branches: [ main, ci, frontend ]
|
||||
|
||||
jobs:
|
||||
lint:
|
||||
|
|
Loading…
Reference in a new issue