Skip to content

Commit

Permalink
Update ESLint config
Browse files Browse the repository at this point in the history
  • Loading branch information
mjackson committed Nov 5, 2019
1 parent 4b8a816 commit c013f2f
Show file tree
Hide file tree
Showing 4 changed files with 31 additions and 11 deletions.
3 changes: 3 additions & 0 deletions .eslintignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
/cjs
/esm
/umd
23 changes: 23 additions & 0 deletions .eslintrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
{
"parser": "babel-eslint",
"parserOptions": {
"ecmaVersion": 6,
"sourceType": "module"
},
"plugins": ["import"],
"env": {
"node": true
},
"extends": ["eslint:recommended", "plugin:import/errors"],
"rules": {
"prefer-arrow-callback": "error",
"no-unused-vars": [
"warn",
{
"args": "after-used",
"ignoreRestSiblings": true,
"argsIgnorePattern": "event"
}
]
}
}
14 changes: 4 additions & 10 deletions modules/.eslintrc
Original file line number Diff line number Diff line change
@@ -1,15 +1,9 @@
{
"parser": "babel-eslint",
"plugins": ["import"],
"env": {
"browser": true
"browser": true,
"node": false
},
"extends": ["eslint:recommended", "plugin:import/errors"],
"rules": {
"prefer-arrow-callback": 2
},
"parserOptions": {
"ecmaVersion": 6,
"sourceType": "module"
"globals": {
"__DEV__": true
}
}
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
"scripts": {
"build": "rollup -c",
"clean": "git clean -fdX .",
"lint": "eslint modules",
"lint": "eslint .",
"prepublishOnly": "yarn build",
"test": "karma start --single-run"
},
Expand Down

0 comments on commit c013f2f

Please sign in to comment.