1+ import js from '@eslint/js' ;
12import globals from 'globals' ;
23import typescriptEslint from '@typescript-eslint/eslint-plugin' ;
34import typescriptParser from '@typescript-eslint/parser' ;
45import unicorn from 'eslint-plugin-unicorn' ;
56import importPlugin from 'eslint-plugin-import' ;
7+ import prettierConfig from 'eslint-config-prettier/flat' ;
68
79export default [
10+ // TODO: enable these
11+ // js.configs.recommended,
12+ // typescriptEslint.configs.recommended,
13+ // unicorn.configs.recommended,
14+ // prettierConfig,
815 {
916 files : [ 'packages/neovim/bin/cli.js' , '**/*.ts' ] ,
1017 ignores : [
1118 '**/*.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/' ,
1423 '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/' ,
2028 ] ,
2129 languageOptions : {
2230 parser : typescriptParser ,
@@ -36,6 +44,9 @@ export default [
3644 unicorn,
3745 import : importPlugin ,
3846 } ,
47+ settings : {
48+ 'import/resolver' : { node : { extensions : [ '.js' , '.jsx' , '.ts' ] } } ,
49+ } ,
3950 linterOptions : {
4051 reportUnusedDisableDirectives : true ,
4152 } ,
0 commit comments