fdc9a1830a
var in javascript has some surprising behaviors, especially for those of us from a python background, and can hide some errors. There's a good article on it here: https://tylermcginnis.com/var-let-const/ Tell eslint to not allow the use of var and instead require either let or const. Then update the one use. Change-Id: Idd4b0a9086a68070dc35b546b7f73701c94ba1b0
26 lines
488 B
Plaintext
26 lines
488 B
Plaintext
parser: babel-eslint
|
|
plugins:
|
|
- standard
|
|
- jest
|
|
rules:
|
|
no-var: error
|
|
no-console: off
|
|
semi: [error, never]
|
|
quotes: [error, single]
|
|
lines-between-class-members: error
|
|
react/prop-types: error
|
|
react/jsx-key: error
|
|
react/no-did-mount-set-state: error
|
|
react/no-did-update-set-state: error
|
|
react/no-deprecated: error
|
|
extends:
|
|
- eslint:recommended
|
|
- plugin:react/recommended
|
|
settings:
|
|
react:
|
|
version: "16.4"
|
|
env:
|
|
jest/globals: true
|
|
browser: true
|
|
es6: true
|