From 47978e8772d9ac355c76f6ccd6fc59394bc7c301 Mon Sep 17 00:00:00 2001 From: ArthurHoaro Date: Sat, 24 Feb 2018 18:37:57 +0100 Subject: Webpack / Configure webpack, ESLint, Travis, Makefile, npm/yarn and git --- .eslintrc.js | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100644 .eslintrc.js (limited to '.eslintrc.js') diff --git a/.eslintrc.js b/.eslintrc.js new file mode 100644 index 00000000..151b785b --- /dev/null +++ b/.eslintrc.js @@ -0,0 +1,12 @@ +module.exports = { + "extends": "airbnb-base", + "env": { + "browser": true, + }, + "rules": { + "no-param-reassign": 0, // manipulate DOM style properties + "no-restricted-globals": 0, // currently Shaarli uses alert/confirm, could be be improved later + "no-alert": 0, // currently Shaarli uses alert/confirm, could be be improved later + "no-cond-assign": [2, "except-parens"], // assignment in while loops is readable and avoid assignment duplication + } +}; -- cgit v1.2.3