From ef5ec08420b61624fd24f91d19f162cd52d1b49a Mon Sep 17 00:00:00 2001 From: ybiquitous Date: Tue, 5 Dec 2017 13:50:40 +0900 Subject: [PATCH] fix(eslint): simplify `eslint` command options (#60) --- package.json | 4 ++-- test/init.test.js | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/package.json b/package.json index 21f74c39..105ea882 100644 --- a/package.json +++ b/package.json @@ -59,7 +59,7 @@ "test": "nyc mocha", "test:watch": "mocha --watch", "test:coverage": "nyc report --reporter=text-lcov > coverage.lcov && codecov", - "lint:js": "eslint --max-warnings=-1 --ignore-path=.gitignore --ext=.js --ext=.jsx .", + "lint:js": "eslint --ignore-path .gitignore --ext .js,.jsx .", "lint:js:fix": "npm run lint:js -- --fix", "lint:md": "markdownlint *.md", "lint": "npm-run-all --print-name --print-label --parallel lint:*", @@ -70,7 +70,7 @@ }, "lint-staged": { "*.{js,jsx}": [ - "eslint --fix --max-warnings=-1 --no-ignore", + "eslint --fix --no-ignore", "git add" ], "*.md": "markdownlint" diff --git a/test/init.test.js b/test/init.test.js index daa47da9..4ab874ea 100644 --- a/test/init.test.js +++ b/test/init.test.js @@ -38,7 +38,7 @@ suite('init', () => { assert.deepStrictEqual(pkg.scripts, { build: 'babel src/ -d lib/', commitmsg: 'commitlint -e', - 'lint:js': 'eslint --max-warnings=-1 --ignore-path=.gitignore --ext=.js --ext=.jsx .', + 'lint:js': 'eslint --ignore-path .gitignore --ext .js,.jsx .', 'lint:js:fix': 'npm run lint:js -- --fix', 'lint:md': 'markdownlint *.md', lint: 'npm-run-all --print-name --print-label --parallel lint:*', @@ -52,7 +52,7 @@ suite('init', () => { assert.deepStrictEqual(pkg['lint-staged'], { '*.{js,jsx}': [ - 'eslint --fix --max-warnings=-1 --no-ignore', + 'eslint --fix --no-ignore', 'git add', ], '*.md': 'markdownlint',