Skip to content
This repository was archived by the owner on Jan 6, 2023. It is now read-only.

Commit 8ad3830

Browse files
pdehaanvladikoff
authored andcommitted
Add 'web-ext lint' support (#120)
1 parent f0bcdae commit 8ad3830

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

package.json

+5-2
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@
1313
"devDependencies": {
1414
"cross-spawn": "^5.1.0",
1515
"eslint": "^4.0.0",
16+
"npm-run-all": "^4.0.2",
1617
"pontoon-to-webext": "^1.0.2",
1718
"prettier": "^1.4.4",
1819
"rimraf": "^2.6.1",
@@ -25,8 +26,10 @@
2526
"build": "node scripts/build-locales && web-ext build -s src && unzip -l web-ext-artifacts/*.zip",
2627
"clean": "rimraf web-ext-artifacts 'src/sidebar/vendor/!(.gitkeep)' && npm run postinstall",
2728
"format": "prettier 'src/**/!(vendor)/*.{css,js}' --single-quote --write",
28-
"lint": "eslint src",
29-
"postformat": "npm run lint -- --fix",
29+
"lint": "npm-run-all lint:*",
30+
"lint:js": "eslint src",
31+
"lint:webext": "web-ext lint -s src --ignore-files='sidebar/vendor/*.js' --self-hosted",
32+
"postformat": "npm run lint:js -- --fix",
3033
"postinstall": "scripts/postinstall.sh",
3134
"prebuild": "npm run clean",
3235
"start": "web-ext run -s src",

0 commit comments

Comments
 (0)