Skip to content

Commit

Permalink
Lint LESS files using Stylelint (#1948)
Browse files Browse the repository at this point in the history
  • Loading branch information
mvorisek authored Jan 6, 2023
1 parent 5d1bf4c commit ef3caa2
Show file tree
Hide file tree
Showing 8 changed files with 1,671 additions and 159 deletions.
11 changes: 11 additions & 0 deletions js/.prettierrc.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
module.exports = {
tabWidth: 4,
overrides: [
{
files: ['*.less'],
options: {
parser: 'less',
},
},
],
};
23 changes: 23 additions & 0 deletions js/.stylelintrc.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
module.exports = {
extends: [
'stylelint-config-standard',
],
customSyntax: 'postcss-less',
rules: {
'at-rule-empty-line-before': null,
'at-rule-name-case': null,
'color-function-notation': 'legacy',
'color-hex-case': 'lower',
indentation: 4,
linebreaks: 'unix',
'max-line-length': null,
'no-descending-specificity': null,
'rule-empty-line-before': null,
'string-quotes': 'double',

// TODO
'no-duplicate-selectors': null, // 3 errors
'selector-class-pattern': null, // 14 errors, example: Expected class selector ".atk-topMenu" to be kebab-case
},
reportNeedlessDisables: true,
};
Loading

0 comments on commit ef3caa2

Please sign in to comment.