Skip to content

Commit 3c1a1ce

Browse files
authored
Remove gulp, update deps, use chartjs-test-utils (#421)
1 parent 82b644b commit 3c1a1ce

File tree

10 files changed

+1386
-5690
lines changed

10 files changed

+1386
-5690
lines changed

.eslintrc.yml

Lines changed: 26 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,32 @@
1-
extends: chartjs
21

3-
parserOptions:
4-
sourceType: module
2+
extends:
3+
- chartjs
4+
- plugin:es/no-new-in-es2019
55

66
env:
7+
es6: true
78
browser: true
89
node: true
910

10-
plugins: ['html']
11+
parserOptions:
12+
ecmaVersion: 2018
13+
sourceType: module
14+
ecmaFeatures:
15+
impliedStrict: true
16+
modules: true
17+
18+
plugins: ['html', 'es']
19+
20+
rules:
21+
class-methods-use-this: "off"
22+
complexity: ["warn", 10]
23+
max-statements: ["warn", 30]
24+
no-empty-function: "off"
25+
no-use-before-define: ["error", { "functions": false }]
26+
# disable everything, except Rest/Spread Properties in ES2018
27+
es/no-async-iteration: "error"
28+
es/no-malformed-template-literals: "error"
29+
es/no-regexp-lookbehind-assertions: "error"
30+
es/no-regexp-named-capture-groups: "error"
31+
es/no-regexp-s-flag: "error"
32+
es/no-regexp-unicode-property-escapes: "error"

gulpfile.js

Lines changed: 0 additions & 134 deletions
This file was deleted.

karma.conf.js

Lines changed: 9 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -44,16 +44,17 @@ module.exports = function(karma) {
4444
},
4545

4646
files: [
47-
// {pattern: 'test/fixtures/**/*.js', included: false},
48-
// {pattern: 'test/fixtures/**/*.json', included: false},
49-
// {pattern: 'test/fixtures/**/*.png', included: false},
50-
'node_modules/chart.js/dist/chart.js',
51-
'test/index.js',
52-
'src/index.js'
53-
].concat(args.inputs),
47+
// {pattern: 'test/fixtures/**/*.js', included: false},
48+
// {pattern: 'test/fixtures/**/*.json', included: false},
49+
// {pattern: 'test/fixtures/**/*.png', included: false},
50+
{pattern: 'node_modules/chart.js/dist/chart.js'},
51+
{pattern: 'test/index.js'},
52+
{pattern: 'src/index.js'},
53+
{pattern: 'test/specs/**/*.js'}
54+
],
5455

5556
preprocessors: {
56-
// 'test/fixtures/**/*.js': ['fixtures'],
57+
// 'test/fixtures/**/*.js': ['fixtures'],
5758
'test/specs/**/*.js': ['rollup'],
5859
'test/index.js': ['rollup'],
5960
'src/index.js': ['sources']

0 commit comments

Comments
 (0)