mirror of
https://github.com/chartjs/Chart.js.git
synced 2024-10-08 21:29:07 +02:00
25a9969489
* enable esnext and fix all lint errors * Review update * Missed some * Some cleanup still * Remove leftover eslint disable
38 lines
636 B
YAML
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
|
|
|