Skip to content

Commit

Permalink
feat: add stylistic plugin and config in order to keep support for th…
Browse files Browse the repository at this point in the history
…e rules that were deprecated from stylelint v15
  • Loading branch information
Lucas Nicora committed Jun 13, 2024
1 parent a39cfcd commit 35f4244
Show file tree
Hide file tree
Showing 3 changed files with 79 additions and 3 deletions.
10 changes: 7 additions & 3 deletions index.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,10 @@
module.exports = {
"extends": "stylelint-config-standard-scss",
"extends": [
"stylelint-config-standard-scss",
"@stylistic/stylelint-config"
],
"plugins": [
"@stylistic/stylelint-plugin",
"stylelint-no-unsupported-browser-features"
],
// additonal rules based mainly on
Expand All @@ -14,8 +18,8 @@ module.exports = {
"plugin/no-unsupported-browser-features": [true, { "severity": "warning" }],

// general
"indentation": null,
"no-missing-end-of-source-newline": null,
"@stylistic/indentation": null,
"@stylistic/no-missing-end-of-source-newline": null,

// vendor prefixes
// we expect all projects to use autoprefixer
Expand Down
70 changes: 70 additions & 0 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 2 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,8 @@
"extends": "./index.js"
},
"dependencies": {
"@stylistic/stylelint-config": "1.x",
"@stylistic/stylelint-plugin": "2.x",
"stylelint-config-standard-scss": "13.x",
"stylelint-no-unsupported-browser-features": "8.x"
},
Expand Down

0 comments on commit 35f4244

Please sign in to comment.