diff options
author | ArthurHoaro <arthur@hoa.ro> | 2018-05-29 20:20:02 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-05-29 20:20:02 +0200 |
commit | 8f816d8ddfe9219e15580cef6e5c9037d1d4fd28 (patch) | |
tree | 959b5982d522c3b489353dd2300b85f2d1638720 /.dev | |
parent | cdebf7f9b408f4034b03644a91461f3454c6c039 (diff) | |
parent | 03b483aa45ca994c0d75010e2008a8f0bfcf7ed3 (diff) | |
download | Shaarli-8f816d8ddfe9219e15580cef6e5c9037d1d4fd28.tar.gz Shaarli-8f816d8ddfe9219e15580cef6e5c9037d1d4fd28.tar.zst Shaarli-8f816d8ddfe9219e15580cef6e5c9037d1d4fd28.zip |
Merge pull request #1135 from ArthurHoaro/ci/csslint
Reformat SCSS to SASS format and run SASSLint in CI
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 | ||