diff --git a/packages/cli-utils/package.json b/packages/cli-utils/package.json index f72c141272..7ae9856ee8 100644 --- a/packages/cli-utils/package.json +++ b/packages/cli-utils/package.json @@ -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": [], diff --git a/packages/cli/package.json b/packages/cli/package.json index 24dde23643..8508834076 100644 --- a/packages/cli/package.json +++ b/packages/cli/package.json @@ -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", diff --git a/packages/gatsby-plugin/package.json b/packages/gatsby-plugin/package.json index 878589d781..479a9320eb 100644 --- a/packages/gatsby-plugin/package.json +++ b/packages/gatsby-plugin/package.json @@ -7,7 +7,7 @@ "node": ">= 14.0" }, "scripts": { - "lint": "../../node_modules/.bin/eslint . --ext .js" + "lint": "eslint" }, "keywords": [ "webpack", diff --git a/packages/html-templates/.eslintrc.js b/packages/html-templates/.eslintrc.js index 93973320e4..bb36d9f888 100644 --- a/packages/html-templates/.eslintrc.js +++ b/packages/html-templates/.eslintrc.js @@ -27,6 +27,7 @@ module.exports = { '**/jest/*.js', '**/build/**/*.js', '**/settings.js', + '**/postcss.cofig.js', '**/webpack.config.*.js', ], }, diff --git a/packages/html-templates/package.json b/packages/html-templates/package.json index d642951838..09ad18ad5e 100644 --- a/packages/html-templates/package.json +++ b/packages/html-templates/package.json @@ -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" }, diff --git a/packages/next-plugin/package.json b/packages/next-plugin/package.json index 94ced86f90..ca8dc631b1 100644 --- a/packages/next-plugin/package.json +++ b/packages/next-plugin/package.json @@ -7,7 +7,7 @@ "node": ">= 14.0" }, "scripts": { - "lint": "../../node_modules/.bin/eslint . --ext .js" + "lint": "eslint" }, "keywords": [ "webpack", diff --git a/packages/plugin-webpack-filter/package.json b/packages/plugin-webpack-filter/package.json index 4f9a6dc997..bee5999af2 100644 --- a/packages/plugin-webpack-filter/package.json +++ b/packages/plugin-webpack-filter/package.json @@ -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": [], diff --git a/packages/plugin-webpack-validate/package.json b/packages/plugin-webpack-validate/package.json index 7eeaadad24..38b5827ec6 100644 --- a/packages/plugin-webpack-validate/package.json +++ b/packages/plugin-webpack-validate/package.json @@ -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": [], diff --git a/packages/ui/package.json b/packages/ui/package.json index 8c7d79b6e3..171ef5ea54 100644 --- a/packages/ui/package.json +++ b/packages/ui/package.json @@ -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" }, diff --git a/packages/utils/package.json b/packages/utils/package.json index 145309b918..1b9a6dfaf8 100644 --- a/packages/utils/package.json +++ b/packages/utils/package.json @@ -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": [], diff --git a/packages/webpack-plugin/package.json b/packages/webpack-plugin/package.json index 280d8a355f..89e16e4fd4 100644 --- a/packages/webpack-plugin/package.json +++ b/packages/webpack-plugin/package.json @@ -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 --"