Skip to content

Commit aee4f74

Browse files
committed
update to v3.7.1
1 parent 4d6efcd commit aee4f74

File tree

18 files changed

+33437
-36967
lines changed

18 files changed

+33437
-36967
lines changed

.eslintignore

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
**/*.js
2+
extra
3+
node_modules/**

.eslintrc.js

Lines changed: 41 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,41 @@
1+
module.exports = {
2+
root: true,
3+
parser: "@typescript-eslint/parser",
4+
parserOptions: {
5+
tsconfigRootDir: __dirname,
6+
project: ["./tsconfig.json"]
7+
},
8+
plugins: ["@typescript-eslint"],
9+
extends: [
10+
"eslint:recommended",
11+
"plugin:@typescript-eslint/recommended",
12+
"plugin:@typescript-eslint/recommended-requiring-type-checking",
13+
"prettier"
14+
],
15+
rules: {
16+
"@typescript-eslint/ban-types": [
17+
"error", {
18+
types: {
19+
"object": false
20+
},
21+
extendDefaults: true
22+
}
23+
],
24+
"@typescript-eslint/no-explicit-any": 0,
25+
"@typescript-eslint/no-non-null-assertion": 0,
26+
"@typescript-eslint/no-unsafe-assignment": 0,
27+
"@typescript-eslint/no-unsafe-call": 0,
28+
"@typescript-eslint/no-unsafe-member-access": 0,
29+
"@typescript-eslint/no-unsafe-return": 0,
30+
"@typescript-eslint/no-unused-vars": [
31+
"error", {
32+
"argsIgnorePattern": "^_"
33+
}
34+
],
35+
"@typescript-eslint/no-misused-promises": [
36+
"error", {
37+
"checksVoidReturn": false
38+
}
39+
]
40+
}
41+
};

README.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,3 +5,10 @@ This package provides [Chart.js](https://www.chartjs.org/) for WoltLab Suite Cor
55

66
## License
77
Chart.js is available under the [MIT license](https://opensource.org/licenses/MIT).
8+
9+
## Usage
10+
Loading the library can be done by including the template:
11+
`{include file='chartJsJavaScript'}`
12+
13+
Or implement it hard-coded by using the JS-Function-Plugin:
14+
`{js application='wcf' lib='chartjs' file='chart'}`

acptemplates/chartJsJavaScript.tpl

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
{if !$__chartJsLoaded|isset}
2+
{js application='wcf' lib='chartjs' file='chart'}
3+
{assign var=__chartJsLoaded value=true}
4+
{/if}

0 commit comments

Comments
 (0)