Chart.js/test/.eslintrc.yml

38 lines
636 B
YAML
Raw Normal View History

2018-12-18 14:49:39 +01:00
parserOptions:
ecmaVersion: 6
2018-12-18 14:49:39 +01:00
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