Skip to content
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
2 changes: 1 addition & 1 deletion .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -80,4 +80,4 @@ jobs:
- name: 🚀 Publish to Open VSX
run: bun ovsx publish ./vscode-react-native-directory.vsix
env:
OVSX_PAT: ${{ secrets.OPENVSX_TOKEN }}
OVSX_PAT: ${{ secrets.OPENVSX_TOKEN }}
2 changes: 1 addition & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -64,4 +64,4 @@ jobs:
env:
GITHUB_TOKEN: ${{ secrets.GH_RELEASE_TOKEN }}
GIT_AUTHOR_NAME: '[bot] Release Agent'
GIT_COMMITTER_NAME: '[bot] Release Agent'
GIT_COMMITTER_NAME: '[bot] Release Agent'
2 changes: 1 addition & 1 deletion .github/workflows/verify.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,4 +27,4 @@ jobs:
run: bun install

- name: ✅ Lint project
run: bun lint
run: bun lint
10 changes: 10 additions & 0 deletions .oxfmtrc.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
{
"$schema": "./node_modules/oxfmt/configuration_schema.json",
"printWidth": 120,
"tabWidth": 2,
"singleQuote": true,
"bracketSameLine": true,
"trailingComma": "es5",
"arrowParens": "avoid",
"ignorePatterns": ["**/build", "**/node_modules", "package.json", "CHANGELOG.md"]
}
122 changes: 122 additions & 0 deletions .oxlintrc.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,122 @@
{
"$schema": "./node_modules/oxlint/configuration_schema.json",
"plugins": ["import", "promise", "typescript", "unicorn"],
"ignorePatterns": ["**/build", "**/node_modules"],
"rules": {
"curly": "error",
"eqeqeq": [
"error",
"always",
{
"null": "ignore"
}
],
"func-style": ["error", "declaration"],
"no-unused-expressions": [
"error",
{
"allowShortCircuit": true,
"enforceForJSX": true
}
],
"no-unused-vars": [
"error",
{
"vars": "all",
"args": "none",
"ignoreRestSiblings": true,
"caughtErrors": "all",
"caughtErrorsIgnorePattern": "^_"
}
],
"no-useless-computed-key": "error",
"no-useless-concat": "error",
"no-useless-constructor": "error",
"no-useless-return": "error",
"no-void": [
"error",
{
"allowAsStatement": true
}
],
"prefer-promise-reject-errors": "error",
"prefer-rest-params": "error",
"prefer-spread": "error",
"import/consistent-type-specifier-style": ["error", "prefer-inline"],
"import/default": "error",
"import/namespace": "error",
"import/no-cycle": [
"error",
{
"maxDepth": 3,
"disableScc": true
}
],
"import/no-duplicates": "error",
"import/no-named-as-default": "error",
"import/no-named-as-default-member": "error",
"import/no-self-import": "error",
"promise/always-return": "error",
"promise/no-callback-in-promise": "error",
"typescript/await-thenable": "error",
"typescript/ban-ts-comment": [
"error",
{
"minimumDescriptionLength": 3,
"ts-check": false,
"ts-expect-error": "allow-with-description",
"ts-ignore": true,
"ts-nocheck": true
}
],
"typescript/consistent-type-imports": [
"error",
{
"fixStyle": "inline-type-imports"
}
],
"typescript/no-confusing-non-null-assertion": "error",
"typescript/no-extra-non-null-assertion": "error",
"typescript/no-misused-promises": [
"error",
{
"checksVoidReturn": false
}
],
"typescript/no-restricted-types": "error",
"typescript/no-unnecessary-boolean-literal-compare": "error",
"typescript/no-unnecessary-type-arguments": "error",
"typescript/no-unnecessary-type-assertion": "error",
"typescript/no-unnecessary-type-constraint": "error",
"typescript/prefer-includes": "error",
"typescript/prefer-nullish-coalescing": "error",
"typescript/prefer-readonly": "error",
"typescript/return-await": ["error", "error-handling-correctness-only"],
"typescript/unbound-method": "off",
"unicorn/consistent-date-clone": "error",
"unicorn/consistent-empty-array-spread": "error",
"unicorn/consistent-existence-index-check": "error",
"unicorn/error-message": "error",
"unicorn/no-anonymous-default-export": "error",
"unicorn/no-immediate-mutation": "error",
"unicorn/no-length-as-slice-end": "error",
"unicorn/no-object-as-default-parameter": "error",
"unicorn/no-unnecessary-array-splice-count": "error",
"unicorn/no-useless-collection-argument": "error",
"unicorn/numeric-separators-style": "error",
"unicorn/prefer-array-find": "error",
"unicorn/prefer-array-flat": "error",
"unicorn/prefer-array-flat-map": "error",
"unicorn/prefer-array-some": "error",
"unicorn/prefer-date-now": "error",
"unicorn/prefer-includes": "error",
"unicorn/prefer-keyboard-event-key": "error",
"unicorn/prefer-math-min-max": "error",
"unicorn/prefer-native-coercion-functions": "error",
"unicorn/prefer-node-protocol": "error",
"unicorn/prefer-number-properties": "error",
"unicorn/prefer-regexp-test": "error",
"unicorn/prefer-string-slice": "error",
"unicorn/require-number-to-fixed-digits-argument": "error"
}
}
11 changes: 3 additions & 8 deletions .vscode/launch.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,13 +7,8 @@
"request": "launch",
"runtimeExecutable": "${execPath}",
"preLaunchTask": "compile",
"args": [
"${workspaceFolder}",
"--extensionDevelopmentPath=${workspaceFolder}"
],
"outFiles": [
"${workspaceFolder}/build/**"
]
"args": ["${workspaceFolder}", "--extensionDevelopmentPath=${workspaceFolder}"],
"outFiles": ["${workspaceFolder}/build/**"]
}
]
}
}
2 changes: 1 addition & 1 deletion .vscode/tasks.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,4 +8,4 @@
"group": "build"
}
]
}
}
2 changes: 1 addition & 1 deletion LICENSE.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,4 +18,4 @@ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.
SOFTWARE.
27 changes: 15 additions & 12 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -28,36 +28,39 @@ and performing actions related to the chosen package inside the built-in editor

