Skip to content

Commit

Permalink
Merged eslintrc files into one
Browse files Browse the repository at this point in the history
  • Loading branch information
ranbena committed Mar 25, 2019
1 parent ca1f1bc commit a455174
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 20 deletions.
2 changes: 2 additions & 0 deletions .codeclimate.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,8 @@ plugins:
eslint:
enabled: true
channel: "eslint-5"
config:
config: client/.eslintrc.js
checks:
import/no-unresolved:
enabled: false
Expand Down
9 changes: 8 additions & 1 deletion client/.eslintrc.js
Original file line number Diff line number Diff line change
@@ -1,11 +1,14 @@
module.exports = {
root: true,
extends: ["airbnb"],
extends: ["airbnb", "plugin:jest/recommended", "plugin:cypress/recommended"],
plugins: ["jest", "cypress", "chai-friendly"],
settings: {
"import/resolver": "webpack"
},
parser: "babel-eslint",
env: {
"jest/globals": true,
"cypress/globals": true,
"browser": true,
"node": true
},
Expand Down Expand Up @@ -53,5 +56,9 @@ module.exports = {
}],
"no-else-return": ["error", {"allowElseIf": true}],
"object-curly-newline": ["error", {"consistent": true}],
// needed for cypress tests
"func-names": "off",
"no-unused-expressions": 0,
"chai-friendly/no-unused-expressions": 2
}
};
7 changes: 0 additions & 7 deletions client/app/.eslintrc.js

This file was deleted.

12 changes: 0 additions & 12 deletions client/cypress/.eslintrc.js

This file was deleted.

0 comments on commit a455174

Please sign in to comment.