Skip to content

Commit

Permalink
feature: aa
Browse files Browse the repository at this point in the history
  • Loading branch information
jsxiaosi committed Jun 6, 2022
1 parent c0d13bb commit 79d931d
Show file tree
Hide file tree
Showing 3 changed files with 29 additions and 29 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,7 @@
}
},
"lint-staged": {
"*.{js,jsx,ts,tsx}": [
"{src,mock}/**/*.{vue,ts,js,tsx,jsx}": [
"eslint --fix",
"prettier --write"
],
Expand Down
2 changes: 1 addition & 1 deletion src/hooks/web/useI18n.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import i18n, { availableLocales } from '@/locales/index';
import zh_Cn from 'element-plus/lib/locale/lang/zh-cn';
import en from 'element-plus/lib/locale/lang/en';
import { computed } from '@vue/reactivity';
import { computed } from 'vue';

export const useI18n = () => i18n.global;

Expand Down
54 changes: 27 additions & 27 deletions stylelint.config.js
Original file line number Diff line number Diff line change
@@ -1,28 +1,28 @@
module.exports = {
plugins: ['stylelint-scss', 'stylelint-order'],
customSyntax: 'postcss-html',
extends: ['stylelint-config-standard', 'stylelint-config-prettier'],
rules: {
indentation: 2, // 缩进2个空格
'at-rule-no-unknown': [
true,
{
ignoreAtRules: ['mixin', 'extend', 'content', 'include'],
},
],
'no-descending-specificity': null, // 禁止特异性较低的选择器在特异性较高的选择器之后重写
'no-empty-source': null,
'selector-pseudo-class-no-unknown': [
true,
{
ignorePseudoClasses: ['export'],
},
],
// 关闭禁用位置属性,这个对scss导出变量有问题
'property-no-unknown': null,
// https://github.com/kristerkari/stylelint-scss scsslint规范配置
'scss/comment-no-loud': true, // 禁止使用/*注释
'scss/comment-no-empty': true, // 禁止空注释
},
ignoreFiles: ['**/*.js', '**/*.ts'],
}
plugins: ['stylelint-scss', 'stylelint-order'],
customSyntax: 'postcss-html',
extends: ['stylelint-config-standard', 'stylelint-config-prettier'],
rules: {
indentation: 2, // 缩进2个空格
'at-rule-no-unknown': [
true,
{
ignoreAtRules: ['mixin', 'extend', 'content', 'include'],
},
],
'no-descending-specificity': null, // 禁止特异性较低的选择器在特异性较高的选择器之后重写
'no-empty-source': null,
'selector-pseudo-class-no-unknown': [
true,
{
ignorePseudoClasses: ['export'],
},
],
// 关闭禁用位置属性,这个对scss导出变量有问题
'property-no-unknown': null,
// https://github.com/kristerkari/stylelint-scss scsslint规范配置
'scss/comment-no-loud': true, // 禁止使用/*注释
'scss/comment-no-empty': true, // 禁止空注释
},
ignoreFiles: ['**/*.js', '**/*.ts'],
};

0 comments on commit 79d931d

Please sign in to comment.