Skip to content

Commit

Permalink
ci: fix eslint configuration
Browse files Browse the repository at this point in the history
  • Loading branch information
Romakita committed Dec 1, 2023
1 parent b1a30c7 commit bd056eb
Show file tree
Hide file tree
Showing 7 changed files with 20 additions and 12 deletions.
2 changes: 1 addition & 1 deletion packages/core/jest.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ module.exports = {
statements: 98.75,
branches: 94.67,
functions: 95.41,
lines: 98.41
lines: 98.75
}
}
};
4 changes: 2 additions & 2 deletions packages/di/jest.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,9 @@ module.exports = {
...require("@tsed/jest-config"),
coverageThreshold: {
global: {
statements: 98.81,
statements: 98.82,
branches: 96.55,
lines: 98.81,
lines: 98.82,
functions: 98.34
}
}
Expand Down
6 changes: 3 additions & 3 deletions packages/platform/common/jest.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,10 +9,10 @@ module.exports = {
},
coverageThreshold: {
global: {
statements: 98.05,
branches: 90.32,
statements: 98.24,
branches: 90.69,
functions: 97.08,
lines: 98.05
lines: 98.24
}
}
};
2 changes: 1 addition & 1 deletion packages/platform/platform-log-middleware/jest.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ module.exports = {
...require("@tsed/jest-config"),
coverageThreshold: {
global: {
branches: 92.59,
branches: 92.85,
functions: 100,
lines: 100,
statements: 100
Expand Down
6 changes: 3 additions & 3 deletions packages/specs/json-mapper/jest.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,10 @@ module.exports = {
roots: ["<rootDir>/src", "<rootDir>/test"],
coverageThreshold: {
global: {
statements: 99.53,
branches: 97.46,
statements: 99.56,
branches: 97.67,
functions: 100,
lines: 99.53
lines: 99.56
}
},
moduleNameMapper: {
Expand Down
4 changes: 2 additions & 2 deletions tools/eslint/node.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@ module.exports = {
extends: ["prettier", "plugin:@typescript-eslint/recommended"],
plugins: ["@typescript-eslint", "workspaces"],
parserOptions: {
ecmaVersion: 2018,
sourceType: "module"
tsconfigRootDir: __dirname + "/../..",
project: ["./tsconfig.eslint.json"]
},
env: {
node: true,
Expand Down
8 changes: 8 additions & 0 deletions tsconfig.eslint.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
{
"extends": "./tsconfig.json",
"compilerOptions": {
"noEmit": true
},
"include": ["**/*", ".eslintrc.js", ""],
"exclude": ["node_modules"]
}

0 comments on commit bd056eb

Please sign in to comment.