Skip to content

Commit

Permalink
Merge pull request #362 from TykTechnologies/TUI-45/stylelint
Browse files Browse the repository at this point in the history
adds stylelint and fixes css lint errors
  • Loading branch information
ifrim authored Apr 8, 2024
2 parents 3fb4ca0 + 796def0 commit 4040b33
Show file tree
Hide file tree
Showing 63 changed files with 1,508 additions and 642 deletions.
27 changes: 27 additions & 0 deletions .stylelintrc.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
module.exports = {
extends: 'stylelint-config-standard-scss',
plugins: [
'stylelint-use-logical-spec',
'stylelint-declaration-block-no-ignored-properties'
],
ignoreFiles: [
'src/common/sass/fontawesome.scss',
'src/common/sass/tykon.scss'
],
rules: {
'color-hex-length': null,
'custom-property-empty-line-before': null,
'declaration-block-no-redundant-longhand-properties': null,
'liberty/use-logical-spec': true,
'no-descending-specificity': null,
'plugin/declaration-block-no-ignored-properties': true,
'property-no-vendor-prefix': [true, { ignoreProperties: ['full-screen', 'mask', 'mask-size', 'user-select'] }],
'scss/at-extend-no-missing-placeholder': null,
'scss/at-import-partial-extension': null,
'scss/dollar-variable-empty-line-before': null,
'scss/double-slash-comment-empty-line-before': null,
'scss/percent-placeholder-pattern': null,
'selector-class-pattern': null,
'selector-no-vendor-prefix': [true, { ignoreSelectors: [':-webkit-full-screen', ':-ms-input-placeholder'] }],
}
};
Loading

0 comments on commit 4040b33

Please sign in to comment.