-
Notifications
You must be signed in to change notification settings - Fork 199
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Upgrade to chartjs v4 and fix bugs (#170)
* Upgrade to chartjs v4 and fix bugs * Use node LTS * Fix tests * Fix coverage * Add Firefox tests * Reduce complexity * Replace var * Fixed html indentation as per PR comments * Update docs/index.html Co-authored-by: Ben McCann <[email protected]> * Fixed doc comments indentation * Fixed html indentation as per PR comments * Added info on README --------- Co-authored-by: Ben McCann <[email protected]>
- Loading branch information
Showing
25 changed files
with
5,019 additions
and
3,610 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,35 +1,61 @@ | ||
extends: | ||
- chartjs | ||
- plugin:es/no-new-in-es2019 | ||
- plugin:es/restrict-to-es2018 | ||
- plugin:markdown/recommended | ||
|
||
settings: | ||
es: | ||
aggressive: true | ||
|
||
env: | ||
es6: true | ||
browser: true | ||
jasmine: true | ||
node: true | ||
|
||
parserOptions: | ||
ecmaVersion: 2018 | ||
ecmaVersion: 2022 | ||
sourceType: module | ||
ecmaFeatures: | ||
impliedStrict: true | ||
modules: true | ||
experimentalObjectRestSpread: true | ||
|
||
plugins: ['html', 'es'] | ||
|
||
|
||
rules: | ||
class-methods-use-this: "off" | ||
complexity: ["warn", 10] | ||
indent: ["error", "tab"] | ||
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" | ||
es/no-dynamic-import: "off" | ||
|
||
overrides: | ||
- files: ['**/*.ts'] | ||
parser: '@typescript-eslint/parser' | ||
plugins: | ||
- '@typescript-eslint' | ||
extends: | ||
- chartjs | ||
- plugin:@typescript-eslint/recommended | ||
|
||
rules: | ||
complexity: ["warn", 10] | ||
max-statements: ["warn", 30] | ||
# Replace stock eslint rules with typescript-eslint equivalents for proper | ||
# TypeScript support. | ||
indent: "off" | ||
"@typescript-eslint/indent": ["error", 2] | ||
no-use-before-define: "off" | ||
'@typescript-eslint/no-use-before-define': "error" | ||
no-shadow: "off" | ||
'@typescript-eslint/no-shadow': "error" | ||
space-before-function-paren: "off" | ||
'@typescript-eslint/space-before-function-paren': [2, never] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.