Skip to content

Commit

Permalink
chore(eslint): use overwrites option (#2347)
Browse files Browse the repository at this point in the history
  • Loading branch information
hiroppy committed Dec 19, 2019
1 parent 7d62b84 commit 77813a1
Show file tree
Hide file tree
Showing 4 changed files with 24 additions and 19 deletions.
25 changes: 24 additions & 1 deletion .eslintrc
Original file line number Diff line number Diff line change
Expand Up @@ -21,5 +21,28 @@
"prefer-rest-params": "off",
"strict": ["error", "safe"],
"global-require": "off"
}
},
"overrides": [
{
"files": ["examples/**/*.js"],
"env": {
"browser": true
},
"rules": {
"no-console": "off"
}
},
{
"files": ["test/**/*.js"],
"rules": {
"no-console": "off"
}
},
{
"files": ["client-src/**/*.js"],
"parserOptions": {
"sourceType": "module"
}
}
]
}
5 changes: 0 additions & 5 deletions client-src/.eslintrc

This file was deleted.

8 changes: 0 additions & 8 deletions examples/.eslintrc

This file was deleted.

5 changes: 0 additions & 5 deletions test/.eslintrc

This file was deleted.

0 comments on commit 77813a1

Please sign in to comment.