File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 66 "node" : true
77 },
88 "extends" : [" eslint:recommended" , " plugin:prettier/recommended" ],
9- "parserOptions" : {
10- "ecmaFeatures" : {
11- "jsx" : true
12- },
13- "sourceType" : " module"
14- },
9+ "plugins" : [" prettier" ],
1510 "rules" : {
16- "no-unreachable" : " warn" ,
17- "no-unused-vars" : " warn" ,
18- "semi" : " warn" ,
19- "valid-typeof" : " warn"
11+ "prettier/prettier" : " error"
2012 }
2113}
Original file line number Diff line number Diff line change 1+ name : Install, lint and package
2+ on :
3+ # Triggers the workflow on push or pull-request events for the master and Dev branches
4+ push :
5+ branches : [master, Dev]
6+ pull_request :
7+ branches : [master, Dev]
8+
9+ jobs :
10+ install-lint-package :
11+ runs-on : ubuntu-latest
12+ steps :
13+ - name : Checkout Git repository
14+ uses : actions/checkout@v3
15+
16+ - name : Install node
17+ uses : actions/setup-node@v3
18+ with :
19+ node-version : 14
20+
21+ - name : Install dependencies
22+ run : npm ci
23+
24+ - name : Lint codebase
25+ run : npm run lint
26+
27+ - name : Create package
28+ run : npm run package
Original file line number Diff line number Diff line change 11// Place your settings in this file to overwrite default and user settings.
22{
3+ "[javascript]" : {
4+ "editor.defaultFormatter" : " esbenp.prettier-vscode" ,
5+ "editor.codeActionsOnSave" : {
6+ "source.fixAll.eslint" : true
7+ },
8+ "editor.formatOnSave" : true
9+ },
310 "terminal.integrated.shell.windows" : " C:\\ Windows\\ System32\\ cmd.exe"
411}
You can’t perform that action at this time.
0 commit comments