Skip to content

Commit

Permalink
refactor(ESLint): update the ESLint configurations to use homer0's pl…
Browse files Browse the repository at this point in the history
…ugin
  • Loading branch information
homer0 committed Aug 25, 2019
1 parent 0640fb6 commit b732a5d
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 34 deletions.
25 changes: 3 additions & 22 deletions .eslintrc
Original file line number Diff line number Diff line change
@@ -1,24 +1,5 @@
{
"extends": "airbnb-base",
"rules": {
"indent": ["error", 2, {
"MemberExpression": 0
}],
"no-underscore-dangle": ["error", { "allowAfterThis": true }],
"comma-dangle": ["error", {
"arrays": "always-multiline",
"objects": "always-multiline",
"imports": "always-multiline",
"exports": "always-multiline",
"functions": "never"
}],
"class-methods-use-this": "off",
"import/no-unresolved": "off",
"import/no-extraneous-dependencies": "off",
"function-paren-newline": "off",
"arrow-parens": ["error", "always"],
"no-plusplus": "off",
"lines-between-class-members": "off",
"operator-linebreak": ["error", "after"]
}
"root": true,
"plugins": ["homer0"],
"extends": ["plugin:homer0/node"]
}
14 changes: 2 additions & 12 deletions tests/.eslintrc
Original file line number Diff line number Diff line change
@@ -1,14 +1,4 @@
{
"extends": ["../.eslintrc"],
"env": {
"jest": true,
},
"rules": {
"import/no-unresolved": "off",
"import/no-absolute-path": "off",
"node/no-missing-require": "off"
},
"globals": {
"spyOn": true
}
"plugins": ["homer0"],
"extends": ["plugin:homer0/jest"]
}

0 comments on commit b732a5d

Please sign in to comment.