Skip to content

Commit 911ac2b

Browse files
committed
lint: ignore all .js files
Problem: eslint has lost its mind and makes it very difficult to lint some .js files but not others. Solution: ignore all .js files for now. TODO: output webpack'd js files to a dist/ directory so that we can lint non-generated .js files...
1 parent 891c9d5 commit 911ac2b

File tree

2 files changed

+6
-7
lines changed

2 files changed

+6
-7
lines changed

eslint.config.mjs

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -9,12 +9,11 @@ export default [
99
files: ['packages/neovim/bin/cli.js', '**/*.ts'],
1010
ignores: [
1111
'**/*.d.ts',
12-
'.eslintrc.js',
13-
'packages/*/lib/**',
14-
'packages/*/bin/**',
12+
'packages/*/lib/**/*.js',
13+
'packages/*/bin/**/*.js',
1514
'packages/neovim/scripts/',
16-
'packages/integration-tests/__tests__/',
17-
'__tests__/integration/rplugin/node/',
15+
'packages/integration-tests/__tests__/**',
16+
'__tests__/integration/rplugin/node/**',
1817
'examples/rplugin/node/**',
1918
'packages/example-plugin/**',
2019
'packages/example-plugin-decorators/**',

package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,8 +33,8 @@
3333
"test-staged": "npm run test-staged --workspaces --if-present -- --",
3434
"test-missing-apis": "npm run test-missing-apis --workspaces --if-present",
3535
"test-lint": "npm run lint",
36-
"lint": "prettier --check . && eslint --format=unix --ignore-pattern 'packages/example*/**' --ignore-pattern 'packages/neovim/lib/**/*.js' .",
37-
"fixlint": "prettier --write . && eslint --fix --format=unix --ignore-pattern 'packages/example*/**' --ignore-pattern 'packages/neovim/lib/**/*.js' ."
36+
"lint": "prettier --check . && eslint --format=unix --ignore-pattern 'packages/example*/**' --ignore-pattern '**/*.js' .",
37+
"fixlint": "prettier --write . && eslint --fix --format=unix --ignore-pattern 'packages/example*/**' --ignore-pattern '**/*.js' ."
3838
},
3939
"husky": {
4040
"hooks": {

0 commit comments

Comments
 (0)