-
Notifications
You must be signed in to change notification settings - Fork 32
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
48 changed files
with
2,799 additions
and
1,805 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,13 @@ | ||
# Top-most EditorConfig file | ||
root = true | ||
|
||
[*] | ||
charset = utf-8 | ||
end_of_line = lf | ||
indent_size = 2 | ||
indent_style = space | ||
insert_final_newline = true | ||
trim_trailing_whitespace = true | ||
|
||
[*.md] | ||
trim_trailing_whitespace = false |
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,2 @@ | ||
TARGET_BROWSER=chrome | ||
VITE_METADATA_BRANCH=chrome-ext |
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,2 @@ | ||
TARGET_BROWSER=firefox | ||
VITE_METADATA_BRANCH=moz |
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 |
---|---|---|
|
@@ -17,7 +17,7 @@ package-lock.json | |
.history | ||
|
||
# ignore compiled files | ||
build | ||
dist | ||
types | ||
coverage | ||
|
||
|
This file was deleted.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,44 +1,52 @@ | ||
{ | ||
"typescript.tsdk": "node_modules\\typescript\\lib", | ||
"typescript.tsserver.experimental.enableProjectDiagnostics": true, | ||
"workbench.editor.customLabels.patterns": { | ||
"**/src/**/*.test.ts": "Test - ${dirname}: ${filename}", | ||
"**/src/**": "${dirname}: ${filename}" | ||
"editor.quickSuggestions": { | ||
"comments": false, | ||
"other": true, | ||
"strings": false | ||
}, | ||
"workbench.editor.labelFormat": "medium", | ||
"search.exclude": { | ||
"**/node_modules": true, | ||
"**/bower_components": true, | ||
"**/*.code-search": true, | ||
"**/build/**/*": true, | ||
"**/package/**/*": true | ||
"files.exclude": { | ||
"**/.DS_Store": true, | ||
"**/.git": true, | ||
"**/.hg": true, | ||
"**/.svn": true, | ||
"**/CVS": true, | ||
"**/Thumbs.db": true, | ||
"**/node_modules": true | ||
}, | ||
"files.watcherExclude": { | ||
"**/.git/objects/**": true, | ||
"**/.git/subtree-cache/**": true, | ||
"**/node_modules/*/**": true, | ||
"**/.hg/store/**": true, | ||
"**/build/**/*": true, | ||
"**/dist/**/*": true, | ||
"**/node_modules/*/**": true, | ||
"**/package/**/*": true | ||
}, | ||
"files.exclude": { | ||
"**/.git": true, | ||
"**/.svn": true, | ||
"**/.hg": true, | ||
"**/CVS": true, | ||
"**/.DS_Store": true, | ||
"**/Thumbs.db": true, | ||
"**/node_modules": true | ||
}, | ||
"editor.quickSuggestions": { | ||
"other": true, | ||
"comments": false, | ||
"strings": false | ||
"npm.exclude": ["**/build", "**/dist", "**/package"], | ||
"npm.scriptExplorerExclude": ["preinstall"], | ||
"search.exclude": { | ||
"**/*.code-search": true, | ||
"**/bower_components": true, | ||
"**/build/**/*": true, | ||
"**/dist/**/*": true, | ||
"**/node_modules": true, | ||
"**/package/**/*": true | ||
}, | ||
"tailwindCSS.experimental.classRegex": [ | ||
["addClass\\(([^)]*)\\)", "[\"'`]([^\"'`]*).*?[\"'`]"], | ||
["toggleClass\\(([^)]*)\\)", "[\"'`]([^\"'`]*).*?[\"'`]"] | ||
], | ||
"npm.scriptExplorerExclude": ["preinstall"], | ||
"npm.exclude": ["**/build", "**/package"] | ||
"typescript.tsdk": "node_modules\\typescript\\lib", | ||
// "typescript.tsserver.experimental.enableProjectDiagnostics": true, | ||
"typescript.tsserver.maxTsServerMemory": 8192, | ||
"typescript.tsserver.watchOptions": { | ||
"watchFile": "useFsEventsOnParentDirectory", | ||
"watchDirectory": "useFsEvents", | ||
"fallbackPolling": "dynamicPriorityPolling" | ||
}, | ||
"workbench.editor.customLabels.patterns": { | ||
"**/src/**": "${dirname}: ${filename}", | ||
"**/src/**/*.test.ts": "Test - ${dirname}: ${filename}" | ||
}, | ||
"workbench.editor.labelFormat": "medium" | ||
} |
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,15 +1 @@ | ||
Ahh, we all know how things work. Just don't throw in random, unverified AI-generated stuff. You can contribute to this project by opening issues and PRs. Please adhere to the following coding/refactoring conventions: | ||
|
||
- No unused modules. | ||
- No deprecated methods/modules. | ||
- TypeScript: | ||
- Always prefer `type` over `interface` for type declarations. | ||
- Don't use `any` type, regardless of implicit or explicit. | ||
- Use built-in types whenever possible. | ||
- Don't use types that are banned by `eslint@typescript-eslint/ban-types`. e.g. `Function`. | ||
- React: | ||
- Directly import modules/types instead of namespaces: `useState` instead of `React.useState`, `ReactNode` instead of `React.ReactNode`. | ||
- Always prefer the functional component format `function Component` over `const Component = React<FC>...`. | ||
- Always prefer to `export default function Component()...` than have the default export statement in a separated line. | ||
|
||
> Note: I know that the project itself, in some places, doesn't fully comply with the above conventions (there are still some explicit `any` types). But they will eventually be refactored. So, please follow them when contributing. | ||
The project is undergoing significant refactoring, thus PRs are not welcome at the moment. |
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.