Skip to content

Commit aa95fb9

Browse files
Update config
1 parent 6e7e99c commit aa95fb9

6 files changed

Lines changed: 300 additions & 68 deletions

File tree

.oxfmtrc.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
{
22
"$schema": "./node_modules/oxfmt/configuration_schema.json",
3-
"printWidth": 80
3+
"sortPackageJson": false
44
}

.oxlintrc.json

Lines changed: 59 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"$schema": "./node_modules/oxlint/configuration_schema.json",
3-
"plugins": ["eslint","typescript", "unicorn", "import"],
3+
"plugins": ["eslint", "typescript", "unicorn", "oxc", "import"],
44
"ignorePatterns": [
55
".git/**",
66
"resources/playground/**",
@@ -14,9 +14,63 @@
1414
"**/node_modules/**"
1515
],
1616
"rules": {
17-
17+
"import/no-relative-packages": "error",
18+
"import/no-duplicates": "error",
19+
"unused-imports/no-unused-imports": "error",
20+
"@typescript-eslint/consistent-type-imports": "error",
21+
"@typescript-eslint/consistent-type-assertions": [
22+
"error",
23+
{
24+
"assertionStyle": "as"
25+
}
26+
],
27+
"@typescript-eslint/naming-convention": [
28+
"error",
29+
{
30+
"selector": ["objectLiteralProperty"],
31+
"format": ["camelCase"],
32+
"filter": {
33+
"regex": "[.]",
34+
"match": false
35+
}
36+
}
37+
],
38+
"@typescript-eslint/no-floating-promises": "error",
39+
"@typescript-eslint/no-explicit-any": "off",
40+
"@typescript-eslint/no-inferrable-types": "off",
41+
"@typescript-eslint/no-non-null-assertion": "off",
42+
"@typescript-eslint/no-unused-vars": [
43+
"error",
44+
{
45+
"argsIgnorePattern": "^_",
46+
"varsIgnorePattern": "^_",
47+
"caughtErrorsIgnorePattern": "^_",
48+
"ignoreRestSiblings": true
49+
}
50+
],
51+
"curly": "error",
52+
"eqeqeq": [
53+
"error",
54+
"always",
55+
{
56+
"null": "never"
57+
}
58+
],
59+
"no-constant-condition": [
60+
"error",
61+
{
62+
"checkLoops": false
63+
}
64+
],
65+
"no-restricted-syntax": [
66+
"error",
67+
"MemberExpression[object.property.name='constructor'][property.name='name']"
68+
],
69+
"no-throw-literal": "error",
70+
"semi": "off",
71+
"unicorn/prefer-module": "error",
72+
"mocha/no-pending-tests": "error",
73+
"mocha/no-exclusive-tests": "error"
1874
},
19-
"overrides": [
20-
21-
]
75+
"overrides": []
2276
}

.pre-commit-config.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -67,8 +67,8 @@ repos:
6767

6868
- repo: local
6969
hooks:
70-
- id: prettier
71-
name: prettier
70+
- id: oxfmt
71+
name: oxfmt
7272
types: [text]
7373
language: system
7474
entry: pnpm exec oxfmt

.prettierignore

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

package.json

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -38,10 +38,11 @@
3838
"@types/node": "^24.12.0",
3939
"esbuild": "^0.27.4",
4040
"oxfmt": "^0.16.0",
41+
"oxlint-tsgolint": "^0.17.1",
4142
"oxlint": "^1.15.0",
42-
"stylelint": "^17.5.0",
43-
"stylelint-config-standard": "^40.0.0",
4443
"stylelint-config-standard-scss": "^17.0.0",
44+
"stylelint-config-standard": "^40.0.0",
45+
"stylelint": "^17.5.0",
4546
"syncpack": "^14.2.1",
4647
"tsx": "^4.21.0",
4748
"typescript": "^5.9.3"

0 commit comments

Comments
 (0)