-
Notifications
You must be signed in to change notification settings - Fork 18
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge remote-tracking branch 'origin/dev' into dev
# Conflicts: # pnpm-lock.yaml
- Loading branch information
Showing
75 changed files
with
1,530 additions
and
1,662 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,4 @@ | ||
--- | ||
"solive-doc": patch | ||
"next_demo": patch | ||
"solive-docusaurus-theme-code": patch | ||
--- | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
--- | ||
"solive-docusaurus-theme-code": patch | ||
--- | ||
|
||
refactor filename acquisition logic and update metastring resolve |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
--- | ||
"solive-core": patch | ||
--- | ||
|
||
add format code feature |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
--- | ||
"solive-solc": patch | ||
--- | ||
|
||
fix build config |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,130 @@ | ||
module.exports = { | ||
root: true, | ||
parser: '@typescript-eslint/parser', | ||
plugins: [ | ||
'@typescript-eslint', | ||
'react', | ||
'react-hooks', | ||
'import', | ||
'jsx-a11y', | ||
], | ||
extends: [ | ||
'eslint:recommended', | ||
'plugin:@typescript-eslint/recommended', | ||
'airbnb', | ||
'plugin:react/recommended', | ||
'plugin:react-hooks/recommended', | ||
'plugin:import/typescript', | ||
'plugin:jsx-a11y/recommended', | ||
], | ||
settings: { | ||
react: { | ||
version: 'detect', | ||
}, | ||
}, | ||
globals: { | ||
Worker: true, | ||
globalThis: true, | ||
document: true, | ||
JSX: true, | ||
React: 'readonly', | ||
localStorage: true, | ||
HTMLElement: true, | ||
window: true, | ||
// 在这里添加其他全局变量 | ||
}, | ||
rules: { | ||
// 常用规则 | ||
'no-unused-vars': 'off', | ||
'@typescript-eslint/no-unused-vars': ['error', { argsIgnorePattern: '^_' }], | ||
'no-console': ['warn', { allow: ['warn', 'error'] }], | ||
'no-debugger': 'error', | ||
'prefer-template': 'error', | ||
'@typescript-eslint/ban-ts-comment': 'off', | ||
'func-names': 'off', | ||
'no-use-before-define': 'off', | ||
'import/no-import-module-exports': 'off', | ||
'no-plusplus': 'off', | ||
'prefer-regex-literals': 'off', | ||
'no-await-in-loop': 'off', | ||
'no-restricted-syntax': 'off', | ||
'no-shadow': 'off', | ||
'no-bitwise': 'off', | ||
'class-methods-use-this': 'off', | ||
radix: 'off', | ||
'guard-for-in': 'off', | ||
'max-len': ['error', { code: 150 }], | ||
|
||
// TypeScript 相关 | ||
'@typescript-eslint/explicit-function-return-type': 'off', | ||
'@typescript-eslint/explicit-module-boundary-types': 'off', | ||
'@typescript-eslint/no-explicit-any': 'off', | ||
'@typescript-eslint/no-non-null-asserted-optional-chain': 'off', | ||
'@typescript-eslint/no-non-null-assertion': 'off', | ||
|
||
// React 相关 | ||
'react/jsx-filename-extension': ['error', { extensions: ['.jsx', '.tsx'] }], | ||
'react/prop-types': 'off', | ||
'react/jsx-props-no-spreading': 'off', | ||
'react-hooks/rules-of-hooks': 'error', | ||
'react-hooks/exhaustive-deps': 'warn', | ||
'react/require-default-props': 'warn', | ||
'react/no-unused-prop-types': 'warn', | ||
'jsx-a11y/click-events-have-key-events': 'warn', | ||
|
||
// import 相关 | ||
'import/prefer-default-export': 'off', | ||
'import/extensions': ['error', 'never', { svg: 'always' }], | ||
'import/order': ['error', { | ||
'newlines-between': 'always', | ||
groups: ['builtin', 'external', 'internal', 'parent', 'sibling', 'index'], | ||
pathGroups: [ | ||
{ | ||
pattern: 'react', | ||
group: 'external', | ||
position: 'before', | ||
}, | ||
], | ||
pathGroupsExcludedImportTypes: ['builtin'], | ||
}], | ||
'import/no-unresolved': [ | ||
'error', | ||
{ | ||
ignore: ['^@theme-original', '^@docusaurus', '^@theme-init'], | ||
}, | ||
], | ||
|
||
// 全局变量 相关 | ||
'no-restricted-globals': ['error', { | ||
name: 'addEventListener', | ||
message: 'Use `self.addEventListener` instead.', | ||
}, { | ||
name: 'importScripts', | ||
message: 'Use `self.importScripts` instead.', | ||
}, { | ||
name: 'self', | ||
message: 'Use `globalThis` instead.', | ||
}], | ||
}, | ||
overrides: [ | ||
{ | ||
files: ['*.ts', '*.tsx'], | ||
rules: { | ||
// 在这里添加针对 TypeScript 的规则 | ||
}, | ||
}, | ||
{ | ||
files: ['*.jsx', '*.tsx'], | ||
rules: { | ||
// 在这里添加针对 React/JSX 的规则 | ||
}, | ||
}, | ||
{ | ||
files: ['next/**/*.js', 'next/**/*.jsx', 'next/**/*.ts', 'next/**/*.tsx'], | ||
rules: { | ||
// 在这里添加针对 Next.js 项目的规则 | ||
}, | ||
}, | ||
], | ||
ignorePatterns: ['dist/', 'build/'], | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.