diff --git a/.stylelintrc b/.stylelintrc index a8ccf89..c76b422 100644 --- a/.stylelintrc +++ b/.stylelintrc @@ -1,5 +1,6 @@ { "extends": [ + "stylelint-stylistic/config", "stylelint-config-standard", "stylelint-config-standard-scss", "stylelint-config-standard-vue/scss" @@ -8,6 +9,13 @@ "stylelint-scss" ], "rules": { + "stylistic/max-line-length": null, + "stylistic/block-closing-brace-newline-after": [ + "always", + { + "ignoreAtRules": ["if", "else"] + } + ], "at-rule-no-unknown": null, "no-descending-specificity": null, "property-no-unknown": null, diff --git a/package.json b/package.json index fce7db5..000c098 100644 --- a/package.json +++ b/package.json @@ -57,6 +57,7 @@ "stylelint-config-standard-scss": "^7.0.1", "stylelint-config-standard-vue": "^1.0.0", "stylelint-scss": "^4.6.0", + "stylelint-stylistic": "^0.4.0", "svgo": "^3.0.2", "terser": "^5.16.8", "typescript": "^5.0.3", diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index 95d1b7f..fb5cffb 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -129,6 +129,9 @@ devDependencies: stylelint-scss: specifier: ^4.6.0 version: 4.6.0(stylelint@15.4.0) + stylelint-stylistic: + specifier: ^0.4.0 + version: 0.4.0(stylelint@15.4.0) svgo: specifier: ^3.0.2 version: 3.0.2 @@ -7493,6 +7496,19 @@ packages: stylelint: 15.4.0 dev: true + /stylelint-stylistic@0.4.0(stylelint@15.4.0): + resolution: {integrity: sha512-8x6sClY6D+wrdTZD9kEcIcyH6Qv3nXapngd8INEI0iABukdecepZcme+RpxMOJCe4ngacBZf+JlCLjDjKadBcA==} + engines: {node: '>=14.x'} + peerDependencies: + stylelint: ^15.0.0 + dependencies: + postcss: 8.4.21 + postcss-media-query-parser: 0.2.3 + postcss-value-parser: 4.2.0 + style-search: 0.1.0 + stylelint: 15.4.0 + dev: true + /stylelint@15.4.0: resolution: {integrity: sha512-TlOvpG3MbcFwHmK0q2ykhmpKo7Dq892beJit0NPdpyY9b1tFah/hGhqnAz/bRm2PDhDbJLKvjzkEYYBEz7Dxcg==} engines: {node: ^14.13.1 || >=16.0.0}