mirror of
https://github.com/imdap/ruoyi-plus-vben5.git
synced 2026-05-11 13:22:09 +08:00
* chore: update deps * feat: use jsonc/x language * chore: update eslint 10.0 * fix: no-useless-assignment * feat: add CLAUDE.md * chore: ignore * feat: claude * fix: lint * chore: suppot eslint v10 * fix: lint * fix: lint * fix: type check * fix: unit test * fix: Suggested fix * fix: unit test * chore: update stylelint v17 * chore: update all major deps * fix: echarts console warn * chore: update vitest v4 * feat: add skills ignores * chore: update deps * chore: update deps * fix: cspell * chore: update deps * chore: update tailwindcss v4 * chore: remove postcss config * fix: no use catalog * chore: tailwind v4 config * fix: tailwindcss v4 sort * feat: use eslint-plugin-better-tailwindcss * fix: Interference between enforce-consistent-line-wrapping, jsx-curly-brace-presence and Prettier * fix: Interference between enforce-consistent-line-wrapping, jsx-curly-brace-presence and Prettier * fix(lint): resolve prettier and better-tailwindcss formatting conflicts * fix(tailwind): update theme references and lint sources * style(format): normalize apps docs and playground vue files * style(format): normalize core ui-kit components * style(format): normalize effects ui and layout components
155 lines
3.4 KiB
JavaScript
155 lines
3.4 KiB
JavaScript
export default {
|
|
extends: ['stylelint-config-standard', 'stylelint-config-recess-order'],
|
|
ignoreFiles: [
|
|
'**/*.js',
|
|
'**/*.jsx',
|
|
'**/*.tsx',
|
|
'**/*.ts',
|
|
'**/*.json',
|
|
'**/*.md',
|
|
],
|
|
overrides: [
|
|
{
|
|
customSyntax: 'postcss-html',
|
|
files: ['*.(html|vue)', '**/*.(html|vue)'],
|
|
rules: {
|
|
'selector-pseudo-class-no-unknown': [
|
|
true,
|
|
{
|
|
ignorePseudoClasses: ['global', 'deep'],
|
|
},
|
|
],
|
|
'selector-pseudo-element-no-unknown': [
|
|
true,
|
|
{
|
|
ignorePseudoElements: ['v-deep', 'v-global', 'v-slotted'],
|
|
},
|
|
],
|
|
},
|
|
},
|
|
{
|
|
customSyntax: 'postcss-scss',
|
|
extends: [
|
|
'stylelint-config-recommended-scss',
|
|
'stylelint-config-recommended-vue/scss',
|
|
],
|
|
files: ['*.scss', '**/*.scss'],
|
|
},
|
|
],
|
|
plugins: [
|
|
'stylelint-order',
|
|
'@stylistic/stylelint-plugin',
|
|
'stylelint-prettier',
|
|
'stylelint-scss',
|
|
],
|
|
rules: {
|
|
'at-rule-no-deprecated': null,
|
|
'at-rule-no-unknown': [
|
|
true,
|
|
{
|
|
ignoreAtRules: [
|
|
'extends',
|
|
'ignores',
|
|
'include',
|
|
'mixin',
|
|
'if',
|
|
'else',
|
|
'media',
|
|
'for',
|
|
'at-root',
|
|
'tailwind',
|
|
'apply',
|
|
'variants',
|
|
'responsive',
|
|
'screen',
|
|
'function',
|
|
'each',
|
|
'use',
|
|
'forward',
|
|
'return',
|
|
'reference',
|
|
'plugin',
|
|
'source',
|
|
'theme',
|
|
'utility',
|
|
'custom-variant',
|
|
],
|
|
},
|
|
],
|
|
'font-family-no-missing-generic-family-keyword': null,
|
|
'function-no-unknown': null,
|
|
'import-notation': null,
|
|
'media-feature-range-notation': null,
|
|
'named-grid-areas-no-invalid': null,
|
|
'nesting-selector-no-missing-scoping-root': null,
|
|
'no-descending-specificity': null,
|
|
'no-empty-source': null,
|
|
'order/order': [
|
|
[
|
|
'dollar-variables',
|
|
'custom-properties',
|
|
'at-rules',
|
|
'declarations',
|
|
{
|
|
name: 'supports',
|
|
type: 'at-rule',
|
|
},
|
|
{
|
|
name: 'media',
|
|
type: 'at-rule',
|
|
},
|
|
{
|
|
name: 'include',
|
|
type: 'at-rule',
|
|
},
|
|
'rules',
|
|
],
|
|
{ severity: 'error' },
|
|
],
|
|
'prettier/prettier': true,
|
|
'rule-empty-line-before': [
|
|
'always',
|
|
{
|
|
ignore: ['after-comment', 'first-nested'],
|
|
},
|
|
],
|
|
'scss/at-rule-no-unknown': [
|
|
true,
|
|
{
|
|
ignoreAtRules: [
|
|
'extends',
|
|
'ignores',
|
|
'include',
|
|
'mixin',
|
|
'if',
|
|
'else',
|
|
'media',
|
|
'for',
|
|
'at-root',
|
|
'tailwind',
|
|
'apply',
|
|
'variants',
|
|
'responsive',
|
|
'screen',
|
|
'function',
|
|
'each',
|
|
'use',
|
|
'forward',
|
|
'return',
|
|
'reference',
|
|
'plugin',
|
|
'source',
|
|
'theme',
|
|
'utility',
|
|
'custom-variant',
|
|
],
|
|
},
|
|
],
|
|
'scss/operator-no-newline-after': null,
|
|
'selector-class-pattern':
|
|
'^-?(?:(?:o|c|u|t|s|is|has|_|js|qa)-)?[a-zA-Z0-9]+(?:-[a-zA-Z0-9]+)*(?:__[a-zA-Z0-9]+(?:-[a-zA-Z0-9]+)*)?(?:--[a-zA-Z0-9]+(?:-[a-zA-Z0-9]+)*)?(?:[.+])?$',
|
|
|
|
'selector-not-notation': null,
|
|
},
|
|
};
|