Skip to content

Commit e6f85cf

Browse files
committed
Use Nx for linting and typechecking
1 parent 9ec7dd6 commit e6f85cf

File tree

3 files changed

+9
-6
lines changed

3 files changed

+9
-6
lines changed

package.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,9 @@
44
"license": "MPL-2.0",
55
"private": true,
66
"scripts": {
7-
"lint": "npm run lint --workspaces --if-present -- --max-warnings=0",
8-
"lint:fix": "npm run lint --workspaces --if-present -- --fix --max-warnings=0",
9-
"typecheck": "npm run typecheck --workspaces --if-present",
7+
"lint": "nx run-many -t lint --max-warnings=0",
8+
"lint:fix": "nx run-many -t lint --fix --max-warnings=0",
9+
"typecheck": "nx run-many -t typecheck",
1010
"postinstall": "git submodule update --init --recursive"
1111
},
1212
"devDependencies": {

packages/mobile-app/.eslintrc.js

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,6 @@ module.exports = {
33
extends: ["expo", "prettier"],
44
plugins: ["prettier"],
55
rules: {
6-
// This rule fails if @ironfish/ui hasn't been built yet, so we can disable it
7-
// specifically for that package.
8-
"import/no-unresolved": ["error", { ignore: ["^@ironfish/ui"] }],
96
"prettier/prettier": "error",
107
},
118
};

packages/mobile-app/project.json

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,12 @@
1616
},
1717
"ios": {
1818
"dependsOn": ["pod-sim"]
19+
},
20+
"lint": {
21+
"dependsOn": ["^build"]
22+
},
23+
"typecheck": {
24+
"dependsOn": ["^build"]
1925
}
2026
}
2127
}

0 commit comments

Comments
 (0)