aboutsummaryrefslogtreecommitdiffhomepage
path: root/.dev
diff options
context:
space:
mode:
Diffstat (limited to '.dev')
-rw-r--r--.dev/.eslintrc.js12
-rw-r--r--.dev/.sasslintrc15
2 files changed, 27 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};
diff --git a/.dev/.sasslintrc b/.dev/.sasslintrc
new file mode 100644
index 00000000..ac406d7b
--- /dev/null
+++ b/.dev/.sasslintrc
@@ -0,0 +1,15 @@
1options:
2 max-warnings: 0
3rules:
4 property-sort-order:
5 - 1
6 -
7 order: 'concentric'
8 no-important:
9 - 0
10 no-vendor-prefixes:
11 - 0 # this will be fixed with v2: see https://github.com/sasstools/sass-lint/pull/1137
12 nesting-depth:
13 - 1
14 -
15 max-depth: 4