1
+ import js from '@eslint/js' ;
1
2
import globals from 'globals' ;
2
3
import typescriptEslint from '@typescript-eslint/eslint-plugin' ;
3
4
import typescriptParser from '@typescript-eslint/parser' ;
4
5
import unicorn from 'eslint-plugin-unicorn' ;
5
6
import importPlugin from 'eslint-plugin-import' ;
7
+ import prettierConfig from 'eslint-config-prettier/flat' ;
6
8
7
9
export default [
10
+ // TODO: enable these
11
+ // js.configs.recommended,
12
+ // typescriptEslint.configs.recommended,
13
+ // unicorn.configs.recommended,
14
+ // prettierConfig,
8
15
{
9
16
files : [ 'packages/neovim/bin/cli.js' , '**/*.ts' ] ,
10
17
ignores : [
11
18
'**/*.d.ts' ,
12
- 'packages/*/lib/**/*.js' ,
13
- 'packages/*/bin/**/*.js' ,
19
+ // TODO: these are probably broken because they don't end with "**"?
20
+ // irrelevant for now because --ignore-pattern is specified in the "lint" task directly.
21
+ 'packages/*/lib/' ,
22
+ 'packages/*/bin/' ,
14
23
'packages/neovim/scripts/' ,
15
- 'packages/integration-tests/__tests__/**' ,
16
- '__tests__/integration/rplugin/node/**' ,
17
- 'examples/rplugin/node/**' ,
18
- 'packages/example-plugin/**' ,
19
- 'packages/example-plugin-decorators/**' ,
24
+ 'packages/integration-tests/__tests__/' ,
25
+ 'examples/rplugin/node/' ,
26
+ 'packages/example-plugin/' ,
27
+ 'packages/example-plugin-decorators/' ,
20
28
] ,
21
29
languageOptions : {
22
30
parser : typescriptParser ,
@@ -36,6 +44,9 @@ export default [
36
44
unicorn,
37
45
import : importPlugin ,
38
46
} ,
47
+ settings : {
48
+ 'import/resolver' : { node : { extensions : [ '.js' , '.jsx' , '.ts' ] } } ,
49
+ } ,
39
50
linterOptions : {
40
51
reportUnusedDisableDirectives : true ,
41
52
} ,
0 commit comments