From 148a5eb84e12bf1436d1c332efb25bb125610b01 Mon Sep 17 00:00:00 2001 From: evilebottnawi Date: Fri, 26 Apr 2019 17:49:07 +0300 Subject: [PATCH] feat: eslint now respect `.gitignore` --- .eslintignore | 4 ---- package.json | 5 +---- src/tasks/package.js | 2 +- 3 files changed, 2 insertions(+), 9 deletions(-) delete mode 100644 .eslintignore diff --git a/.eslintignore b/.eslintignore deleted file mode 100644 index bfb3d7b..0000000 --- a/.eslintignore +++ /dev/null @@ -1,4 +0,0 @@ -/node_modules -/dist -/templates/test/* -/templates/src/* diff --git a/package.json b/package.json index bed0ba4..4225619 100644 --- a/package.json +++ b/package.json @@ -10,9 +10,6 @@ }, "homepage": "https://github.com/webpack-contrib/webpack-defaults", "bugs": "https://github.com/webpack-contrib/webpack-defaults/issues", - "bin": { - "webpack-defaults": "bin/index.js" - }, "main": "dist/cjs.js", "engines": { "node": ">= 6.9.0" @@ -23,7 +20,7 @@ "build": "cross-env NODE_ENV=production babel src -d dist --ignore 'src/**/*.test.js' --copy-files", "clean": "del-cli dist", "commitlint": "commitlint --from=master", - "lint": "eslint --cache src test", + "lint": "eslint --cache src test --ignore-path .gitignore", "prepare": "npm run build", "release": "standard-version", "security": "npm audit", diff --git a/src/tasks/package.js b/src/tasks/package.js index 523a265..83305c9 100644 --- a/src/tasks/package.js +++ b/src/tasks/package.js @@ -74,7 +74,7 @@ module.exports = () => { "cross-env NODE_ENV=production babel src -d dist --ignore 'src/**/*.test.js' --copy-files", clean: 'del-cli dist', commitlint: 'commitlint --from=master', - lint: 'eslint --cache src test', + lint: 'eslint --cache src test --ignore-path .gitignore', prepare: 'npm run build', release: 'standard-version', security: 'npm audit',