-
Notifications
You must be signed in to change notification settings - Fork 5
Expand file tree
/
Copy patheslint.config.js
More file actions
60 lines (59 loc) · 1.3 KB
/
Copy patheslint.config.js
File metadata and controls
60 lines (59 loc) · 1.3 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
import js from '@eslint/js';
import prettier from 'eslint-config-prettier/flat';
import { createTypeScriptImportResolver } from 'eslint-import-resolver-typescript';
import drizzle from 'eslint-plugin-drizzle';
import eslintPlugin from 'eslint-plugin-eslint-plugin';
import { flatConfigs } from 'eslint-plugin-import-x';
import json from 'eslint-plugin-json';
import * as mdx from 'eslint-plugin-mdx';
import eslintPrettier from 'eslint-plugin-prettier/recommended';
import { config, configs } from 'typescript-eslint';
export default config([
{
ignores: ['dist/', 'src/lib/contracts/']
},
js.configs.recommended,
configs.recommended,
flatConfigs.recommended,
flatConfigs.typescript,
json.configs.recommended,
mdx.configs.flat,
mdx.configs.flatCodeBlocks,
prettier,
eslintPrettier,
{
plugins: {
'eslint-plugin': eslintPlugin,
drizzle
},
settings: {
'import-x/resolver-next': [
createTypeScriptImportResolver({
alwaysTryTypes: true,
bun: true,
project: 'tsconfig.json'
})
]
},
languageOptions: {
parserOptions: {
sourceType: 'module',
ecmaVersion: 2020
}
}
},
{
files: ['**/*.ts', '**/*.js'],
rules: {
'import-x/order': [
'error',
{
alphabetize: {
order: 'asc'
},
'newlines-between': 'always'
}
]
}
}
]);