2020-02-14 00:41:49 +01:00
|
|
|
extends:
|
|
|
|
- chartjs
|
2020-11-19 20:23:24 +01:00
|
|
|
- plugin:es/no-2019
|
2018-01-06 23:59:13 +01:00
|
|
|
|
|
|
|
env:
|
2019-12-27 23:13:24 +01:00
|
|
|
es6: true
|
2018-01-06 23:59:13 +01:00
|
|
|
browser: true
|
|
|
|
node: true
|
2018-02-03 13:28:54 +01:00
|
|
|
|
2019-10-31 23:45:13 +01:00
|
|
|
parserOptions:
|
2020-11-19 20:23:24 +01:00
|
|
|
ecmaVersion: 2018
|
2020-02-14 00:41:49 +01:00
|
|
|
sourceType: module
|
|
|
|
ecmaFeatures:
|
|
|
|
impliedStrict: true
|
|
|
|
modules: true
|
2019-10-31 23:45:13 +01:00
|
|
|
|
2020-11-19 20:23:24 +01:00
|
|
|
plugins: ['html', 'es']
|
2020-02-14 00:41:49 +01:00
|
|
|
|
|
|
|
rules:
|
2020-11-19 20:23:24 +01:00
|
|
|
class-methods-use-this: "off"
|
|
|
|
complexity: ["warn", 10]
|
|
|
|
max-statements: ["warn", 30]
|
|
|
|
no-empty-function: "off"
|
|
|
|
no-use-before-define: ["error", { "functions": false }]
|
|
|
|
# disable everything, except Rest/Spread Properties in ES2018
|
|
|
|
es/no-async-iteration: "error"
|
|
|
|
es/no-malformed-template-literals: "error"
|
|
|
|
es/no-regexp-lookbehind-assertions: "error"
|
|
|
|
es/no-regexp-named-capture-groups: "error"
|
|
|
|
es/no-regexp-s-flag: "error"
|
|
|
|
es/no-regexp-unicode-property-escapes: "error"
|