Utilise de l'ESM et applique un coding style.
This diff is collapsed.
... | ... | @@ -4,7 +4,8 @@ |
"description": "Build INRAE-themed reveal.js presentatiokns.", | ||
"main": "index.js", | ||
"scripts": { | ||
"test": "echo \"Error: no test specified\" && exit 1" | ||
"test": "echo \"Error: no test specified\" && exit 1", | ||
"lint": "eslint --color ." | ||
}, | ||
"keywords": [ | ||
"reveal.js", | ||
... | ... | @@ -14,14 +15,58 @@ |
"license": "MIT", | ||
"dependencies": { | ||
"del": "^5.1.0", | ||
"esm": "^3.2.25", | ||
"gulp": "^4.0.2", | ||
"gulp-pandoc": "^0.2.2", | ||
"gulp-server-livereload": "^1.9.2", | ||
"gulplog": "^1.0.0", | ||
"plugin-error": "^1.0.1", | ||
"through2": "^3.0.1", | ||
"vinyl": "^2.2.0" | ||
}, | ||
"devDependencies": { | ||
"eslint": "^6.8.0", | ||
"eslint-config-prettier": "^6.11.0", | ||
"eslint-plugin-prettier": "^3.1.3", | ||
"husky": "^4.2.5", | ||
"lint-staged": "^10.2.2", | ||
"prettier": "^2.0.5" | ||
}, | ||
"eslintConfig": { | ||
"extends": [ | ||
"eslint:recommended", | ||
"plugin:prettier/recommended" | ||
], | ||
"parserOptions": { | ||
"sourceType": "module" | ||
}, | ||
"env": { | ||
"node": true, | ||
"es2017": true | ||
}, | ||
"rules": { | ||
"no-console": "warn", | ||
"no-unused-vars": [ | ||
"error", | ||
{ | ||
"args": "after-used" | ||
} | ||
], | ||
"sort-imports": [ | ||
"error", | ||
{ | ||
"ignoreCase": true | ||
} | ||
] | ||
} | ||
}, | ||
"husky": { | ||
"hooks": { | ||
"pre-commit": "lint-staged" | ||
} | ||
}, | ||
"lint-staged": { | ||
"*.js": "eslint", | ||
"*.json": "prettier --check" | ||
} | ||
} |
Please register or sign in to comment