Skip to content

Commit

Permalink
refactor: Regularize lint scripts (merge #3349)
Browse files Browse the repository at this point in the history
  • Loading branch information
kriskowal authored Jun 17, 2021
2 parents eba3074 + c92df5f commit e02286c
Show file tree
Hide file tree
Showing 22 changed files with 44 additions and 24 deletions.
3 changes: 2 additions & 1 deletion packages/access-token/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,9 @@
"build": "exit 0",
"test": "ava",
"test:xs": "exit 0",
"lint-check": "yarn lint",
"lint-fix": "eslint --fix '**/*.js'",
"lint-check": "eslint '**/*.js'"
"lint": "eslint '**/*.js'"
},
"dependencies": {
"@agoric/assert": "^0.3.1",
Expand Down
5 changes: 3 additions & 2 deletions packages/agoric-cli/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,9 @@
"test": "ava",
"test:xs": "exit 0",
"integration-test": "ava --config .ava-integration-test.config.js",
"lint-check": "eslint '**/*.{js,jsx}'",
"lint-fix": "eslint --fix '**/*.{js,jsx}'"
"lint-check": "yarn lint",
"lint-fix": "eslint --fix '**/*.{js,jsx}'",
"lint": "eslint '**/*.{js,jsx}'"
},
"devDependencies": {
"@agoric/swingset-vat": "^0.18.0",
Expand Down
5 changes: 3 additions & 2 deletions packages/bundle-source/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,10 @@
"test": "ava",
"test:xs": "exit 0",
"lint-fix": "eslint --fix '**/*.js'",
"lint-check": "eslint '**/*.js'",
"lint-check": "yarn lint",
"lint-fix-jessie": "eslint -c '.eslintrc-jessie.js' --fix '**/*.js'",
"lint-check-jessie": "eslint -c '.eslintrc-jessie.js' '**/*.js'"
"lint-check-jessie": "eslint -c '.eslintrc-jessie.js' '**/*.js'",
"lint": "eslint '**/*.js'"
},
"devDependencies": {
"@agoric/install-ses": "^0.5.15",
Expand Down
3 changes: 2 additions & 1 deletion packages/captp/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -30,8 +30,9 @@
"build": "exit 0",
"test": "ava",
"test:xs": "exit 0",
"lint-check": "yarn lint",
"lint-fix": "eslint --fix '**/*.js'",
"lint-check": "eslint 'lib/*.js'"
"lint": "eslint 'lib/*.js'"
},
"devDependencies": {
"@agoric/install-ses": "^0.5.15",
Expand Down
1 change: 1 addition & 0 deletions packages/dapp-svelte-wallet/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@
"scripts": {
"lint-fix": "exit 0",
"lint-check": "exit 0",
"lint": "exit 0",
"test": "exit 0",
"test:xs": "exit 0",
"build": "exit 0"
Expand Down
4 changes: 2 additions & 2 deletions packages/deploy-script-support/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,9 +17,9 @@
"pretty-check": "prettier --check '**/*.js'",
"lint-fix": "yarn lint:eslint --fix && yarn lint:types",
"lint-check": "yarn lint",
"lint": "yarn lint:types && yarn lint:eslint",
"lint:eslint": "eslint '**/*.js'",
"lint:types": "tsc -p jsconfig.json"
"lint:types": "tsc -p jsconfig.json",
"lint": "yarn lint:types && yarn lint:eslint"
},
"repository": {
"type": "git",
Expand Down
3 changes: 2 additions & 1 deletion packages/deployment/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,9 @@
"test": "exit 0",
"test:xs": "exit 0",
"build": "exit 0",
"lint-check": "yarn lint",
"lint-fix": "eslint --fix '**/*.js'",
"lint-check": "eslint '**/*.js'"
"lint": "eslint '**/*.js'"
},
"repository": "https://github.com/Agoric/agoric-sdk",
"author": "Agoric",
Expand Down
3 changes: 2 additions & 1 deletion packages/eslint-config/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,9 @@
"test:nyc": "exit 0",
"test:xs": "exit 0",
"build": "exit 0",
"lint-check": "exit 0",
"lint-fix": "exit 0",
"lint-check": "exit 0"
"lint": "exit 0"
},
"files": [
"eslint-config.json"
Expand Down
3 changes: 2 additions & 1 deletion packages/eslint-plugin/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,8 @@
"test:xs": "exit 0",
"build": "exit 0",
"lint-fix": "exit 0",
"lint-check": "exit 0"
"lint-check": "exit 0",
"lint": "exit 0"
},
"dependencies": {
"requireindex": "~1.1.0"
Expand Down
3 changes: 2 additions & 1 deletion packages/eventual-send/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,9 @@
"test": "ava",
"test:xs": "exit 0",
"build": "exit 0",
"lint-check": "yarn lint",
"lint-fix": "eslint --fix '**/*.js'",
"lint-check": "eslint '**/*.js'"
"lint": "eslint '**/*.js'"
},
"repository": {
"type": "git",
Expand Down
3 changes: 2 additions & 1 deletion packages/import-bundle/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,9 @@
"test": "ava",
"test:xs": "exit 0",
"build": "exit 0",
"lint-check": "yarn lint",
"lint-fix": "eslint --fix '**/*.js'",
"lint-check": "eslint '**/*.js'"
"lint": "eslint '**/*.js'"
},
"dependencies": {
"@agoric/assert": "^0.3.1",
Expand Down
3 changes: 2 additions & 1 deletion packages/import-manager/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,8 @@
"test": "ava",
"test:xs": "exit 0",
"lint-fix": "eslint --fix '**/*.js'",
"lint-check": "eslint '**/*.js'"
"lint-check": "yarn lint",
"lint": "eslint '**/*.js'"
},
"repository": {
"type": "git",
Expand Down
3 changes: 2 additions & 1 deletion packages/install-metering-and-ses/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,9 @@
"build": "exit 0",
"test": "ava",
"test:xs": "exit 0",
"lint-check": "yarn lint",
"lint-fix": "eslint --fix '**/*.js'",
"lint-check": "eslint '**/*.js'"
"lint": "eslint '**/*.js'"
},
"devDependencies": {
"@agoric/transform-metering": "^1.4.14",
Expand Down
3 changes: 2 additions & 1 deletion packages/install-ses/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,9 @@
"build": "exit 0",
"test": "ava",
"test:xs": "exit 0",
"lint-check": "yarn lint",
"lint-fix": "eslint --fix '**/*.js'",
"lint-check": "eslint '**/*.js'"
"lint": "eslint '**/*.js'"
},
"devDependencies": {
"ava": "^3.12.1",
Expand Down
3 changes: 2 additions & 1 deletion packages/same-structure/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,9 @@
"build": "exit 0",
"test": "exit 0",
"test:xs": "exit 0",
"lint-check": "yarn lint",
"lint-fix": "eslint --fix '**/*.js'",
"lint-check": "eslint '**/*.js'"
"lint": "eslint '**/*.js'"
},
"repository": {
"type": "git",
Expand Down
3 changes: 2 additions & 1 deletion packages/sharing-service/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,9 @@
"build": "exit 0",
"test": "ava",
"test:xs": "exit 0",
"lint-check": "yarn lint",
"lint-fix": "eslint --fix '**/*.js'",
"lint-check": "eslint '**/*.js'"
"lint": "eslint '**/*.js'"
},
"repository": {
"type": "git",
Expand Down
3 changes: 2 additions & 1 deletion packages/sparse-ints/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,9 @@
"build": "exit 0",
"test": "exit 0",
"test:xs": "exit 0",
"lint-check": "yarn lint",
"lint-fix": "eslint --fix '**/*.js'",
"lint-check": "eslint '**/*.js'"
"lint": "eslint '**/*.js'"
},
"repository": {
"type": "git",
Expand Down
3 changes: 2 additions & 1 deletion packages/spawner/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,9 @@
"build-bundle-spawn": "node -r esm scripts/build-bundle-spawn.js",
"test": "ava",
"test:xs": "exit 0",
"lint-check": "yarn lint",
"lint-fix": "eslint --fix '**/*.js'",
"lint-check": "eslint '**/*.js'"
"lint": "eslint '**/*.js'"
},
"repository": {
"type": "git",
Expand Down
3 changes: 2 additions & 1 deletion packages/stat-logger/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,9 @@
"build": "exit 0",
"test": "exit 0",
"test:xs": "exit 0",
"lint-check": "yarn lint",
"lint-fix": "eslint --fix '**/*.js'",
"lint-check": "eslint '**/*.js'"
"lint": "eslint '**/*.js'"
},
"dependencies": {
"canvas": "^2.6.1",
Expand Down
3 changes: 2 additions & 1 deletion packages/tame-metering/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,9 @@
"scripts": {
"test": "ava",
"test:xs": "exit 0",
"lint-check": "yarn lint",
"lint-fix": "eslint --fix '**/*.{js,jsx}'",
"lint-check": "eslint '**/*.{js,jsx}'",
"lint": "eslint '**/*.{js,jsx}'",
"build": "exit 0"
},
"devDependencies": {
Expand Down
3 changes: 2 additions & 1 deletion packages/transform-metering/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,9 @@
"scripts": {
"test": "ava",
"test:xs": "exit 0",
"lint-check": "yarn lint",
"lint-fix": "eslint --fix '**/*.{js,jsx}'",
"lint-check": "eslint '**/*.{js,jsx}'",
"lint": "eslint '**/*.{js,jsx}'",
"build": "exit 0"
},
"devDependencies": {
Expand Down
2 changes: 1 addition & 1 deletion packages/ui-components/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,8 @@
"build:src": "rm -rf dist && BABEL_ENV='test' ./node_modules/.bin/babel src --out-dir dist",
"build": "yarn build:src && yarn build:tests",
"lint-fix": "yarn lint --fix",
"lint": "yarn lint:types && yarn lint:eslint",
"lint-check": "yarn lint",
"lint": "yarn lint:types && yarn lint:eslint",
"lint:eslint": "eslint '**/*.js'",
"lint:types": "tsc -p jsconfig.json"
},
Expand Down

0 comments on commit e02286c

Please sign in to comment.