diff options
author | ArthurHoaro <arthur@hoa.ro> | 2018-02-24 18:37:57 +0100 |
---|---|---|
committer | ArthurHoaro <arthur@hoa.ro> | 2018-03-28 19:04:40 +0200 |
commit | 47978e8772d9ac355c76f6ccd6fc59394bc7c301 (patch) | |
tree | 0f53953801fc2f36b359663777685dd1cb946c96 /.eslintrc.js | |
parent | 7e9bd977eec3c996119626a4bb2828fc08979db8 (diff) | |
download | Shaarli-47978e8772d9ac355c76f6ccd6fc59394bc7c301.tar.gz Shaarli-47978e8772d9ac355c76f6ccd6fc59394bc7c301.tar.zst Shaarli-47978e8772d9ac355c76f6ccd6fc59394bc7c301.zip |
Webpack / Configure webpack, ESLint, Travis, Makefile, npm/yarn and git
Diffstat (limited to '.eslintrc.js')
-rw-r--r-- | .eslintrc.js | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/.eslintrc.js b/.eslintrc.js new file mode 100644 index 00000000..151b785b --- /dev/null +++ b/.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 | }; | ||