aboutsummaryrefslogtreecommitdiffhomepage
path: root/.eslintrc.js
diff options
context:
space:
mode:
authorArthurHoaro <arthur@hoa.ro>2018-02-24 18:37:57 +0100
committerArthurHoaro <arthur@hoa.ro>2018-03-26 19:29:44 +0200
commit7ff458bc437077ca0da372513b6f06e1be83ee83 (patch)
tree73dfa796776fbd631c86678cf828cdf7592b5c2f /.eslintrc.js
parent758fe7201eec7a8894eb473377ae18e9ebaf12ac (diff)
downloadShaarli-7ff458bc437077ca0da372513b6f06e1be83ee83.tar.gz
Shaarli-7ff458bc437077ca0da372513b6f06e1be83ee83.tar.zst
Shaarli-7ff458bc437077ca0da372513b6f06e1be83ee83.zip
Webpack / Configure webpack, ESLint, Travis, Makefile, npm/yarn and git
Diffstat (limited to '.eslintrc.js')
-rw-r--r--.eslintrc.js12
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 @@
1module.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};