File tree Expand file tree Collapse file tree 1 file changed +32
-15
lines changed Expand file tree Collapse file tree 1 file changed +32
-15
lines changed Original file line number Diff line number Diff line change 11import bpmnIoPlugin from 'eslint-plugin-bpmn-io' ;
22
3+ const files = {
4+ build : [
5+ '*.js' ,
6+ '*.mjs' ,
7+ 'test/distro/karma.conf.js'
8+ ] ,
9+ test : [
10+ 'test/**/*.js'
11+ ] ,
12+ ignored : [
13+ 'dist'
14+ ]
15+ } ;
16+
317export default [
418 {
5- ignores : [
6- 'dist'
7- ]
19+ ignores : files . ignored
820 } ,
9- ...bpmnIoPlugin . configs . browser ,
21+
22+ // build
1023 ...bpmnIoPlugin . configs . node . map ( config => {
1124 return {
1225 ...config ,
13- files : [
14- 'karma.conf.js' ,
15- '**/test/**/*.js'
16- ]
26+ files : files . build
27+ } ;
28+ } ) ,
29+
30+ // lib + test
31+ ...bpmnIoPlugin . configs . browser . map ( config => {
32+ return {
33+ ...config ,
34+ ignores : files . build
1735 } ;
1836 } ) ,
37+
38+ // test
1939 ...bpmnIoPlugin . configs . mocha . map ( config => {
2040 return {
2141 ...config ,
22- files : [
23- '**/test/**/*.js'
24- ]
42+ files : files . test
2543 } ;
2644 } ) ,
2745 {
2846 languageOptions : {
2947 globals : {
30- sinon : true
48+ sinon : true ,
49+ require : true
3150 } ,
3251 } ,
33- files : [
34- '**/test/**/*.js'
35- ]
52+ files : files . test
3653 }
3754] ;
You can’t perform that action at this time.
0 commit comments