1
0
mirror of https://github.com/hakimel/reveal.js.git synced 2025-09-08 21:50:48 +02:00

Removed .jshintrc and added eslint instead of jshint

I added the same jshint configuration/rules in package.json and I replaced some old function with arrow function to improve legibility
This commit is contained in:
Daniel Panero
2018-05-14 20:01:59 +02:00
parent fb5f4c034a
commit 4818acbaf0
3 changed files with 49 additions and 44 deletions

View File

@@ -40,7 +40,7 @@
"gulp-autoprefixer": "^5.0.0",
"gulp-clean-css": "^3.9.3",
"gulp-connect": "^5.5.0",
"gulp-jshint": "^2.1.0",
"gulp-eslint": "^4.0.2",
"gulp-qunit": "^2.0.1",
"gulp-rename": "^1.2.2",
"gulp-sass": "^3.1.0",
@@ -53,5 +53,38 @@
"license": "MIT",
"dependencies": {
"npm": "^5.7.1"
},
"eslintConfig": {
"env": {
"browser": true
},
"globals": {
"head": false,
"module": false,
"console": false,
"unescape": false,
"define": false,
"exports": false
},
"rules": {
"curly": 0,
"eqeqeq": 2,
"wrap-iife": [
2,
"any"
],
"no-use-before-define": [
2,
{
"functions": false
}
],
"new-cap": 2,
"no-caller": 2,
"dot-notation": 0,
"no-undef": 2,
"no-eq-null": 2,
"no-unused-expressions": 2
}
}
}