Skip to content

Commit 8269f5e

Browse files
authored
Replace ESLint and Prettier with oxlint and oxfmt (#2024)
* keep MultiStepForm step values in state, not a ref * replace ESLint and Prettier with oxlint and oxfmt * format codebase with oxfmt
1 parent 4112b22 commit 8269f5e

113 files changed

Lines changed: 2842 additions & 1568 deletions

File tree

Some content is hidden

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

‎.gitignore‎

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -51,8 +51,6 @@ typings/
5151
# Optional npm cache directory
5252
.npm
5353

54-
# Optional eslint cache
55-
.eslintcache
5654

5755
# Optional REPL history
5856
.node_repl_history

‎.lintstagedrc‎

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,7 @@
11
{
2-
"*.{js,jsx,ts,tsx}": ["prettier --write", "eslint --fix --no-warn-ignored"],
3-
"*.css": ["prettier --write"]
2+
"*.{js,jsx,mjs,cjs,ts,tsx,mts,cts}": [
3+
"oxfmt --no-error-on-unmatched-pattern",
4+
"oxlint --type-aware --fix"
5+
],
6+
"*.{css,md}": ["oxfmt --no-error-on-unmatched-pattern"]
47
}

‎.oxfmtrc.json‎

Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
1+
{
2+
"$schema": "./node_modules/oxfmt/configuration_schema.json",
3+
"arrowParens": "always",
4+
"printWidth": 100,
5+
"semi": true,
6+
"singleQuote": true,
7+
"trailingComma": "all",
8+
"sortPackageJson": false,
9+
"sortTailwindcss": {
10+
"stylesheet": "./src/lib/styles/globals.css",
11+
"functions": ["cx"]
12+
},
13+
"ignorePatterns": [
14+
"node_modules",
15+
"package.json",
16+
"pnpm-lock.yaml",
17+
"next-env.d.ts",
18+
".next",
19+
".github",
20+
"bin",
21+
"static",
22+
"cypress-coverage",
23+
"vitest-coverage",
24+
".storybook-dist",
25+
"**/*.snap",
26+
"**/*.mp4",
27+
"**/*.png",
28+
"**/*.jpeg",
29+
"**/*.jpg",
30+
"**/*.txt",
31+
"**/*.xml",
32+
"**/*.ico",
33+
"**/*.mdx"
34+
],
35+
"sortImports": {
36+
"groups": ["builtin", "external", "internal", "parent", "sibling", "index"],
37+
"newlinesBetween": false
38+
}
39+
}

0 commit comments

Comments
 (0)