Skip to content

Commit

Permalink
build: Eslint - rely on workspace dependencies
Browse files Browse the repository at this point in the history
  • Loading branch information
vio committed Aug 23, 2023
1 parent 99ab379 commit 394408f
Show file tree
Hide file tree
Showing 11 changed files with 11 additions and 10 deletions.
2 changes: 1 addition & 1 deletion packages/cli-utils/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
"build": "npm run build-lib && npm run build-esm",
"build-lib": "rm -fr ./lib && ../../node_modules/.bin/tsc --rootDir ./src --project tsconfig.lib.json --outDir ./lib",
"build-esm": "rm -fr ./lib-esm && rm -fr ./types && ../../node_modules/.bin/tsc --rootDir ./src --project tsconfig.esm.json --outDir ./lib-esm",
"lint": "../../node_modules/.bin/eslint . --ext .js",
"lint": "eslint",
"test": "jest --passWithNoTests src "
},
"keywords": [],
Expand Down
2 changes: 1 addition & 1 deletion packages/cli/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
"copy-fixtures": "rm -fr __fixtures__ && mkdir __fixtures__ && cp ../../fixtures/webpack-stats.*.json __fixtures__/",
"prebuild": "npm run copy-fixtures",
"build": "rm -fr ./lib && ../../node_modules/.bin/tsc --rootDir ./src --project tsconfig.lib.json --outDir ./lib",
"lint": "../../node_modules/.bin/eslint . --ext .js",
"lint": "eslint",
"serve-demo": "./bin/index.js --demo && http-server dist",
"test": "echo \"No tests\" && exit 0",
"pretest:package": "cd test/package && npm install --force",
Expand Down
2 changes: 1 addition & 1 deletion packages/gatsby-plugin/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
"node": ">= 14.0"
},
"scripts": {
"lint": "../../node_modules/.bin/eslint . --ext .js"
"lint": "eslint"
},
"keywords": [
"webpack",
Expand Down
1 change: 1 addition & 0 deletions packages/html-templates/.eslintrc.js
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@ module.exports = {
'**/jest/*.js',
'**/build/**/*.js',
'**/settings.js',
'**/postcss.cofig.js',
'**/webpack.config.*.js',
],
},
Expand Down
2 changes: 1 addition & 1 deletion packages/html-templates/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
"scripts": {
"prebuild": "rimraf ./dist",
"build": "cross-env NODE_ENV=production webpack --config webpack.config.production.js --mode production",
"lint": "../../node_modules/.bin/eslint . --ext .js,.jsx",
"lint": "eslint",
"start": "cross-env NODE_ENV=development storybook dev -c ./build/storybook -p 8090",
"test": "echo \"No tests\" && exit 0"
},
Expand Down
2 changes: 1 addition & 1 deletion packages/next-plugin/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
"node": ">= 14.0"
},
"scripts": {
"lint": "../../node_modules/.bin/eslint . --ext .js"
"lint": "eslint"
},
"keywords": [
"webpack",
Expand Down
2 changes: 1 addition & 1 deletion packages/plugin-webpack-filter/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
"build": "npm run build-lib && npm run build-esm",
"build-lib": "rm -fr ./lib && ../../node_modules/.bin/tsc --rootDir ./src --project tsconfig.lib.json --outDir ./lib",
"build-esm": "rm -fr ./lib-esm && rm -fr ./types && ../../node_modules/.bin/tsc --rootDir ./src --project tsconfig.esm.json --outDir ./lib-esm",
"lint": "../../node_modules/.bin/eslint . --ext .js,.ts --resolve-plugins-relative-to ../../",
"lint": "eslint",
"test": "TZ=UTC jest src --maxWorkers=4"
},
"keywords": [],
Expand Down
2 changes: 1 addition & 1 deletion packages/plugin-webpack-validate/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
"build": "npm run build-lib && npm run build-esm",
"build-lib": "rm -fr ./lib && ../../node_modules/.bin/tsc --rootDir ./src --project tsconfig.lib.json --outDir ./lib",
"build-esm": "rm -fr ./lib-esm && rm -fr ./types && ../../node_modules/.bin/tsc --rootDir ./src --project tsconfig.esm.json --outDir ./lib-esm",
"lint": "../../node_modules/.bin/eslint . --ext .js,.ts --resolve-plugins-relative-to ../../",
"lint": "eslint",
"test": "TZ=UTC jest src --maxWorkers=4"
},
"keywords": [],
Expand Down
2 changes: 1 addition & 1 deletion packages/ui/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
"build-storybook": "storybook build -c ./build/storybook",
"generate-chart-colors": "node scripts/generate-chart-colors.js",
"generate-svg-sprite": "npx svg-sprite -s --si --no-svg-namespace-classnames src/assets/icons/*.svg && mv symbol/svg/sprite.symbol.svg src/assets/icons.svg",
"lint": "../../node_modules/.bin/eslint . --resolve-plugins-relative-to ../../",
"lint": "eslint",
"start": "cross-env NODE_ENV=development storybook dev -c ./build/storybook -p 8080",
"test": "jest src --passWithNoTests"
},
Expand Down
2 changes: 1 addition & 1 deletion packages/utils/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
"build": "npm run build-lib && npm run build-esm",
"build-lib": "npx rimraf ./lib && ../../node_modules/.bin/tsc --rootDir ./src --project tsconfig.lib.json --outDir ./lib",
"build-esm": "npx rimraf ./lib-esm ./types && ../../node_modules/.bin/tsc --rootDir ./src --project tsconfig.esm.json --outDir ./lib-esm",
"lint": "../../node_modules/.bin/eslint . --ext .js,.ts --resolve-plugins-relative-to ../../",
"lint": "eslint",
"test": "TZ=UTC jest src --maxWorkers=4"
},
"keywords": [],
Expand Down
2 changes: 1 addition & 1 deletion packages/webpack-plugin/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
},
"scripts": {
"build": "babel src -d lib",
"lint": "../../node_modules/.bin/eslint . --ext .js",
"lint": "eslint",
"test": "TZ=UTC jest src ",
"pretest:package": "cd test/package && npm install --force",
"test:package": "cd test/package && npm test --"
Expand Down

0 comments on commit 394408f

Please sign in to comment.