aboutsummaryrefslogtreecommitdiffhomepage
path: root/.dev/.eslintrc.js
diff options
context:
space:
mode:
authorArthurHoaro <arthur@hoa.ro>2018-05-10 13:29:47 +0200
committerArthurHoaro <arthur@hoa.ro>2018-05-10 13:29:47 +0200
commit03b483aa45ca994c0d75010e2008a8f0bfcf7ed3 (patch)
treec4ab060db6f6991025d743cf8084c28b8bfafd31 /.dev/.eslintrc.js
parent9d0fc862507e1933e447b3c3e92a438400aad263 (diff)
downloadShaarli-03b483aa45ca994c0d75010e2008a8f0bfcf7ed3.tar.gz
Shaarli-03b483aa45ca994c0d75010e2008a8f0bfcf7ed3.tar.zst
Shaarli-03b483aa45ca994c0d75010e2008a8f0bfcf7ed3.zip
Add SASSLint makefile target, and run it in CI
Also move ESLint and SASSLint config files to a dedicated .dev folder
Diffstat (limited to '.dev/.eslintrc.js')
-rw-r--r--.dev/.eslintrc.js12
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 @@
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};