Skip to content

Commit 5575f08

Browse files
Merge pull request #77 from ChoTotOSS/feat/update-oxlint-rules
Feat/update oxlint rules
2 parents fbf795c + eb00b11 commit 5575f08

File tree

2 files changed

+26
-2
lines changed

2 files changed

+26
-2
lines changed

.changeset/icy-spoons-type.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
'@chotot/oxlint-config': patch
3+
---
4+
5+
update rules

packages/oxlint-config/src/next.json

Lines changed: 21 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,8 @@
44
"import",
55
"unicorn",
66
"nextjs",
7-
"jsx-a11y"
7+
"jsx-a11y",
8+
"import"
89
],
910
"ignorePatterns": [
1011
"node_modules/*",
@@ -190,7 +191,25 @@
190191
"react/void-dom-elements-no-children": "error",
191192
"react/rules-of-hooks": "error",
192193
"react/exhaustive-deps": "warn",
193-
194+
195+
196+
"import/export": "error",
197+
"import/no-named-as-default": "error",
198+
"import/no-named-as-default-member": "error",
199+
"import/no-mutable-exports": "error",
200+
"import/no-amd": "error",
201+
"import/first": "error",
202+
"import/no-duplicates": "error",
203+
"import/no-absolute-path": "error",
204+
"import/no-dynamic-require": "error",
205+
"import/no-webpack-loader-syntax": "error",
206+
"import/no-named-default": "error",
207+
"import/no-self-import": "error",
208+
"import/no-cycle": "off",
209+
"import/no-anonymous-default-export": "error",
210+
"import/default": "error",
211+
212+
194213
"oxlint-plugin-chotot/filepath-no-ads": "error",
195214
"oxlint-plugin-chotot/no-empty-catch": "error"
196215
}

0 commit comments

Comments
 (0)