Skip to content

Commit

Permalink
Merge pull request #2504 from SpareBank1/stylelint-special-rules-for-…
Browse files Browse the repository at this point in the history
…figma-less-files

chore(buildtool): ignorer genererte fargefiler fra linting
  • Loading branch information
hagenek authored Jan 27, 2025
2 parents 92f6c4d + 3ec7dfc commit 636bf89
Showing 1 changed file with 37 additions and 22 deletions.
59 changes: 37 additions & 22 deletions buildtool/config/stylelint.config.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,42 @@
module.exports = {
extends: ['stylelint-config-standard', '@sb1/stylelint-config-ffe'],
ignoreFiles: [
'**/colors-semantic.less',
'**/colors-semantic-storybook.less',
],
overrides: [
{
files: [
'**/colors-semantic.less',
'**/colors-semantic-storybook.less',
],
rules: {
'selector-class-pattern': null,
'no-duplicate-selectors': null,
'color-hex-length': null,
},
},
{
files: ['**/*.less'],
customSyntax: 'postcss-less',
rules: {
'color-function-notation': null,
'import-notation': 'string',
'@sb1/ffe-no-deprecated-color-vars': [
true,
{
severity: 'warning',
},
],
'function-no-unknown': [
true,
{
ignoreFunctions: ['extend', 'fade', 'data-uri', 'e'],
},
],
},
},
],
rules: {
'at-rule-no-vendor-prefix': true,
'max-nesting-depth': [
Expand Down Expand Up @@ -56,26 +93,4 @@ module.exports = {
},
],
},
overrides: [
{
files: ['**/*.less'],
customSyntax: 'postcss-less',
rules: {
'color-function-notation': null,
'import-notation': 'string',
'@sb1/ffe-no-deprecated-color-vars': [
true,
{
severity: 'warning',
},
],
'function-no-unknown': [
true,
{
ignoreFunctions: ['extend', 'fade', 'data-uri', 'e'],
},
],
},
},
],
};

0 comments on commit 636bf89

Please sign in to comment.