Skip to content

Commit c6e5271

Browse files
committed
chore: remove ESLint and Prettier configurations, update nx.json for oxlint integration
1 parent 13e8fca commit c6e5271

18 files changed

Lines changed: 1051 additions & 2260 deletions

File tree

‎.oxfmtrc.json‎

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
{
2+
"$schema": "./node_modules/oxfmt/configuration_schema.json",
3+
"printWidth": 140,
4+
"singleQuote": true,
5+
"trailingComma": "es5",
6+
"semi": true,
7+
"bracketSameLine": true,
8+
"useTabs": true,
9+
"endOfLine": "lf",
10+
"sortPackageJson": false,
11+
"ignorePatterns": ["/dist", "/coverage", "/.nx/cache", "/.nx/workspace-data", ".nx/self-healing"]
12+
}

‎.oxlintrc.json‎

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
{
2+
"$schema": "./node_modules/oxlint/configuration_schema.json",
3+
"plugins": ["typescript", "unicorn", "oxc"],
4+
"categories": {
5+
"correctness": "error"
6+
},
7+
"rules": {},
8+
"env": {
9+
"builtin": true
10+
},
11+
"jsPlugins": ["@nx/oxlint/boundaries-plugin"],
12+
"ignorePatterns": ["**/dist"],
13+
"overrides": [
14+
{
15+
"files": ["**/*.ts", "**/*.tsx", "**/*.js", "**/*.jsx"],
16+
"rules": {
17+
"@nx/enforce-module-boundaries": [
18+
"error",
19+
{
20+
"enforceBuildableLibDependency": true,
21+
"allow": [],
22+
"depConstraints": [
23+
{
24+
"sourceTag": "*",
25+
"onlyDependOnLibsWithTags": ["*"]
26+
}
27+
]
28+
}
29+
]
30+
}
31+
}
32+
]
33+
}

‎.prettierignore‎

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

‎.prettierrc‎

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

‎.vscode/extensions.json‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
{
2-
"recommendations": ["nrwl.angular-console", "esbenp.prettier-vscode", "ms-playwright.playwright"]
2+
"recommendations": ["nrwl.angular-console", "oxc.oxc-vscode", "ms-playwright.playwright"]
33
}

‎apps/react-kit-demo/.eslintrc.json‎

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

‎apps/react-kit-demo/.oxlintrc.json‎

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
{
2+
"extends": ["../../.oxlintrc.json"],
3+
"plugins": ["react", "jsx-a11y"],
4+
"rules": {
5+
"react/set-state-in-effect": "off",
6+
"jsx-a11y/no-autofocus": "off",
7+
"jsx-a11y/prefer-tag-over-role": "off"
8+
}
9+
}

‎apps/react-kit-demo/src/app/all-books/AllBooks.tsx‎

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,6 @@ export default function AllBooks() {
1010
const [loading, setLoading] = useState<boolean>(true);
1111

1212
useEffect(() => {
13-
setLoading(true);
1413
BookService.getAllBooks()
1514
.then((response) => {
1615
setData(response);
@@ -60,9 +59,7 @@ const columns: GridColDef[] = [
6059
field: 'id',
6160
headerName: 'ID',
6261
flex: 1,
63-
renderCell: (params: GridCellParams) => (
64-
<Link to={`/book/${params.row['id']}`}>{params.row['id']}</Link>
65-
),
62+
renderCell: (params: GridCellParams) => <Link to={`/book/${params.row['id']}`}>{params.row['id']}</Link>,
6663
},
6764
{ field: 'title', headerName: 'Title', flex: 2.5 },
6865
{ field: 'isbn', headerName: 'ISBN', flex: 2.5 },

‎eslint.config.mjs‎

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

‎nx.json‎

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -13,9 +13,9 @@
1313
"default",
1414
"!{projectRoot}/**/?(*.)+(spec|test).[jt]s?(x)?(.snap)",
1515
"!{projectRoot}/tsconfig.spec.json",
16-
"!{projectRoot}/.eslintrc.json",
17-
"!{projectRoot}/eslint.config.js",
18-
"!{projectRoot}/eslint.config.mjs"
16+
"!{projectRoot}/.oxlintrc.json",
17+
"!{projectRoot}/oxlint.config.js",
18+
"!{projectRoot}/oxlint.config.mts"
1919
],
2020
"sharedGlobals": []
2121
},
@@ -30,9 +30,9 @@
3030
}
3131
},
3232
{
33-
"plugin": "nx-oxlint",
33+
"plugin": "@nx/oxlint",
3434
"options": {
35-
"lintTargetName": "lint"
35+
"targetName": "lint"
3636
}
3737
},
3838
{
@@ -47,15 +47,15 @@
4747
"application": {
4848
"babel": true,
4949
"style": "scss",
50-
"linter": "eslint",
50+
"linter": "oxlint",
5151
"bundler": "vite"
5252
},
5353
"component": {
5454
"style": "scss"
5555
},
5656
"library": {
5757
"style": "scss",
58-
"linter": "eslint",
58+
"linter": "oxlint",
5959
"unitTestRunner": "vitest"
6060
}
6161
}

0 commit comments

Comments
 (0)