Skip to content
Permalink
Browse files

Make ESLint pass the current codebase

  • Loading branch information...
jaller94 committed Oct 10, 2019
1 parent 184ce10 commit 348b84f71f316f024cf97a39aa107c15f9cc28b1
Showing with 75 additions and 4 deletions.
  1. +10 −3 .eslintrc.js
  2. +62 −0 package-lock.json
  3. +2 −0 package.json
  4. +1 −1 src/utils.spec.js
@@ -1,9 +1,16 @@
module.exports = {
"env": {
"es6": true,
"node": true
"node": true,
"jest": true
},
"extends": "eslint:recommended",
"parserOptions": {
"ecmaVersion": 2018
},
"extends": [
"eslint:recommended",
"plugin:jest/recommended"
],
"rules": {
"indent": [
"error",
@@ -26,4 +33,4 @@ module.exports = {
"always"
]
}
};
};

Some generated files are not rendered by default. Learn more.

@@ -4,6 +4,7 @@
"description": "Map+Ascii -> MapSCII! Console Map Viewer.",
"main": "main.js",
"scripts": {
"lint": "eslint src",
"start": "node main",
"test": "jest"
},
@@ -45,6 +46,7 @@
},
"devDependencies": {
"eslint": "^6.5.1",
"eslint-plugin-jest": "^22.17.0",
"jest": "^24.9.0"
}
}
@@ -19,7 +19,7 @@ describe('utils', () => {
function wrapper() {
utils.hex2rgb('33');
}
expect(wrapper).toThrowError('isn\'t a supported hex color');
expect(wrapper).toThrow('isn\'t a supported hex color');
});
});
});

0 comments on commit 348b84f

Please sign in to comment.
You can’t perform that action at this time.