diff options
Diffstat (limited to '.dev/.eslintrc.js')
-rw-r--r-- | .dev/.eslintrc.js | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/.dev/.eslintrc.js b/.dev/.eslintrc.js new file mode 100644 index 00000000..151b785b --- /dev/null +++ b/.dev/.eslintrc.js | |||
@@ -0,0 +1,12 @@ | |||
1 | module.exports = { | ||
2 | "extends": "airbnb-base", | ||
3 | "env": { | ||
4 | "browser": true, | ||
5 | }, | ||
6 | "rules": { | ||
7 | "no-param-reassign": 0, // manipulate DOM style properties | ||
8 | "no-restricted-globals": 0, // currently Shaarli uses alert/confirm, could be be improved later | ||
9 | "no-alert": 0, // currently Shaarli uses alert/confirm, could be be improved later | ||
10 | "no-cond-assign": [2, "except-parens"], // assignment in while loops is readable and avoid assignment duplication | ||
11 | } | ||
12 | }; | ||