Skip to content

Commit 81fdb22

Browse files
committed
update ESLint and TypeScript configurations to exclude vite.config.ts
1 parent 1063a09 commit 81fdb22

File tree

17 files changed

+22
-19
lines changed

17 files changed

+22
-19
lines changed

packages/apps/faucet/client/eslint.config.mjs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
// @ts-check
21
import eslint from '@eslint/js';
32
import globals from 'globals';
43
import eslintPluginPrettierRecommended from 'eslint-plugin-prettier/recommended';
@@ -12,7 +11,7 @@ const __dirname = path.dirname(__filename);
1211

1312
export default tseslint.config(
1413
{
15-
ignores: ['dist', 'node_modules'],
14+
ignores: ['dist', 'node_modules', 'vite.config.ts'],
1615
},
1716
eslint.configs.recommended,
1817
tseslint.configs.recommended,

packages/apps/faucet/client/tsconfig.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,5 +20,5 @@
2020
"baseUrl": "./",
2121
"types": ["node"]
2222
},
23-
"include": ["src", "vite.config.ts"]
23+
"include": ["src"]
2424
}

packages/apps/fortune/exchange-oracle/client/eslint.config.mjs

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,7 @@
11
import eslint from "@eslint/js";
22
import globals from "globals";
33
import tseslint from "typescript-eslint";
4-
// @ts-expect-error - package does not provide type definitions
54
import reactHooksPlugin from "eslint-plugin-react-hooks";
6-
// @ts-expect-error - package does not provide type definitions
75
import reactRefreshPlugin from "eslint-plugin-react-refresh";
86
import { fileURLToPath } from "node:url";
97
import path from "node:path";
@@ -14,7 +12,7 @@ const __dirname = path.dirname(__filename);
1412
/** @type {import('eslint').Linter.FlatConfig[]} */
1513
const config = tseslint.config(
1614
{
17-
ignores: ["dist", ".eslintrc.cjs"],
15+
ignores: ["dist", ".eslintrc.cjs", "vite.config.ts"],
1816
},
1917
eslint.configs.recommended,
2018
tseslint.configs.recommended,

packages/apps/fortune/exchange-oracle/client/tsconfig.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,5 +20,5 @@
2020
"baseUrl": ".",
2121
"types": ["node", "jest", "@testing-library/jest-dom"]
2222
},
23-
"include": ["src", "tests", "vite.config.ts"]
23+
"include": ["src", "tests"]
2424
}

packages/apps/fortune/exchange-oracle/server/eslint.config.js

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
// @ts-check
21
import eslint from '@eslint/js';
32
import globals from 'globals';
43
import eslintPluginPrettierRecommended from 'eslint-plugin-prettier/recommended';

packages/apps/fortune/recording-oracle/eslint.config.mjs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ import tseslint from 'typescript-eslint';
66

77
export default tseslint.config(
88
{
9-
ignores: ['dist', 'node_modules', 'jest.config.js'],
9+
ignores: ['dist', 'node_modules', 'jest.config.ts'],
1010
},
1111
eslint.configs.recommended,
1212
tseslint.configs.recommended,

packages/apps/fortune/recording-oracle/tsconfig.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,6 @@
2525
"@/*": ["src/*"]
2626
}
2727
},
28-
"include": ["./src", "./scripts", "./jest.config.ts"],
28+
"include": ["./src", "./scripts"],
2929
"exclude": ["node_modules", "dist", "test"]
3030
}

packages/apps/human-app/frontend/eslint.config.mjs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ import tseslint from 'typescript-eslint';
88

99
export default tseslint.config(
1010
{
11-
ignores: ['dist', '.eslintrc.cjs'],
11+
ignores: ['dist', '.eslintrc.cjs', 'vite.config.mjs'],
1212
},
1313
eslint.configs.recommended,
1414
tseslint.configs.recommended,

packages/apps/human-app/frontend/tsconfig.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,5 +25,5 @@
2525
"@/*": ["./src/*"]
2626
}
2727
},
28-
"include": ["src/**/*.ts", "src/**/*.tsx", "vite.config.mjs"]
28+
"include": ["src/**/*.ts", "src/**/*.tsx"]
2929
}

packages/apps/human-app/server/eslint.config.mjs

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,8 @@ import eslintPluginPrettierRecommended from 'eslint-plugin-prettier/recommended'
44
import jestPlugin from 'eslint-plugin-jest';
55
import tseslint from 'typescript-eslint';
66

7-
export default tseslint.config(
7+
/** @type {import('eslint').Linter.FlatConfig[]} */
8+
const config = tseslint.config(
89
{
910
ignores: ['dist', 'node_modules', 'jest.config.js'],
1011
},
@@ -47,3 +48,5 @@ export default tseslint.config(
4748
},
4849
},
4950
);
51+
52+
export default config;

0 commit comments

Comments
 (0)