## ⚡️ Features

* Search through the packages registered in the React Native Directory.
* Narrow down the results by using filter tokens, such as `:ios`, `:newArchitecture`, or `:hasTypes`.
* Valid tokens are a subset of all possible API query options, and the values can be seen [in this file](/src/utils.ts#L33-L55).
* Install the selected packages in the current workspace using your preferred package manager.
* Dive deep into the stats and analysis with the provided metadata and links.
- Search through the packages registered in the React Native Directory.
- Narrow down the results by using filter tokens, such as `:ios`, `:newArchitecture`, or `:hasTypes`.
- Valid tokens are a subset of all possible API query options, and the values can be seen [in this file](/src/utils.ts#L33-L55).
- Install the selected packages in the current workspace using your preferred package manager.
- Dive deep into the stats and analysis with the provided metadata and links.

## 📦 Installation

#### VS Marketplace

1. Go to [VS Marketplace](https://marketplace.visualstudio.com/items?itemName=react-native-directory.vscode-react-native-directory).
1. Click on the **"Install"** button.

#### Open VSX Registry

1. Go to [Open VSX Registry](https://open-vsx.org/extension/react-native-directory/vscode-react-native-directory).
1. Click on the **"Download"** button
1. In VS Code:
* Navigate to the **"Extensions"** pane (<kbd>Ctrl/Cmd+Shift+X</kbd>).
* Click **"More"** button (three dots in the right corner of header) and select **"Install from VSIX"**.
* Select the VSIX file downloaded earlier in the process.
- Navigate to the **"Extensions"** pane (<kbd>Ctrl/Cmd+Shift+X</kbd>).
- Click **"More"** button (three dots in the right corner of header) and select **"Install from VSIX"**.
- Select the VSIX file downloaded earlier in the process.

## 📝 Contributing

1. Make sure you have [Bun](https://bun.sh/docs/installation) installed.
1. Checkout the repository locally.
1. Run the following commands to install dependencies and compile source:

```sh
bun install
```

1. In VS Code:
* Open folder containing the extension repository.
* Navigate to the **"Run and Debug"** pane (<kbd>Ctrl/Cmd+Shift+D</kbd>).
* Select **"Run with extension"** launch task, and press **"Start Debugging"** button (<kbd>F5</kbd>).
- Open folder containing the extension repository.
- Navigate to the **"Run and Debug"** pane (<kbd>Ctrl/Cmd+Shift+D</kbd>).
- Select **"Run with extension"** launch task, and press **"Start Debugging"** button (<kbd>F5</kbd>).
Loading