Skip to content

Commit affb615

Browse files
committed
chore: migrate import sorting from ESLint to Oxfmt
1 parent 0d45765 commit affb615

5 files changed

Lines changed: 9 additions & 478 deletions

File tree

.oxfmtrc.json

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,10 @@
11
{
22
"$schema": "./node_modules/oxfmt/configuration_schema.json",
33
"printWidth": 80,
4+
"sortImports": {
5+
"order": "asc",
6+
"newlinesBetween": false
7+
},
48
"sortPackageJson": false,
59
"ignorePatterns": [
610
"/CHANGELOG.md",

eslint.config.js

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,12 @@
11
import eslint from "@eslint/js";
22
import eslintConfigPrettier from "eslint-config-prettier/flat";
3-
import eslintPluginImportX from "eslint-plugin-import-x";
43
import globals from "globals";
54
import tseslint from "typescript-eslint";
65

76
export default tseslint.config(
87
eslint.configs.recommended,
98
...tseslint.configs.recommendedTypeChecked,
109
{
11-
plugins: {
12-
"import-x": eslintPluginImportX,
13-
},
1410
languageOptions: {
1511
parserOptions: {
1612
sourceType: "module",
@@ -22,13 +18,6 @@ export default tseslint.config(
2218
},
2319
},
2420
rules: {
25-
"import-x/order": [
26-
"error",
27-
{
28-
alphabetize: { order: "asc" },
29-
"newlines-between": "never",
30-
},
31-
],
3221
"@typescript-eslint/restrict-template-expressions": "off",
3322
"@typescript-eslint/no-base-to-string": "off",
3423
"@typescript-eslint/no-unused-vars": [

0 commit comments

Comments
 (0)