[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 "es6": true
}, },
"extends": "eslint:recommended" "extends": "eslint:recommended",
"rules": {
"strict": "error"
}
}; };

View file

@ -3,12 +3,14 @@ name: Lint Frontend
on: on:
push: push:
branches: [ main, ci ] branches: [ main, ci, frontend ]
paths: paths:
- '.github/workflows/**' - '.github/workflows/**'
- 'static/**' - 'static/**'
- '.eslintrc'
- '.stylelintrc'
pull_request: pull_request:
branches: [ main, ci ] branches: [ main, ci, frontend ]
jobs: jobs:
lint: lint: