Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

feat: fix anchor style && some optimize #3

Merged
merged 1 commit into from
Jun 3, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 0 additions & 9 deletions .editorconfig

This file was deleted.

27 changes: 20 additions & 7 deletions .eslintrc.cjs
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,10 @@ module.exports = {
extends: [
'airbnb-base',
'prettier', // eslint-config-prettier 处理冲突
'plugin:import/typescript',
'plugin:@typescript-eslint/recommended',
],
parser: '@typescript-eslint/parser',
plugins: ['@typescript-eslint'],
plugins: ['@typescript-eslint', 'simple-import-sort'],
env: {
browser: true,
node: true,
Expand All @@ -32,13 +31,27 @@ module.exports = {
'@typescript-eslint/no-use-before-define': ['error', { functions: false }],
'@typescript-eslint/no-var-requires': 'off',
'@typescript-eslint/no-unused-vars': 'error', // codecc
'import/order': 'error',
'simple-import-sort/imports': [
'error',
{
groups: [
// Side effect imports.
['^\\u0000'],
// Packages. `react` related packages come first.
['^react', '^@?\\w'],
['^(echarts)(/.*|$)'],
// Internal packages.
['^(@|hooks|utils)(/.*|$)'],
// Parent and other relative imports. Put `.` last.
['^\\.\\.(?!/?$)', '^\\.\\./?$', '^\\./(?=.*/)(?!/?$)', '^\\.(?!/?$)', '^\\./?$'],
// Style imports.
['^.+\\.less$'],
],
},
],
'import/extensions': 'off',
'import/no-named-as-default': 'off',
'import/no-unresolved': 'off',
'import/prefer-default-export': 'off',
'import/no-extraneous-dependencies': 'off',
'import/no-cycle': 'off', // TODO: turn on this rule later
'import/no-unresolved': 'off', // TODO: turn on this rule later
'max-len': 'off',
'no-shadow': 'off',
'no-console': 'off',
Expand Down
7 changes: 0 additions & 7 deletions .vscode/extension.json

This file was deleted.

10 changes: 10 additions & 0 deletions .vscode/extensions.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
{
"recommendations": [
"esbenp.prettier-vscode",
"dbaeumer.vscode-eslint",
"streetsidesoftware.code-spell-checker",
"bradlc.vscode-tailwindcss",
"alfredbirk.tailwind-documentation",
"eamodio.gitlens"
]
}
2 changes: 1 addition & 1 deletion index.html
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
<meta charset="UTF-8" />
<link rel="icon" href="https://omi.cdn-go.cn/play/latest/assets/favicon.974a6ddb.ico">
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>100+ OMI Tailwind Templates</title>
<title>TDesign Web Components</title>
</head>
<body>
<div id="app"></div>
Expand Down
Loading