Skip to content
New issue

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

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

Already on GitHub? Sign in to your account

chore(Lint): Use oxlint for linting #8534

Open
wants to merge 9 commits into
base: develop
Choose a base branch
from
Open
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
156 changes: 0 additions & 156 deletions .eslintrc.js

This file was deleted.

1 change: 0 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,6 @@ build/Release
node_modules/
**/node_modules/
.npm
.eslintcache
.node_repl_history
*.tgz
.yarn-integrity
Expand Down
71 changes: 71 additions & 0 deletions .oxlintrc.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,71 @@
{
"$schema": "./node_modules/oxlint/configuration_schema.json",
"plugins": [
"react",
"typescript"
],
"categories": {
"correctness": "off"
},
"env": {
"builtin": true
},
"rules": {
"curly": "error",
"default-case": "error",
"default-case-last": "error",
"eqeqeq": [
"error",
"smart"
],
"no-async-promise-executor": "off",
"no-case-declarations": "off",
"no-duplicate-imports": "off",
"no-prototype-builtins": "off",
"no-redeclare": "error",
"no-unused-vars": [
"error",
{
"ignoreRestSiblings": true
}
],
"no-var": "error",
"react/no-unescaped-entities": "off",
"react/jsx-key": [
"error",
{
"checkFragmentShorthand": true
}
],
"react/no-array-index-key": "error",
"react/self-closing-comp": "error",
"react-hooks/rules-of-hooks": "error",
"@typescript-eslint/array-type": [
"error",
{
"default": "array",
"readonly": "array"
}
],
"@typescript-eslint/ban-types": "off",
"@typescript-eslint/consistent-type-definitions": [
"error",
"interface"
],
"@typescript-eslint/no-empty-interface": [
"error",
{
"allowSingleExtends": true
}
],
"@typescript-eslint/no-namespace": [
"error",
{
"allowDeclarations": true
}
],
"@typescript-eslint/no-explicit-any": "off",
"react/no-find-dom-node": "off",
"no-empty-function": "off"
}
}
7 changes: 2 additions & 5 deletions .vscode/extensions.json
Original file line number Diff line number Diff line change
@@ -1,18 +1,15 @@
{
// See https://go.microsoft.com/fwlink/?LinkId=827846 to learn about workspace recommendations.
// Extension identifier format: ${publisher}.${name}. Example: vscode.csharp

// List of extensions which should be recommended for users of this workspace.
"recommendations": [
"yzhang.markdown-all-in-one",
"DavidAnson.vscode-markdownlint",
"dbaeumer.vscode-eslint",
"oxc.oxc-vscode",
"adrieankhisbe.vscode-ndjson",
"ms-playwright.playwright",
"bradlc.vscode-tailwindcss"
],
// List of extensions recommended by VS Code that should not be recommended for users of this workspace.
"unwantedRecommendations": [

]
"unwantedRecommendations": []
}
2 changes: 1 addition & 1 deletion .vscode/settings.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
"editor.formatOnSave": true,
"editor.formatOnSaveMode": "file",
"editor.codeActionsOnSave": {
"source.fixAll.eslint": "always",
"source.fixAll.oxc": "always",
"source.fixAll.ts": "always"
},
"editor.defaultFormatter": "vscode.typescript-language-features",
Expand Down
Loading
Loading