Skip to content

Commit 43558cd

Browse files
committed
Use tsconfig.eslint for ESLint + add build script
1 parent dc26756 commit 43558cd

3 files changed

Lines changed: 17 additions & 1 deletion

File tree

eslint.config.mjs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ export default [
3333
languageOptions: {
3434
parser: TsParser,
3535
parserOptions: {
36-
projectService: true,
36+
project: path.join(__dirname, 'tsconfig.eslint.json'),
3737
tsconfigRootDir: __dirname,
3838
sourceType: 'module',
3939
},

package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@
1313
"packages/*"
1414
],
1515
"scripts": {
16+
"build": "yarn workspaces foreach -At run build",
1617
"clean": "rimraf -g \"packages/**/dist\" \"packages/**/*.tsbuildinfo\"",
1718
"lint": "yarn workspaces foreach -At run build && yarn workspaces foreach -A run lint",
1819
"lint:fix": "yarn workspaces foreach -At run build && yarn workspaces foreach -A run lint --fix",

tsconfig.eslint.json

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
{
2+
"extends": "./tsconfig.json",
3+
"compilerOptions": {
4+
"noEmit": true,
5+
"baseUrl": ".",
6+
"paths": {
7+
"@hawk.so/utils": ["packages/utils/src/index.ts"]
8+
}
9+
},
10+
"include": [
11+
"packages/*/src/**/*",
12+
"packages/*/tests/**/*",
13+
"eslint.config.mjs"
14+
]
15+
}

0 commit comments

Comments
 (0)