Skip to content

Commit 7a40693

Browse files
chore(lwm): added oxlint, removed eslint wip
chore(lwm): update oxlint rules, fix lint errors chore(lwm): formatted JSON files with oxfmt - baseline chore(lwm): add changeset
1 parent b10c972 commit 7a40693

File tree

157 files changed

+1360146
-83795
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

157 files changed

+1360146
-83795
lines changed
Lines changed: 5 additions & 0 deletions

apps/ledger-live-mobile/.eslintignore

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

apps/ledger-live-mobile/.eslintrc.js

Lines changed: 0 additions & 187 deletions
This file was deleted.
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
{
2+
"printWidth": 100,
3+
"trailingComma": "all",
4+
"arrowParens": "avoid",
5+
"sortPackageJson": false
6+
}
Lines changed: 59 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,59 @@
1+
{
2+
"$schema": "./node_modules/oxlint/configuration_schema.json",
3+
"env": {
4+
"browser": true,
5+
"es6": true,
6+
"node": true
7+
},
8+
"globals": {
9+
"__DEV__": "readonly",
10+
"__REDUX_DEVTOOLS_EXTENSION__": "readonly"
11+
},
12+
"categories": {
13+
"correctness": "error",
14+
"suspicious": "warn",
15+
"pedantic": "off"
16+
},
17+
"plugins": ["eslint", "oxc", "unicorn", "typescript", "react", "jest"],
18+
"ignorePatterns": [
19+
"*.min.js",
20+
"node_modules",
21+
"src/locales",
22+
"generated",
23+
"scripts",
24+
"e2e/bridge",
25+
"index.d.ts"
26+
],
27+
"rules": {
28+
"eslint/no-unused-vars": "warn",
29+
"eslint/no-empty-pattern": "warn",
30+
"eslint/no-constant-binary-expression": "warn",
31+
"eslint/no-shadow": "off",
32+
"eslint/no-unused-expressions": "warn",
33+
"react/no-did-mount-set-state": "warn",
34+
"unicorn/no-useless-fallback-in-spread": "off",
35+
"unicorn/no-useless-spread": "off",
36+
"unicorn/no-new-array": "off",
37+
"unicorn/no-array-sort": "off",
38+
"jest/no-conditional-expect": "warn",
39+
"jest/expect-expect": "warn",
40+
"jest/require-to-throw-message": "warn",
41+
"jest/valid-title": "warn",
42+
"jest/no-disabled-tests": "warn",
43+
"react/jsx-key": "warn",
44+
"eslint/no-unsafe-optional-chaining": "off",
45+
"eslint/no-useless-rename": "warn",
46+
"oxc/const-comparisons": "warn"
47+
},
48+
"overrides": [
49+
{
50+
"files": ["**/*.test.{ts,tsx}", "**/__tests__/**", "e2e/**/*.{ts,tsx}"],
51+
"env": { "jest": true },
52+
"plugins": ["jest"]
53+
},
54+
{
55+
"files": ["src/mvvm/features/WalletSync/hooks/useFollowInstructionDrawer.ts"],
56+
"rules": { "react-hooks/exhaustive-deps": "off" }
57+
}
58+
]
59+
}

apps/ledger-live-mobile/.prettierignore

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

apps/ledger-live-mobile/e2e/.eslintrc.js

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

apps/ledger-live-mobile/e2e/bridge/start-server.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/* eslint-disable no-console */
2-
/*
2+
/*
33
44
This script will allow you to upload app.json userdata files into LLM
55

apps/ledger-live-mobile/package.json

Lines changed: 12 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -58,9 +58,10 @@
5858
"android:bundle-visualizer": "NODE_OPTIONS=--max-old-space-size=8192 react-native-bundle-visualizer --platform android --dev false",
5959
"mock-android": "pnpm android:mock && pnpm android:install",
6060
"staging-android": "pnpm android:staging && pnpm android:install",
61-
"prettier": "prettier --write \"src/**/*.{ts,tsx}\"",
62-
"lint": "eslint src e2e --ext .js,.json,.ts,.tsx --cache",
63-
"lint:fix": "pnpm lint --fix",
61+
"format": "oxfmt src e2e",
62+
"format:check": "oxfmt --check src e2e",
63+
"lint": "oxlint src e2e",
64+
"lint:fix": "oxlint src e2e --quiet && oxfmt src e2e",
6465
"typecheck": "NODE_OPTIONS=--max-old-space-size=8192 tsc --noEmit",
6566
"test:env": "node ./scripts/mobile-env-md.mjs",
6667
"test": "pnpm test:jest:coverage && pnpm test:env",
@@ -289,6 +290,8 @@
289290
"babel-plugin-transform-inline-environment-variables": "0.4.4",
290291
"detox": "20.46.0",
291292
"detox-allure2-adapter": "1.0.0-alpha.42",
293+
"oxfmt": "^0.36.0",
294+
"oxlint": "1.51.0",
292295
"eslint-import-resolver-typescript": "3.6.1",
293296
"eslint-plugin-detox": "1.0.0",
294297
"eslint-plugin-i18next": "6.0.3",
@@ -318,5 +321,11 @@
318321
"tslib": "2.6.2",
319322
"web-streams-polyfill": "4.2.0",
320323
"ws": "catalog:"
324+
},
325+
"optionalDependencies": {
326+
"@oxlint/binding-darwin-arm64": "1.51.0",
327+
"@oxlint/binding-darwin-x64": "1.51.0",
328+
"@oxlint/binding-linux-x64-gnu": "1.51.0",
329+
"@oxlint/binding-win32-x64-msvc": "1.51.0"
321330
}
322331
}

apps/ledger-live-mobile/src/animations/device/apex/dark/continue.json

Lines changed: 3879 additions & 1 deletion
Large diffs are not rendered by default.

0 commit comments

Comments
 (0)