Skip to content

Commit b94caea

Browse files
committed
chore(lint): fix ESLint not working on vite.config.ts and reset.d.ts
1 parent 772d9b9 commit b94caea

File tree

6 files changed

+47
-8
lines changed

6 files changed

+47
-8
lines changed

.eslintrc.cjs

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
module.exports = {
2+
root: true,
3+
extends: 'custom',
4+
parserOptions: {
5+
tsconfigRootDir: __dirname,
6+
project: ['tsconfig.json'],
7+
},
8+
overrides: [
9+
{
10+
files: ['reset.d.ts'],
11+
rules: {
12+
'import/no-extraneous-dependencies': 'off',
13+
},
14+
},
15+
],
16+
};

.eslintrc.json

Lines changed: 0 additions & 4 deletions
This file was deleted.

packages/browser-extension/.eslintrc.cjs

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,15 @@ module.exports = {
33
extends: 'custom',
44
parserOptions: {
55
tsconfigRootDir: __dirname,
6-
project: ['tsconfig.json'],
6+
project: 'tsconfig.json',
77
},
8+
overrides: [
9+
{
10+
files: ['vite.config.ts'],
11+
parserOptions: {
12+
tsconfigRootDir: __dirname,
13+
project: 'tsconfig.node.json',
14+
},
15+
},
16+
],
817
};

packages/embedding/.eslintrc.cjs

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,15 @@ module.exports = {
33
extends: 'custom',
44
parserOptions: {
55
tsconfigRootDir: __dirname,
6-
project: ['tsconfig.json'],
6+
project: 'tsconfig.json',
77
},
8+
overrides: [
9+
{
10+
files: ['vite.config.ts'],
11+
parserOptions: {
12+
tsconfigRootDir: __dirname,
13+
project: 'tsconfig.node.json',
14+
},
15+
},
16+
],
817
};

packages/eslint-config-custom/.eslintrc.cjs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ module.exports = {
2727
},
2828
parserOptions: {
2929
sourceType: 'script',
30-
project: './tsconfig.node.json',
30+
project: 'tsconfig.node.json',
3131
},
3232
rules: {
3333
'import/no-extraneous-dependencies': 'off',

packages/examples/.eslintrc.cjs

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,15 @@ module.exports = {
33
extends: 'custom',
44
parserOptions: {
55
tsconfigRootDir: __dirname,
6-
project: ['tsconfig.json'],
6+
project: 'tsconfig.json',
77
},
8+
overrides: [
9+
{
10+
files: ['vite.config.ts'],
11+
parserOptions: {
12+
tsconfigRootDir: __dirname,
13+
project: 'tsconfig.node.json',
14+
},
15+
},
16+
],
817
};

0 commit comments

Comments
 (0)