mirror of
https://github.com/chartjs/Chart.js.git
synced 2024-10-06 04:09:08 +02:00
ce375a6876
* feat: add ESM support * build: rename UMD bundle * chore: edit supbackages description * style: disable es/no-import-meta linter rule * test: dynamic import in cjs module * docs: edit integrations page * docs: review fixes * chore: remove useless regex in webpack config * ci: test size-limit only for ESM bundle
38 lines
834 B
YAML
38 lines
834 B
YAML
extends:
|
|
- chartjs
|
|
- plugin:es/restrict-to-es2018
|
|
- plugin:markdown/recommended
|
|
|
|
settings:
|
|
es:
|
|
aggressive: true
|
|
|
|
env:
|
|
es6: true
|
|
browser: true
|
|
node: true
|
|
|
|
parserOptions:
|
|
ecmaVersion: 2022
|
|
sourceType: module
|
|
ecmaFeatures:
|
|
impliedStrict: true
|
|
modules: true
|
|
|
|
plugins: ['html', 'es']
|
|
|
|
rules:
|
|
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-import-meta: "off"
|
|
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"
|