Chart.js/test/.eslintrc.yml
Jukka Kurkela 25a9969489
Enable esnext and fix all lint errors (#7094)
* enable esnext and fix all lint errors

* Review update

* Missed some

* Some cleanup still

* Remove leftover eslint disable
2020-02-13 18:41:49 -05:00

38 lines
636 B
YAML

parserOptions:
ecmaVersion: 6
env:
es6: true
jasmine: true
commonjs: true
es2017: false
es2020: false
globals:
acquireChart: true
afterEvent: true
Chart: true
moment: true
waitForResize: true
# https://eslint.org/docs/rules/
rules:
# Best Practices
complexity: 0
max-statements: [0, 100]
# Loosen up for tests
no-var: 0
prefer-arrow-callback: 0
prefer-spread: 0
prefer-const: 0
object-shorthand: 0
import/no-commonjs: 0
no-invalid-this: 0
array-callback-return: 0
operator-assignment: 0
no-empty-function: 0
import/no-namespace: 0
prefer-rest-params: 0
no-unneeded-ternary: 0