Skip to content

Commit

Permalink
🧑‍💻 fix: 修复 Lint 在 ES Module 下失效的问题 (#260)
Browse files Browse the repository at this point in the history
  • Loading branch information
pdsuwwz authored Dec 29, 2023
1 parent 8aec4f3 commit d7f0a26
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 10 deletions.
4 changes: 1 addition & 3 deletions .eslintignore
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,5 @@ dist
tmp
node_modules
coverage
public/stat_log.js
public
src/assets/fonts/iconfont.js
src/utils/wysihtml5.js
src/utils/bus.js
File renamed without changes.
18 changes: 11 additions & 7 deletions .stylelintrc.js → .stylelintrc.cjs
Original file line number Diff line number Diff line change
Expand Up @@ -12,22 +12,27 @@ module.exports = {
"rem",
"pt"
],
"indentation": 2,
"no-empty-source": null,
"block-no-empty": null,
'declaration-block-no-duplicate-custom-properties': null,
"font-family-no-missing-generic-family-keyword": null,

"block-closing-brace-newline-after": "always-multi-line",
"block-opening-brace-newline-before": "always-single-line",
"block-opening-brace-newline-after": "always",
"block-closing-brace-newline-before": "always",

"selector-class-pattern": "^[a-z]([a-z0-9-]+)?(__([a-z0-9]+-?)+)?(__([a-z0-9]+-?)+)?(--([a-z0-9]+-?)+){0,2}$|^Mui.*$|^([a-z][a-z0-9]*)(_[a-z0-9]+)*$",

"scss/at-mixin-pattern": "^[a-z]([a-z0-9-]+)?(__([a-z0-9]+-?)+)?(__([a-z0-9]+-?)+)?(--([a-z0-9]+-?)+){0,2}$|^Mui.*$|^([a-z][a-z0-9]*)(_[a-z0-9]+)*$",
"scss/double-slash-comment-whitespace-inside": "always",
"scss/dollar-variable-pattern": null,

"selector-pseudo-class-no-unknown": [
true,
{
"ignorePseudoClasses": [
"export",
"deep"
]
}
],
"property-no-unknown": null,
"at-rule-empty-line-before": [
"always",
{
Expand All @@ -46,7 +51,6 @@ module.exports = {
"except": ["after-declaration", "first-nested"]
}
],
"block-closing-brace-empty-line-before": "never",
"rule-empty-line-before": ["always-multi-line"],

// 忽视 -webkit-xxxx 等兼容写法
Expand Down

0 comments on commit d7f0a26

Please sign in to comment.