-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
18 changed files
with
1,637 additions
and
79 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
# EditorConfig is awesome: http://EditorConfig.org | ||
# 表示是最顶层的 EditorConfig 配置文件 | ||
root = true | ||
|
||
[*] # 表示所有文件适用 | ||
charset = utf-8 # 设置文件字符集为 utf-8 | ||
indent_style = space # 缩进风格(tab | space) | ||
indent_size = 2 # 缩进大小 | ||
end_of_line = lf # 控制换行类型(lf | cr | crlf) | ||
trim_trailing_whitespace = true # 去除行首的任意空白字符 | ||
insert_final_newline = true # 始终在文件末尾插入一个新行 | ||
|
||
|
||
[*.md] # 表示仅 md 文件适用以下规则 | ||
max_line_length = off | ||
trim_trailing_whitespace = false | ||
|
||
|
||
[*.{js,jsx,ts,tsx,mjs,mjsx,cjs,cjsx,sh,rb}] | ||
indent_size = 2 | ||
trim_trailing_whitespace = true | ||
|
||
[*.{css,scss,less,html,hbs,ejs,json,code-workspace,yml,yaml,gql}] | ||
indent_size = 2 | ||
trim_trailing_whitespace = true |
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,4 @@ | ||
*.d.ts | ||
**/node_modules | ||
**/lib | ||
**/dist |
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,24 @@ | ||
|
||
module.exports = { | ||
extends: [ './config/eslint/react-ts.config' ], | ||
rules: { | ||
'@typescript-eslint/no-non-null-assertion': 0, | ||
'func-style': 0, | ||
'react/react-in-jsx-scope': 0, | ||
'@typescript-eslint/no-var-requires': [ 0 ], | ||
complexity: [ 'error', { max: 20 } ], | ||
'no-multiple-empty-lines': [ | ||
'error', | ||
{ | ||
max: 1, | ||
maxBOF: 1, | ||
maxEOF: 1, | ||
}, | ||
], | ||
}, | ||
settings: {}, | ||
plugins: [], | ||
overrides: [], | ||
// ignorePatterns: [ 'src/**/*.d.ts' ], | ||
}; | ||
|
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,3 +1,6 @@ | ||
[submodule ".vscode"] | ||
path = .vscode | ||
url = https://github.com/lgf-136/.vscode | ||
[submodule "config"] | ||
path = config | ||
url = https://github.com/lgf-136/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,9 @@ | ||
{ | ||
"extends": [ | ||
"development" | ||
], | ||
"hints": { | ||
"disown-opener": "off", | ||
"compat-api/css": "off" | ||
} | ||
} |
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 +1 @@ | ||
export * from "./src/api"; | ||
export * from './src/api'; |
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,3 +1,3 @@ | ||
const api: string = "api"; | ||
const api = 'api'; | ||
console.log(api); | ||
export default { api }; |
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,10 +1,8 @@ | ||
import React from 'react' | ||
import ReactDOM from 'react-dom/client' | ||
import App from './App' | ||
import './index.css' | ||
import React from 'react'; | ||
import ReactDOM from 'react-dom/client'; | ||
import App from './App'; | ||
import './index.css'; | ||
|
||
ReactDOM.createRoot(document.getElementById('root') as HTMLElement).render( | ||
<React.StrictMode> | ||
<App /> | ||
</React.StrictMode> | ||
) | ||
ReactDOM.createRoot(document.getElementById('root') as HTMLElement).render(<React.StrictMode> | ||
<App /> | ||
</React.StrictMode>); |
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 +1 @@ | ||
export * from "./src"; | ||
export * from './src'; |
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,2 +1,2 @@ | ||
const corePackage: string = "corePackage"; | ||
const corePackage = 'corePackage'; | ||
export default { corePackage }; |
Oops, something went wrong.