[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:
Fabien Basmaison 2021-04-05 16:35:09 +02:00
parent cbed5e331b
commit 27e47b0a35
2 changed files with 9 additions and 3 deletions

View file

@ -6,5 +6,9 @@ module.exports = {
"es6": true
},
"extends": "eslint:recommended"
"extends": "eslint:recommended",
"rules": {
"strict": "error"
}
};

View file

@ -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: