Skip to content
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
7 changes: 0 additions & 7 deletions .eslintignore

This file was deleted.

14 changes: 0 additions & 14 deletions .eslintrc.js

This file was deleted.

2 changes: 2 additions & 0 deletions .prettierrc → .oxfmtrc.json
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
{
"$schema": "./node_modules/oxfmt/configuration_schema.json",
"printWidth": 80,
"singleQuote": true,
"trailingComma": "all",
"bracketSpacing": true,
Expand Down
244 changes: 244 additions & 0 deletions .oxlintrc.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,244 @@
{
"$schema": "./node_modules/oxlint/configuration_schema.json",
"plugins": ["eslint", "typescript", "react", "jest", "node"],
"jsPlugins": [
{
"name": "react-native",
"specifier": "@react-native/eslint-plugin"
},
{
"name": "react-native-specs",
"specifier": "@react-native/eslint-plugin-specs"
},
{
"name": "testing-library",
"specifier": "eslint-plugin-testing-library"
},
{
"name": "eslint-comments",
"specifier": "eslint-plugin-eslint-comments"
},
{
"name": "ft-flow",
"specifier": "eslint-plugin-ft-flow"
}
],
"env": {
"es6": true
},
"globals": {
"__DEV__": "writable",
"__dirname": "readonly",
"__fbBatchedBridgeConfig": "readonly",
"AbortController": "readonly",
"Blob": "writable",
"alert": "readonly",
"cancelAnimationFrame": "readonly",
"cancelIdleCallback": "readonly",
"clearImmediate": "writable",
"clearInterval": "readonly",
"clearTimeout": "readonly",
"console": "readonly",
"document": "readonly",
"ErrorUtils": "readonly",
"escape": "readonly",
"Event": "readonly",
"EventTarget": "readonly",
"exports": "readonly",
"fetch": "readonly",
"File": "writable",
"FileReader": "readonly",
"FormData": "readonly",
"global": "readonly",
"Headers": "readonly",
"Intl": "readonly",
"Map": "writable",
"module": "readonly",
"navigator": "readonly",
"process": "readonly",
"Promise": "writable",
"requestAnimationFrame": "writable",
"requestIdleCallback": "writable",
"require": "readonly",
"Set": "writable",
"setImmediate": "writable",
"setInterval": "readonly",
"setTimeout": "readonly",
"queueMicrotask": "writable",
"URL": "readonly",
"URLSearchParams": "readonly",
"WebSocket": "writable",
"window": "readonly",
"XMLHttpRequest": "readonly"
},
"categories": {
"correctness": "warn"
},
"options": {
"reportUnusedDisableDirectives": "warn",
"respectEslintDisableDirectives": true
},
"ignorePatterns": [
"typings",
"node_modules",
"lib",
"example/android-bundle.js",
"example/ios-bundle.js"
],
"rules": {
"eslint/no-const-assign": "error",
"eslint/no-dupe-class-members": "error",
"eslint/no-dupe-keys": "error",
"eslint/no-unreachable": "error",
"eslint/no-eval": "error",
"eslint/no-new-func": "error",
"eslint/no-global-assign": "error",
"eslint/no-undef": "error",
"eslint/no-cond-assign": "warn",
"eslint/no-control-regex": "warn",
"eslint/no-debugger": "warn",
"eslint/no-ex-assign": "warn",
"eslint/no-extra-boolean-cast": "warn",
"eslint/no-func-assign": "warn",
"eslint/no-invalid-regexp": "warn",
"eslint/no-obj-calls": "warn",
"eslint/no-regex-spaces": "warn",
"eslint/no-sparse-arrays": "warn",
"eslint/use-isnan": "warn",
"eslint/valid-typeof": "warn",
"eslint/eqeqeq": ["warn", "always", { "null": "ignore" }],
"eslint/no-alert": "warn",
"eslint/no-caller": "warn",
"eslint/no-div-regex": "warn",
"eslint/no-extend-native": "warn",
"eslint/no-extra-bind": "warn",
"eslint/no-fallthrough": "warn",
"eslint/no-implied-eval": "warn",
"eslint/no-labels": "warn",
"eslint/no-iterator": "warn",
"eslint/no-lone-blocks": "warn",
"eslint/no-new": "warn",
"eslint/no-new-wrappers": "warn",
"eslint/no-object-constructor": "warn",
"eslint/no-proto": "warn",
"eslint/no-return-assign": "warn",
"eslint/no-script-url": "warn",
"eslint/no-self-compare": "warn",
"eslint/no-sequences": "warn",
"eslint/no-useless-escape": "warn",
"eslint/no-void": "warn",
"eslint/no-with": "warn",
"eslint/radix": "warn",
"eslint/yoda": "warn",
"eslint/no-delete-var": "warn",
"eslint/no-label-var": "warn",
"eslint/no-shadow-restricted-names": "warn",
"eslint/no-array-constructor": "warn",
"eslint/no-empty-character-class": "warn",
"eslint/no-bitwise": "warn",
"node/handle-callback-err": "warn",
"node/no-mixed-requires": "warn",
"node/no-new-require": "warn",
"node/no-path-concat": "warn",
"eslint-comments/no-aggregating-enable": "warn",
"eslint-comments/no-unlimited-disable": "warn",
"eslint-comments/no-unused-disable": "warn",
"eslint-comments/no-unused-enable": "warn",
"eslint/no-unused-vars": [
"warn",
{
"vars": "all",
"args": "none",
"caughtErrors": "none",
"ignoreRestSiblings": true
}
],
"eslint/no-shadow": "warn",
"typescript/no-shadow": "warn",
"react/rules-of-hooks": "error",
"react/exhaustive-deps": "error",
"react/jsx-no-comment-textnodes": "error",
"react/jsx-no-duplicate-props": "error",
"react/jsx-no-undef": "error",
"react/no-string-refs": "error",
"react/no-did-mount-set-state": "warn",
"react/no-did-update-set-state": "warn",
"react/no-unstable-nested-components": "warn",
"react/self-closing-comp": "warn",
"jest/no-disabled-tests": "warn",
"jest/no-focused-tests": "warn",
"jest/no-identical-title": "warn",
"jest/valid-expect": "warn",
"jest/valid-title": "off",
"jest/prefer-snapshot-hint": "off",
"react-native/no-deep-imports": "warn",
"react-native-specs/react-native-modules": "error"
},
"overrides": [
{
"files": ["**/*.{ts,tsx}"],
"rules": {
"eslint/no-undef": "off",
"eslint/no-unused-vars": "off",
"eslint/no-shadow": "off",
"typescript/no-unused-vars": [
"error",
{
"argsIgnorePattern": "^_",
"destructuredArrayIgnorePattern": "^_"
}
]
}
},
{
"files": ["**/*.js"],
"rules": {
"ft-flow/define-flow-type": "warn",
"ft-flow/use-flow-type": "warn"
}
},
{
"files": [
"**/__tests__/**/*.{js,jsx,ts,tsx}",
"**/*{spec,test}.{js,jsx,ts,tsx}"
],
"env": {
"jest": true
},
"rules": {
"testing-library/await-async-events": [
"error",
{
"eventModule": "userEvent"
}
],
"testing-library/await-async-queries": "error",
"testing-library/await-async-utils": "error",
"testing-library/no-await-sync-events": [
"error",
{
"eventModules": ["fire-event"]
}
],
"testing-library/no-await-sync-queries": "error",
"testing-library/no-container": "error",
"testing-library/no-debugging-utils": "warn",
"testing-library/no-dom-import": ["error", "react"],
"testing-library/no-global-regexp-flag-in-query": "error",
"testing-library/no-manual-cleanup": "error",
"testing-library/no-node-access": "error",
"testing-library/no-promise-in-fire-event": "error",
"testing-library/no-render-in-lifecycle": "error",
"testing-library/no-unnecessary-act": "error",
"testing-library/no-wait-for-multiple-assertions": "error",
"testing-library/no-wait-for-side-effects": "error",
"testing-library/no-wait-for-snapshot": "error",
"testing-library/prefer-find-by": "error",
"testing-library/prefer-presence-queries": "error",
"testing-library/prefer-query-by-disappearance": "error",
"testing-library/prefer-screen-queries": "error",
"testing-library/render-result-naming-convention": "error"
}
}
]
}
5 changes: 0 additions & 5 deletions docs/.eslintrc.js

This file was deleted.

3 changes: 1 addition & 2 deletions docs/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -25,9 +25,8 @@
},
"devDependencies": {
"@docusaurus/module-type-aliases": "3.10.2",
"@docusaurus/tsconfig": "3.10.2",
"@docusaurus/types": "3.10.2",
"typescript": "~5.9.3"
"typescript": "~7.0.2"
},
"browserslist": {
"production": [
Expand Down
14 changes: 12 additions & 2 deletions docs/tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,8 +1,18 @@
{
// This file is not used in compilation. It is here just for a nice editor experience.
"extends": "@docusaurus/tsconfig",
"compilerOptions": {
"baseUrl": "."
"allowJs": true,
"esModuleInterop": true,
"jsx": "preserve",
"target": "ES2022",
"lib": ["ES2022", "DOM"],
"moduleResolution": "bundler",
"module": "esnext",
"noEmit": true,
"paths": {
"@site/*": ["./*"]
},
"skipLibCheck": true
},
"exclude": [".docusaurus", "build"]
}
Loading
Loading