diff options
author | ArthurHoaro <arthur@hoa.ro> | 2018-05-10 13:29:47 +0200 |
---|---|---|
committer | ArthurHoaro <arthur@hoa.ro> | 2018-05-10 13:29:47 +0200 |
commit | 03b483aa45ca994c0d75010e2008a8f0bfcf7ed3 (patch) | |
tree | c4ab060db6f6991025d743cf8084c28b8bfafd31 /.dev | |
parent | 9d0fc862507e1933e447b3c3e92a438400aad263 (diff) | |
download | Shaarli-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')
-rw-r--r-- | .dev/.eslintrc.js | 12 | ||||
-rw-r--r-- | .dev/.sasslintrc | 15 |
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 @@ | |||
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 | }; | ||
diff --git a/.dev/.sasslintrc b/.dev/.sasslintrc new file mode 100644 index 00000000..ac406d7b --- /dev/null +++ b/.dev/.sasslintrc | |||
@@ -0,0 +1,15 @@ | |||
1 | options: | ||
2 | max-warnings: 0 | ||
3 | rules: | ||
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 | ||