From e8c9e3b03ce618fb84d0bb398248816ccd511d0a Mon Sep 17 00:00:00 2001 From: s bacha Date: Wed, 24 Aug 2022 17:32:28 -0700 Subject: [PATCH] feat(lint): sasslint --- .sasslintrc.js | 40 ++++++++++++++++++++++++++++++++++++++++ 1 file changed, 40 insertions(+) create mode 100644 .sasslintrc.js diff --git a/.sasslintrc.js b/.sasslintrc.js new file mode 100644 index 0000000..66ca29f --- /dev/null +++ b/.sasslintrc.js @@ -0,0 +1,40 @@ +module.exports = { + options: { + 'merge-default-rules': false + }, + files: { + include: [ + 'src/styles/**/*.scss' + ], + ignore: [ + 'node_modules/**/*.s+(a|c)ss', + 'src/__tests__/*.scss', + 'src/__fixtures__/*.scss', + 'src/_profile.scss', + 'src/styles/test.scss' + ] + }, + rules: { + 'attribute-quotes': 2, + 'brace-style': 2, + 'border-zero': 2, + 'declarations-before-nesting': 2, + 'empty-line-between-blocks': 2, + 'final-newline': 2, + 'hex-notation': 2, + 'indentation': 2, + 'no-css-comments': 2, + 'no-debug': 2, + 'no-mergeable-selectors': 2, + 'no-misspelled-properties': 2, + 'no-trailing-whitespace': 2, + 'no-transition-all': 2, + 'placeholder-in-extend': 2, + 'pseudo-element': 2, + 'quotes': 2, + 'shorthand-values': 2, + 'single-line-per-selector': 2, + 'space-after-comma': 2, + 'space-around-operator': 2 + } + }