Skip to content

Commit

Permalink
fix(eslint): simplify eslint command options (#60)
Browse files Browse the repository at this point in the history
  • Loading branch information
ybiquitous authored Dec 5, 2017
1 parent 5b812a4 commit ef5ec08
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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:*",
Expand All @@ -70,7 +70,7 @@
},
"lint-staged": {
"*.{js,jsx}": [
"eslint --fix --max-warnings=-1 --no-ignore",
"eslint --fix --no-ignore",
"git add"
],
"*.md": "markdownlint"
Expand Down
4 changes: 2 additions & 2 deletions test/init.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -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:*',
Expand All @@ -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',
Expand Down

0 comments on commit ef5ec08

Please sign in to comment.