Skip to content

Commit

Permalink
Merge pull request #289 from MTES-MCT/linter
Browse files Browse the repository at this point in the history
Lint frontend with StandardJS
  • Loading branch information
louptheron authored Apr 28, 2021
2 parents 0f79e06 + fc2da8b commit bd2ebc5
Show file tree
Hide file tree
Showing 131 changed files with 9,447 additions and 8,095 deletions.
1 change: 1 addition & 0 deletions frontend/.env
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
SKIP_PREFLIGHT_CHECK=true
28 changes: 28 additions & 0 deletions frontend/.eslintrc.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
env:
browser: true
es6: true
extends:
- 'plugin:react/recommended'
- standard
globals:
Atomics: readonly
SharedArrayBuffer: readonly
describe: readonly
it: readonly
expect: readonly
jest: readonly
parser: "babel-eslint"
parserOptions:
ecmaFeatures:
jsx: true
ecmaVersion: 2018
sourceType: module
plugins:
- react
rules: {
"react-hooks/exhaustive-deps": "off",
"react/prop-types": "off"
}
settings:
react:
version: 16.13.1
Loading

0 comments on commit bd2ebc5

Please sign in to comment.