Skip to content

Commit

Permalink
Replace eslint ignorePatterns to .eslintignore file
Browse files Browse the repository at this point in the history
- expand lint target to entire project (before: src folder)
  • Loading branch information
Jaewoook committed Jun 1, 2020
1 parent 331d031 commit d4a3382
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 4 deletions.
4 changes: 4 additions & 0 deletions .eslintignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
/scripts
dist
build
craco.config.js
3 changes: 0 additions & 3 deletions .eslintrc.js
Original file line number Diff line number Diff line change
Expand Up @@ -25,9 +25,6 @@ module.exports = {
"react",
"@typescript-eslint"
],
ignorePatterns: [
"scripts/*.js"
],
rules: {
"comma-dangle": ["warn", "always-multiline"],
"quotes": ["error", "double", { allowTemplateLiterals: true }],
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
"scripts": {
"build": "cross-env REACT_APP_ENV=production craco build",
"dev": "cross-env REACT_APP_ENV=development craco start",
"lint": "eslint src --ext .js,.ts,.jsx,.tsx",
"lint": "eslint . --ext .js,.ts,.jsx,.tsx",
"prepackage": "yarn build",
"package": "node scripts/CreatePackage.js"
},
Expand Down

0 comments on commit d4a3382

Please sign in to comment.