-
-
Notifications
You must be signed in to change notification settings - Fork 21
Expand file tree
/
Copy patheslint.config.js
More file actions
47 lines (42 loc) · 1006 Bytes
/
eslint.config.js
File metadata and controls
47 lines (42 loc) · 1006 Bytes
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
import neostandard from 'neostandard'
import importPlugin from 'eslint-plugin-import'
export default [
// — your neostandard base —
...neostandard({
// ts: true,
ignores: [
'build/**/*',
'example/**/*',
'cjs/**/*',
'esm/**/*',
'dist/**/*',
'**/*.ts',
'i18nextLocizeBackend.js',
'i18nextLocizeBackend.min.js'
],
env: ['mocha']
}),
{
rules: {
'n/no-callback-literal': 'off'
}
},
// — add import-plugin + import/no-unresolved —
{
// target all JS/TS files
files: ['**/*.{js,jsx,ts,tsx}'],
// register the import plugin
plugins: {
import: importPlugin
},
settings: {
'import/resolver': {
node: {
extensions: ['.js', '.jsx', '.ts', '.tsx'], // any extensions you use
moduleDirectory: ['node_modules'] // adjust if you alias
}
// If you use webpack or TypeScript paths, you can swap in those resolvers here
}
}
}
]