File tree Expand file tree Collapse file tree 2 files changed +10
-5
lines changed Expand file tree Collapse file tree 2 files changed +10
-5
lines changed Original file line number Diff line number Diff line change 16
16
uses : actions/setup-node@v3
17
17
with :
18
18
node-version : ${{ matrix.node-version }}
19
- - name : install requirements
19
+ - name : Install Requirements
20
20
run : yarn install
21
- - name : run linter
22
- run : yarn run eslint index.ts src/**/*.ts
23
- - name : Bulid
21
+ - name : Lint
22
+ run : yarn lint:check
23
+ - name : Check Formatting
24
+ run : yarn format:check
25
+ - name : Build
24
26
run : yarn build
Original file line number Diff line number Diff line change 23
23
"build-dev-copy" : " webpack --mode development && cat ./dist/behaviors.js | pbcopy" ,
24
24
"watch" : " webpack watch --mode production" ,
25
25
"watch-dev" : " webpack watch --mode development" ,
26
- "lint" : " eslint ./src/**/*.ts webpack.config.js"
26
+ "lint" : " eslint --fix index.ts ./src/**/*.ts webpack.config.js" ,
27
+ "lint:check" : " eslint index.ts ./src/**/*.ts webpack.config.js" ,
28
+ "format" : " prettier --write . webpack.config.js" ,
29
+ "format:check" : " prettier --check . webpack.config.js"
27
30
},
28
31
"description" : " Browsertrix Behaviors" ,
29
32
"files" : [
You can’t perform that action at this time.
0 commit comments