File tree Expand file tree Collapse file tree 3 files changed +25
-0
lines changed Expand file tree Collapse file tree 3 files changed +25
-0
lines changed Original file line number Diff line number Diff line change
1
+ {
2
+ "env" : {
3
+ "browser" : true ,
4
+ "commonjs" : true ,
5
+ "es2021" : true
6
+ },
7
+ "parserOptions" : {
8
+ "ecmaVersion" : 12 ,
9
+ "sourceType" : " module"
10
+ },
11
+ "rules" : {
12
+ "arrow-parens" : [" error" , " always" ],
13
+ "arrow-spacing" : [" error" ],
14
+ "no-const-assign" : [" error" ],
15
+ "prefer-const" : [" error" ],
16
+ "spaced-comment" : [" error" , " always" ],
17
+ "semi" : [" error" , " always" ]
18
+ }
19
+ }
Original file line number Diff line number Diff line change 31
31
npm install
32
32
npm run lerna-bootstrap
33
33
34
+ - name : Lint snippets
35
+ run : npm run lint
36
+
34
37
- name : Compile snippets
35
38
run : npm run lerna-compile
36
39
Original file line number Diff line number Diff line change 3
3
"version" : " 1.0.0" ,
4
4
"scripts" : {
5
5
"snippets" : " npx ts-node scripts/separate-snippets.ts" ,
6
+ "lint" : " git ls-files | grep -v 'snippets/' | grep '.js$' | xargs npx eslint" ,
7
+ "format" : " npm run lint -- --fix" ,
6
8
"lerna-bootstrap" : " lerna bootstrap --no-ci" ,
7
9
"lerna-compile" : " lerna run compile"
8
10
},
9
11
"license" : " Apache-2.0" ,
10
12
"devDependencies" : {
13
+ "eslint" : " ^7.16.0" ,
11
14
"lerna" : " ^3.22.1" ,
12
15
"ts-node" : " ^9.0.0" ,
13
16
"typescript" : " ^3.8.3"
You can’t perform that action at this time.
0 commit comments