fix(stylelint): 引入 TypeScript 支持并优化配置结构
This commit is contained in:
@@ -69,6 +69,8 @@
|
||||
"@prettier/plugin-oxc": "^0.0.4",
|
||||
"@primevue/auto-import-resolver": "^4.3.9",
|
||||
"@primevue/metadata": "^4.3.9",
|
||||
"@stylelint-types/stylelint-order": "^7.0.0",
|
||||
"@stylelint-types/stylelint-scss": "^6.11.0",
|
||||
"@tsconfig/node22": "^22.0.2",
|
||||
"@types/html-minifier-terser": "^7.0.2",
|
||||
"@types/jsdom": "^27.0.0",
|
||||
@@ -101,6 +103,7 @@
|
||||
"stylelint-config-standard": "^39.0.1",
|
||||
"stylelint-config-standard-scss": "^16.0.0",
|
||||
"stylelint-config-standard-vue": "^1.0.0",
|
||||
"stylelint-define-config": "^16.24.0",
|
||||
"typescript": "~5.9.2",
|
||||
"unocss": "^66.5.1",
|
||||
"unocss-preset-animations": "^1.2.1",
|
||||
|
||||
52
pnpm-lock.yaml
generated
52
pnpm-lock.yaml
generated
@@ -90,6 +90,12 @@ importers:
|
||||
'@primevue/metadata':
|
||||
specifier: ^4.3.9
|
||||
version: 4.4.0
|
||||
'@stylelint-types/stylelint-order':
|
||||
specifier: ^7.0.0
|
||||
version: 7.0.0(stylelint-define-config@16.24.0(stylelint@16.25.0(typescript@5.9.2)))(stylelint@16.25.0(typescript@5.9.2))
|
||||
'@stylelint-types/stylelint-scss':
|
||||
specifier: ^6.11.0
|
||||
version: 6.11.0(stylelint-define-config@16.24.0(stylelint@16.25.0(typescript@5.9.2)))(stylelint@16.25.0(typescript@5.9.2))
|
||||
'@tsconfig/node22':
|
||||
specifier: ^22.0.2
|
||||
version: 22.0.2
|
||||
@@ -186,6 +192,9 @@ importers:
|
||||
stylelint-config-standard-vue:
|
||||
specifier: ^1.0.0
|
||||
version: 1.0.0(postcss-html@1.8.0)(stylelint@16.25.0(typescript@5.9.2))
|
||||
stylelint-define-config:
|
||||
specifier: ^16.24.0
|
||||
version: 16.24.0(stylelint@16.25.0(typescript@5.9.2))
|
||||
typescript:
|
||||
specifier: ~5.9.2
|
||||
version: 5.9.2
|
||||
@@ -1884,6 +1893,26 @@ packages:
|
||||
'@speed-highlight/core@1.2.7':
|
||||
resolution: {integrity: sha512-0dxmVj4gxg3Jg879kvFS/msl4s9F3T9UXC1InxgOf7t5NvcPD97u/WTA5vL/IxWHMn7qSxBozqrnnE2wvl1m8g==}
|
||||
|
||||
'@stylelint-types/stylelint-order@7.0.0':
|
||||
resolution: {integrity: sha512-bOdHx5HctF1zrMwpn6eniu+0B/EtFtxAXUtOpyAi4je937URLHSjm3yLoyXE2uuJV0hdUcNe2aUFsS3/AkuSwA==}
|
||||
engines: {node: '>=18.0.0', npm: '>=9.0.0', pnpm: '>=8.6.0'}
|
||||
peerDependencies:
|
||||
stylelint: '>=16.0.0'
|
||||
stylelint-define-config: '>=1.0.0'
|
||||
peerDependenciesMeta:
|
||||
stylelint:
|
||||
optional: true
|
||||
|
||||
'@stylelint-types/stylelint-scss@6.11.0':
|
||||
resolution: {integrity: sha512-KvM1i/vCS+ZMpGRU1RJB1lVvtwvc0DQGwQSA01exJm+acnugte3nS9x29XyjlDBDRAN0ulblI4G+UB1O9T8Keg==}
|
||||
engines: {node: '>=18.0.0', npm: '>=9.0.0', pnpm: '>=8.0.0'}
|
||||
peerDependencies:
|
||||
stylelint: '>=16.0.0'
|
||||
stylelint-define-config: '>=1.0.0'
|
||||
peerDependenciesMeta:
|
||||
stylelint:
|
||||
optional: true
|
||||
|
||||
'@tsconfig/node22@22.0.2':
|
||||
resolution: {integrity: sha512-Kmwj4u8sDRDrMYRoN9FDEcXD8UpBSaPQQ24Gz+Gamqfm7xxn+GBR7ge/Z7pK8OXNGyUzbSwJj+TH6B+DS/epyA==}
|
||||
|
||||
@@ -4642,6 +4671,12 @@ packages:
|
||||
peerDependencies:
|
||||
stylelint: ^16.23.0
|
||||
|
||||
stylelint-define-config@16.24.0:
|
||||
resolution: {integrity: sha512-QktXPtFnT7EQNVOTNA0Rju1lVM0wHWkYvXTLFWpA832vS+EUsDf9ay6GBMjm9MQ0ocPRJBU+apyJetCbsMcj8A==}
|
||||
engines: {node: '>=18.0.0', npm: '>=9.0.0', pnpm: '>=8.6.0'}
|
||||
peerDependencies:
|
||||
stylelint: '>=16.0.0'
|
||||
|
||||
stylelint-order@7.0.0:
|
||||
resolution: {integrity: sha512-rSWxx0KscYfxU02wEskKXES9lkRzuuONMMNkZ7SUc6uiF3tDKm7e+sE0Ax/SBlG4TUf1sp1R6f3/SlsPGmzthg==}
|
||||
engines: {node: '>=20.19.0'}
|
||||
@@ -6744,6 +6779,18 @@ snapshots:
|
||||
|
||||
'@speed-highlight/core@1.2.7': {}
|
||||
|
||||
'@stylelint-types/stylelint-order@7.0.0(stylelint-define-config@16.24.0(stylelint@16.25.0(typescript@5.9.2)))(stylelint@16.25.0(typescript@5.9.2))':
|
||||
dependencies:
|
||||
stylelint-define-config: 16.24.0(stylelint@16.25.0(typescript@5.9.2))
|
||||
optionalDependencies:
|
||||
stylelint: 16.25.0(typescript@5.9.2)
|
||||
|
||||
'@stylelint-types/stylelint-scss@6.11.0(stylelint-define-config@16.24.0(stylelint@16.25.0(typescript@5.9.2)))(stylelint@16.25.0(typescript@5.9.2))':
|
||||
dependencies:
|
||||
stylelint-define-config: 16.24.0(stylelint@16.25.0(typescript@5.9.2))
|
||||
optionalDependencies:
|
||||
stylelint: 16.25.0(typescript@5.9.2)
|
||||
|
||||
'@tsconfig/node22@22.0.2': {}
|
||||
|
||||
'@tybys/wasm-util@0.10.1':
|
||||
@@ -9789,6 +9836,11 @@ snapshots:
|
||||
stylelint: 16.25.0(typescript@5.9.2)
|
||||
stylelint-config-recommended: 17.0.0(stylelint@16.25.0(typescript@5.9.2))
|
||||
|
||||
stylelint-define-config@16.24.0(stylelint@16.25.0(typescript@5.9.2)):
|
||||
dependencies:
|
||||
csstype: 3.1.3
|
||||
stylelint: 16.25.0(typescript@5.9.2)
|
||||
|
||||
stylelint-order@7.0.0(stylelint@16.25.0(typescript@5.9.2)):
|
||||
dependencies:
|
||||
postcss: 8.5.6
|
||||
|
||||
@@ -1,12 +1,16 @@
|
||||
// @ts-check
|
||||
/// <reference types="@stylelint-types/stylelint-scss" />
|
||||
/// <reference types="@stylelint-types/stylelint-order" />
|
||||
|
||||
/**
|
||||
* Stylelint 配置
|
||||
*
|
||||
* [Add support for TypeScript configuration files](https://github.com/stylelint/stylelint/issues/4940)
|
||||
* @see https://stylelint.io/user-guide/configure
|
||||
*/
|
||||
|
||||
/** @type {import('stylelint').Config} */
|
||||
export default {
|
||||
import defineConfig from 'stylelint-define-config'; // [Add support for TypeScript configuration files](https://github.com/stylelint/stylelint/issues/4940)
|
||||
|
||||
module.exports = defineConfig({
|
||||
extends: [
|
||||
'stylelint-config-standard',
|
||||
'stylelint-config-recess-order',
|
||||
@@ -38,4 +42,4 @@ export default {
|
||||
// 'scss/at-rule-no-unknown': true,
|
||||
// <<<<<
|
||||
},
|
||||
};
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user