Skip to content

Commit 6974836

Browse files
antonisclaude
andcommitted
chore: Migrate sample apps and perf tests from ESLint to oxlint
Remove ESLint from all sample apps (react-native, react-native-macos, expo) and performance test apps (TestAppPlain, TestAppSentry). Replace with lightweight oxlint configs for samples that had lint scripts. Also clean up root package.json: - Remove es-iterator-helpers resolution (no longer needed) - Remove eslint-plugin-ft-flow resolution - Remove @typescript-eslint/typescript-estree minimatch resolutions This fully removes ESLint from the repository. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
1 parent f195136 commit 6974836

15 files changed

Lines changed: 98 additions & 2121 deletions

File tree

package.json

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,6 @@
5959
"See: https://github.com/appium/appium-chromedriver/pull/424"
6060
],
6161
"resolutions": {
62-
"es-iterator-helpers": "^1.2.1",
6362
"appium-chromedriver@npm:8.2.19/@xmldom/xmldom": "0.8.10",
6463
"@istanbuljs/load-nyc-config@npm:1.1.0/js-yaml": "^3.14.2",
6564
"@yarnpkg/parsers@npm:3.0.0-rc.46/js-yaml": "^3.14.2",
@@ -90,11 +89,6 @@
9089
"@nx/devkit@npm:19.6.4/minimatch": "^9.0.7",
9190
"@sentry/node@npm:10.31.0/minimatch": "^9.0.7",
9291
"@tufjs/models@npm:2.0.1/minimatch": "^9.0.7",
93-
"@typescript-eslint/typescript-estree@npm:6.21.0/minimatch": "^9.0.7",
94-
"@typescript-eslint/typescript-estree@npm:8.50.0/minimatch": "^9.0.7",
95-
"@typescript-eslint/typescript-estree@npm:8.54.0/minimatch": "^9.0.7",
96-
"@typescript-eslint/typescript-estree@npm:8.56.1/minimatch": "^9.0.7",
97-
"@typescript-eslint/typescript-estree@npm:8.57.0/minimatch": "^9.0.7",
9892
"editorconfig@npm:1.0.4/minimatch": "^9.0.7",
9993
"glob@npm:10.4.1/minimatch": "^9.0.7",
10094
"glob@npm:10.4.5/minimatch": "^9.0.7",
@@ -103,7 +97,6 @@
10397
"nx@npm:19.6.4/minimatch": "^9.0.7",
10498
"webdriverio@npm:8.40.5/minimatch": "^9.0.7",
10599
"glob@npm:13.0.0/minimatch": "^10.2.3",
106-
"eslint-plugin-ft-flow": "^3.0.0",
107100
"axios": "^1.13.5",
108101
"fast-xml-parser": "^5.5.7",
109102
"form-data": "4.0.5",

performance-tests/TestAppPlain/.eslintrc.js

Lines changed: 0 additions & 4 deletions
This file was deleted.

performance-tests/TestAppPlain/package.json

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,13 +19,11 @@
1919
"@react-native-community/cli-platform-android": "19.1.1",
2020
"@react-native-community/cli-platform-ios": "19.1.1",
2121
"@react-native/babel-preset": "0.80.2",
22-
"@react-native/eslint-config": "0.84.1",
2322
"@react-native/metro-config": "0.80.2",
2423
"@react-native/typescript-config": "0.80.2",
2524
"@types/jest": "^29.5.13",
2625
"@types/react": "^19.1.0",
2726
"@types/react-test-renderer": "^19.1.0",
28-
"eslint": "^9.0.0",
2927
"jest": "^29.6.3",
3028
"prettier": "2.8.8",
3129
"react-test-renderer": "19.1.0",

performance-tests/TestAppSentry/.eslintrc.js

Lines changed: 0 additions & 4 deletions
This file was deleted.

performance-tests/TestAppSentry/package.json

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,13 +21,11 @@
2121
"@react-native-community/cli-platform-android": "19.1.1",
2222
"@react-native-community/cli-platform-ios": "19.1.1",
2323
"@react-native/babel-preset": "0.80.2",
24-
"@react-native/eslint-config": "0.84.1",
2524
"@react-native/metro-config": "0.80.2",
2625
"@react-native/typescript-config": "0.80.2",
2726
"@types/jest": "^29.5.13",
2827
"@types/react": "^19.1.0",
2928
"@types/react-test-renderer": "^19.1.0",
30-
"eslint": "^9.0.0",
3129
"jest": "^29.6.3",
3230
"prettier": "2.8.8",
3331
"react-test-renderer": "19.1.0",

samples/expo/.eslintrc.js

Lines changed: 0 additions & 33 deletions
This file was deleted.

samples/expo/.oxlintrc.json

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
{
2+
"$schema": "../../packages/core/node_modules/oxlint/configuration_schema.json",
3+
"plugins": ["typescript", "react", "import"],
4+
"categories": {
5+
"correctness": "error"
6+
},
7+
"rules": {
8+
"no-shadow": "off",
9+
"typescript/no-unused-vars": [
10+
"error",
11+
{ "argsIgnorePattern": "^_", "caughtErrors": "none" }
12+
],
13+
"typescript/no-require-imports": "off",
14+
"typescript/no-explicit-any": "off",
15+
"import/no-unresolved": "off"
16+
},
17+
"ignorePatterns": ["node_modules/**", "android/**", "ios/**", ".expo/**"]
18+
}

samples/expo/package.json

Lines changed: 2 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,8 @@
1010
"android": "expo run:android",
1111
"ios": "expo run:ios",
1212
"ts:check": "tsc",
13-
"lint": "ESLINT_USE_FLAT_CONFIG=false npx eslint . --ext .js,.jsx,.ts,.tsx",
14-
"fix": "ESLINT_USE_FLAT_CONFIG=false npx eslint . --ext .js,.jsx,.ts,.tsx --fix && prettier --write \"**/*.{js,jsx,ts,tsx,json}\"",
13+
"lint": "npx oxlint",
14+
"fix": "npx oxlint --fix && prettier --write \"**/*.{js,jsx,ts,tsx,json}\"",
1515
"export": "expo export --source-maps --clear --platform all",
1616
"export:web": "expo export --source-maps --clear --platform web",
1717
"prebuild": "expo prebuild --clean --no-install",
@@ -47,16 +47,8 @@
4747
"devDependencies": {
4848
"@babel/core": "^7.26.0",
4949
"@babel/preset-env": "^7.26.0",
50-
"@react-native/eslint-config": "0.84.1",
5150
"@sentry/babel-plugin-component-annotate": "5.1.1",
5251
"@types/node": "20.10.4",
53-
"@typescript-eslint/eslint-plugin": "^8.50.0",
54-
"@typescript-eslint/parser": "^8.50.0",
55-
"eslint": "^9.0.0",
56-
"eslint-config-expo": "~55.0.0",
57-
"eslint-import-resolver-typescript": "^4.4.4",
58-
"eslint-plugin-import": "^2.32.0",
59-
"eslint-plugin-jest": "^29.5.0",
6052
"prettier": "2.8.8",
6153
"sentry-react-native-samples-utils": "workspace:^"
6254
},

samples/react-native-macos/.eslintrc.js

Lines changed: 0 additions & 19 deletions
This file was deleted.
Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
{
2+
"$schema": "../../packages/core/node_modules/oxlint/configuration_schema.json",
3+
"plugins": ["typescript", "react"],
4+
"categories": {
5+
"correctness": "error"
6+
},
7+
"rules": {
8+
"no-shadow": "off",
9+
"typescript/no-unused-vars": ["error", { "argsIgnorePattern": "^_", "caughtErrors": "none" }],
10+
"typescript/no-require-imports": "off",
11+
"typescript/no-explicit-any": "off"
12+
},
13+
"ignorePatterns": ["node_modules/**", "macos/**"]
14+
}

0 commit comments

Comments
 (0)