Skip to content

Commit 4f74d24

Browse files
committed
lint: fix
1 parent 911ac2b commit 4f74d24

File tree

1 file changed

+18
-7
lines changed

1 file changed

+18
-7
lines changed

eslint.config.mjs

Lines changed: 18 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,22 +1,30 @@
1+
import js from '@eslint/js';
12
import globals from 'globals';
23
import typescriptEslint from '@typescript-eslint/eslint-plugin';
34
import typescriptParser from '@typescript-eslint/parser';
45
import unicorn from 'eslint-plugin-unicorn';
56
import importPlugin from 'eslint-plugin-import';
7+
import prettierConfig from 'eslint-config-prettier/flat';
68

79
export 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

Comments
 (0)