File tree Expand file tree Collapse file tree 4 files changed +8
-2
lines changed
Expand file tree Collapse file tree 4 files changed +8
-2
lines changed Original file line number Diff line number Diff line change 1+ npm run posttest -- --max-warnings=0
Original file line number Diff line number Diff line change 11.DS_Store
2+ .eslintcache
23.vscode /
34.web-extension-id
45** .less
Original file line number Diff line number Diff line change 1313- ** ` npm test --ignore-scripts ` ** : Runs only the addon linter. Only reports syntax and WebExtension API errors.
1414- ** ` npm run autofix ` ** : Automatically fixes any style errors.
1515- ** ` npm run build ` ** : Creates an unsigned ZIP of the addon.
16+ - ** ` npm run enable-hooks ` ** : Enables a git hook that lints staged files locally before they are committed.
17+ - ** ` npm run disable-hooks ` ** : Disables git hooks.
1618
1719### Web-only development
1820
Original file line number Diff line number Diff line change 44 "type" : " module" ,
55 "scripts" : {
66 "test" : " web-ext lint" ,
7- "posttest" : " eslint src/" ,
7+ "posttest" : " eslint src/ --cache " ,
88 "autofix" : " eslint src/ --fix" ,
99 "start" : " web-ext run" ,
10- "build" : " web-ext build"
10+ "build" : " web-ext build" ,
11+ "enable-hooks" : " git config core.hooksPath .git-hooks" ,
12+ "disable-hooks" : " git config --unset core.hooksPath"
1113 },
1214 "devDependencies" : {
1315 "chrome-webstore-upload-cli" : " ^3.5.0" ,
You can’t perform that action at this time.
0 commit comments