Skip to content

Commit

Permalink
Merge pull request #27 from clappr/update-eslint-config
Browse files Browse the repository at this point in the history
Refactor - Update eslint config
  • Loading branch information
joaopaulovieira committed Aug 5, 2020
2 parents 2a45c9e + 6f13319 commit f36df4a
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 10 deletions.
15 changes: 6 additions & 9 deletions .eslintrc.js → .eslintrc.json
Original file line number Diff line number Diff line change
@@ -1,17 +1,15 @@
module.exports = {
{
"env": {
"browser": true,
"commonjs": true,
"es6": true,
"es6": true
},
"globals": {
"_gaq": false,
"process": false,
"ActiveXObject": false,
"VERSION": false,
// Build globals
"__dirname": false,
// Test globals
"after": false,
"afterEach": false,
"assert": false,
Expand All @@ -25,12 +23,12 @@ module.exports = {
"jest": false,
"test": false,
"module": false,
"require": false,
"require": false
},
"extends": "eslint:recommended",
"parserOptions": {
"sourceType": "module",
"ecmaVersion": 2018,
"ecmaVersion": 2018
},
"rules": {
"indent": [
Expand All @@ -57,8 +55,7 @@ module.exports = {
"keyword-spacing": "error",
"space-before-blocks": "error",
"arrow-spacing": "error",
// part of Node Style-guide but ignored
"max-len": 0,
"max-statements": 0,
"max-statements": 0
}
};
}
2 changes: 1 addition & 1 deletion .hound.yml
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
eslint:
enabled: true
config_file: .eslintrc
config_file: .eslintrc.json

0 comments on commit f36df4a

Please sign in to comment.