Skip to content

Commit

Permalink
feat(stylelint-config): add stylistic plugin
Browse files Browse the repository at this point in the history
  • Loading branch information
splincode committed Oct 13, 2024
1 parent 6545535 commit eda9ea9
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 1 deletion.
15 changes: 14 additions & 1 deletion projects/stylelint-config/index.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,13 @@
module.exports = {
$schema:
'https://raw.githubusercontent.com/SchemaStore/schemastore/master/src/schemas/json/stylelintrc.json',
plugins: ['stylelint-order', 'stylelint-rem-over-px', 'stylelint-use-logical'],
plugins: [
'stylelint-order',
'stylelint-rem-over-px',
'stylelint-use-logical',
'@stylistic/stylelint-plugin',
],
extends: ['@stylistic/stylelint-config'],
allowEmptyInput: true,
customSyntax: 'postcss-less',
defaultSeverity: 'error',
Expand All @@ -12,6 +18,13 @@ module.exports = {
`${process.cwd()}/**/tests-report/**`,
],
rules: {
'@stylistic/declaration-block-trailing-semicolon': null,
'@stylistic/declaration-colon-newline-after': null,
'@stylistic/indentation': null,
'@stylistic/max-line-length': null,
'@stylistic/no-extra-semicolons': null,
'@stylistic/string-quotes': 'single',
'@stylistic/value-list-comma-newline-after': null,
'alpha-value-notation': 'number',
'annotation-no-unknown': true,
'at-rule-allowed-list': [
Expand Down
2 changes: 2 additions & 0 deletions projects/stylelint-config/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,8 @@
"license": "Apache-2.0",
"main": "index.js",
"peerDependencies": {
"@stylistic/stylelint-config": "^2.0.0",
"@stylistic/stylelint-plugin": "^3.1.1",
"postcss": "^8.4.47",
"postcss-less": "^6.0.0",
"stylelint": "^16.9.0",
Expand Down

0 comments on commit eda9ea9

Please sign in to comment.