Skip to content

Commit 39d3519

Browse files
committed
build(eslint-config): use custom tsconfig.lint.json
1 parent aace0fa commit 39d3519

File tree

20 files changed

+111
-36
lines changed

20 files changed

+111
-36
lines changed
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import { defineScTsConfig } from '@shiftcode/eslint-config-recommended'
22

33
export default defineScTsConfig({
4-
languageOptions: { parserOptions: { project: ['./tsconfig.json', './tsconfig.jest.json'] } },
4+
languageOptions: { parserOptions: { project: ['./tsconfig.lint.json'] } },
55
})

packages/branch-utilities/package.json

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -20,10 +20,8 @@
2020
"format:base": "prettier --config ../../.prettierrc.yml '{src,e2e,test}/**/*.ts'",
2121
"format:ci": "npm run format:base -- --check",
2222
"format:staged": "prettier --write --config ../../.prettierrc.yml",
23-
"lint": "npm run lint:src:fix",
24-
"lint:ci": "npm run lint:src",
25-
"lint:src": "eslint ./src",
26-
"lint:src:fix": "eslint ./src --cache --fix",
23+
"lint": "eslint --fix --cache ./src",
24+
"lint:ci": "eslint ./src",
2725
"lint:staged": "eslint --fix --cache",
2826
"prepublish": "node ../publish-helper/dist/prepare-dist.js",
2927
"test": "NODE_OPTIONS=\"--experimental-vm-modules --trace-warnings\" npx jest --config jest.config.js",
Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
{
2+
"extends": "../../tsconfig.json",
3+
"compilerOptions": {
4+
"baseUrl": "./",
5+
"types": ["jest", "node"]
6+
},
7+
"include": [
8+
"src/**/*.ts",
9+
"test/**/*.ts"
10+
],
11+
"exclude": []
12+
}
13+
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import { defineScTsConfig } from '@shiftcode/eslint-config-recommended'
22

33
export default defineScTsConfig({
4-
languageOptions: { parserOptions: { project: ['./tsconfig.json'] } },
4+
languageOptions: { parserOptions: { project: ['./tsconfig.lint.json'] } },
55
})

packages/eslint-config-recommended/package.json

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -26,10 +26,8 @@
2626
"format:base": "prettier --config ../../.prettierrc.yml '{src,e2e,test}/**/*.ts'",
2727
"format:ci": "npm run format:base -- --check",
2828
"format:staged": "prettier --write --config ../../.prettierrc.yml",
29-
"lint": "npm run lint:src:fix",
30-
"lint:ci": "npm run lint:src",
31-
"lint:src": "eslint ./src",
32-
"lint:src:fix": "eslint ./src --cache --fix",
29+
"lint": "eslint --fix --cache ./src",
30+
"lint:ci": "eslint ./src",
3331
"lint:staged": "eslint --fix --cache",
3432
"prepublish": "node ../publish-helper/dist/prepare-dist.js",
3533
"test": "echo 'Error: no test specificed'",
Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
{
2+
"extends": "../../tsconfig.json",
3+
"compilerOptions": {
4+
"baseUrl": "./",
5+
"types": ["jest", "node"],
6+
"paths": {
7+
"@shiftcode/eslint-plugin-rules": ["../eslint-plugin-rules/src/index.ts"]
8+
}
9+
},
10+
"include": [
11+
"src/**/*.ts",
12+
"test/**/*.ts"
13+
],
14+
"exclude": []
15+
}
16+
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import { defineScTsConfig } from '@shiftcode/eslint-config-recommended'
22

33
export default defineScTsConfig({
4-
languageOptions: { parserOptions: { project: ['./tsconfig.json', './tsconfig.jest.json'] } },
4+
languageOptions: { parserOptions: { project: ['./tsconfig.lint.json'] } },
55
})

packages/eslint-plugin-rules/package.json

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -21,10 +21,8 @@
2121
"format:base": "prettier --config ../../.prettierrc.yml '{src,e2e,test}/**/*.ts'",
2222
"format:ci": "npm run format:base -- --check",
2323
"format:staged": "prettier --write --config ../../.prettierrc.yml",
24-
"lint": "npm run lint:src:fix",
25-
"lint:ci": "npm run lint:src",
26-
"lint:src": "eslint ./src",
27-
"lint:src:fix": "eslint ./src --cache --fix",
24+
"lint": "eslint --fix --cache ./src",
25+
"lint:ci": "eslint ./src",
2826
"lint:staged": "eslint --fix --cache",
2927
"prepublish": "node ../publish-helper/dist/prepare-dist.js",
3028
"test": "jest",
Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
{
2+
"extends": "../../tsconfig.json",
3+
"compilerOptions": {
4+
"baseUrl": "./"
5+
},
6+
"types": ["jest", "node"],
7+
"include": [
8+
"src/**/*.ts",
9+
"test/**/*.ts"
10+
],
11+
"exclude": []
12+
}
13+

packages/logger/eslint.config.mjs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import { defineScTsConfig } from '@shiftcode/eslint-config-recommended'
22

33
export default defineScTsConfig({
4-
languageOptions: { parserOptions: { project: ['./tsconfig.json', './tsconfig.jest.json'] } },
4+
languageOptions: { parserOptions: { project: ['./tsconfig.lint.json'] } },
55
})

0 commit comments

Comments
 (0)