Skip to content

Commit f9568c4

Browse files
committed
Updates
1 parent 22d431d commit f9568c4

File tree

8 files changed

+1908
-989
lines changed

8 files changed

+1908
-989
lines changed

eslint.config.mjs

Lines changed: 24 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,9 @@
11
import eslint from '@eslint/js'
2+
import { defineConfig } from 'eslint/config'
3+
import importPlugin from 'eslint-plugin-import'
24
import tseslint from 'typescript-eslint'
35

4-
export default tseslint.config(
6+
export default defineConfig(
57
{
68
ignores: [
79
'esm/**/*',
@@ -10,6 +12,7 @@ export default tseslint.config(
1012
'*.mjs',
1113
'example/*',
1214
'src/autoSql.js',
15+
'src/autoSql.ts',
1316
],
1417
},
1518
{
@@ -21,6 +24,7 @@ export default tseslint.config(
2124
},
2225
},
2326
eslint.configs.recommended,
27+
importPlugin.flatConfigs.recommended,
2428
...tseslint.configs.recommended,
2529
...tseslint.configs.stylisticTypeChecked,
2630
...tseslint.configs.strictTypeChecked,
@@ -37,6 +41,25 @@ export default tseslint.config(
3741
'@typescript-eslint/no-unsafe-argument': 0,
3842
'@typescript-eslint/restrict-plus-operands': 0,
3943
semi: ['error', 'never'],
44+
45+
'import/no-unresolved': 'off',
46+
'import/extensions': ['error', 'ignorePackages'],
47+
'import/order': [
48+
'error',
49+
{
50+
named: true,
51+
'newlines-between': 'always',
52+
alphabetize: {
53+
order: 'asc',
54+
},
55+
groups: [
56+
'builtin',
57+
['external', 'internal'],
58+
['parent', 'sibling', 'index', 'object'],
59+
'type',
60+
],
61+
},
62+
],
4063
},
4164
},
4265
)

package.json

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@
4141
"@typescript-eslint/eslint-plugin": "^8.4.0",
4242
"@typescript-eslint/parser": "^8.4.0",
4343
"@vitest/coverage-v8": "^3.0.3",
44-
"eslint": "^9.9.1",
44+
"eslint": "^9.39.1",
4545
"pegjs": "^0.10.0",
4646
"prettier": "^3.3.3",
4747
"rimraf": "^6.0.1",
@@ -59,5 +59,8 @@
5959
],
6060
"publishConfig": {
6161
"access": "public"
62+
},
63+
"dependencies": {
64+
"eslint-plugin-import": "^2.32.0"
6265
}
6366
}

0 commit comments

Comments
 (0)