File tree Expand file tree Collapse file tree 2 files changed +33
-0
lines changed Expand file tree Collapse file tree 2 files changed +33
-0
lines changed Original file line number Diff line number Diff line change @@ -50,6 +50,29 @@ $ meteor npm run setup # create link to packages
50
50
51
51
This has to be done only once.
52
52
53
+ #### Run the linter
54
+
55
+ We use eslint with the [ quave config] ( https://github.com/quavedev/eslint-config ) , which is also used
56
+ by the Meteor core project.
57
+
58
+ Due to the fact, that this repo consists of multiple packages, you should run the linter for single packages
59
+ like so:
60
+
61
+ ``` bash
62
+ $ cd test-app
63
+ $ meteor npm run lint:check -- ./packages/templating-compiler
64
+ ```
65
+
66
+ If you need to lint other packages, use ` .packages/<nameOfPackage> ` or use ` ./packages/ ` to lint all packages.
67
+ Beware, however, that this might take a while to lint all packages.
68
+
69
+ The same goes for autofixing common lint errors:
70
+
71
+ ``` bash
72
+ $ cd test-app
73
+ $ meteor npm run lint:check -- ./packages/templating-compiler
74
+ ```
75
+
53
76
#### Run the tests
54
77
55
78
Simply execute the test script:
Original file line number Diff line number Diff line change 8
8
"scripts" : {
9
9
"start" : " meteor run" ,
10
10
"setup" : " ln -sfn ../packages ./packages" ,
11
+ "lint:check" : " npx eslint" ,
12
+ "lint:fix" : " npm run eslint --fix" ,
11
13
"test:watch" : " meteor test-packages --raw-logs ./packages/*" ,
12
14
"test:ci" : " ci.sh"
13
15
},
17
19
"jquery" : " ^3.6.0" ,
18
20
"meteor-node-stubs" : " ^1.2.1" ,
19
21
"puppeteer" : " ^10.4.0"
22
+ },
23
+ "devDependencies" : {
24
+ "@quave/eslint-config-quave" : " ^1.0.7"
25
+ },
26
+ "eslintConfig" : {
27
+ "extends" : [
28
+ " @quave/quave"
29
+ ]
20
30
}
21
31
}
You can’t perform that action at this time.
0 commit comments