Skip to content

Commit 0fec9ee

Browse files
committed
ci: simplify eslint configuration
1 parent 7b6bf61 commit 0fec9ee

File tree

174 files changed

+101
-1167
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

174 files changed

+101
-1167
lines changed

.eslintrc.js

Lines changed: 40 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,42 @@
11
module.exports = {
2-
...require("@tsed/eslint/node.js")
2+
parser: "@typescript-eslint/parser",
3+
extends: ["prettier", "plugin:@typescript-eslint/recommended"],
4+
plugins: ["@typescript-eslint", "workspaces"],
5+
parserOptions: {
6+
tsconfigRootDir: __dirname,
7+
project: ["./tsconfig.eslint.json"]
8+
},
9+
env: {
10+
node: true,
11+
es6: true
12+
},
13+
rules: {
14+
"@typescript-eslint/no-empty-function": "off",
15+
"@typescript-eslint/ban-ts-comment": "off",
16+
"@typescript-eslint/ban-types": "off",
17+
"@typescript-eslint/no-inferrable-types": "off",
18+
"@typescript-eslint/no-empty-interface": "off",
19+
"@typescript-eslint/no-namespace": "off",
20+
"@typescript-eslint/no-var-requires": "off",
21+
"@typescript-eslint/no-this-alias": "off",
22+
"@typescript-eslint/no-explicit-any": "off",
23+
"@typescript-eslint/explicit-module-boundary-types": "off",
24+
"@typescript-eslint/no-unused-vars": "off",
25+
"@typescript-eslint/no-non-null-assertion": "off",
26+
"require-await": "error",
27+
"no-return-await": "error",
28+
"no-case-declarations": "off",
29+
"no-empty": "off",
30+
"prefer-const": "off",
31+
"no-fallthrough": "off",
32+
"workspaces/no-absolute-imports": "error"
33+
},
34+
overrides: [
35+
{
36+
files: ["**/*.benchmark.ts", "**/test/**", "**/__mock__/**"],
37+
rules: {
38+
"workspaces/no-absolute-imports": "off"
39+
}
40+
}
41+
]
342
};

package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,8 +28,8 @@
2828
"configure": "monorepo ci configure",
2929
"clean": "monorepo clean workspace",
3030
"test": "yarn test:lint && yarn test:core && yarn test:specs && yarn test:platform && yarn test:integration && yarn test:graphql && yarn test:orm && yarn test:security && yarn test:formio && yarn test:third-parties",
31-
"test:lint": "lerna run lint",
32-
"test:lint:fix": "lerna run lint:fix",
31+
"test:lint": "eslint '**/*.{ts,js}'",
32+
"test:lint:fix": "eslint '**/*.{ts,js}' --fix",
3333
"test:core": "lerna run test --scope \"@tsed/{core,di,common,engines,normalize-path}\" --stream --concurrency 2",
3434
"test:platform": "lerna run test --ignore \"@tsed/platform-{express,koa}\" --scope \"@tsed/platform-*\" --stream --concurrency 2",
3535
"test:integration": "lerna run test --scope \"@tsed/platform-{express,koa}\" --stream --concurrency 2",

packages/core/.eslintignore

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

packages/core/.eslintrc.js

Lines changed: 0 additions & 1 deletion
This file was deleted.

packages/core/package.json

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -19,16 +19,13 @@
1919
"barrels": "yarn barrelsby --delete -d ./src -e \"\\.spec\\.ts\"",
2020
"build:browser": "webpack",
2121
"test": "cross-env NODE_ENV=test yarn jest --max-workers=2 && jest-coverage-thresholds-bumper",
22-
"build:ts": "tsc --build tsconfig.json && tsc --build tsconfig.esm.json",
23-
"lint": "eslint '**/*.{ts,js}'",
24-
"lint:fix": "eslint '**/*.{ts,js}' --fix"
22+
"build:ts": "tsc --build tsconfig.json && tsc --build tsconfig.esm.json"
2523
},
2624
"dependencies": {
2725
"reflect-metadata": "^0.1.13",
2826
"tslib": "2.6.1"
2927
},
3028
"devDependencies": {
31-
"@tsed/eslint": "workspace:*",
3229
"@tsed/typescript": "workspace:*",
3330
"barrelsby": "^2.8.1",
3431
"eslint": "^8.12.0",

packages/di/.eslintignore

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

packages/di/.eslintrc.js

Lines changed: 0 additions & 1 deletion
This file was deleted.

packages/di/package.json

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -19,16 +19,13 @@
1919
"build:browser": "webpack",
2020
"barrels": "yarn barrelsby --config .barrelsby.json",
2121
"test": "cross-env NODE_ENV=test yarn jest --max-workers=2 && jest-coverage-thresholds-bumper",
22-
"build:ts": "tsc --build tsconfig.json && tsc --build tsconfig.esm.json",
23-
"lint": "eslint '**/*.{ts,js}'",
24-
"lint:fix": "eslint '**/*.{ts,js}' --fix"
22+
"build:ts": "tsc --build tsconfig.json && tsc --build tsconfig.esm.json"
2523
},
2624
"dependencies": {
2725
"tslib": "2.6.2"
2826
},
2927
"devDependencies": {
3028
"@tsed/core": "workspace:*",
31-
"@tsed/eslint": "workspace:*",
3229
"@tsed/logger": ">=6.2.2",
3330
"@tsed/schema": "workspace:*",
3431
"@tsed/typescript": "workspace:*",

packages/engines/.eslintignore

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

packages/engines/.eslintrc.js

Lines changed: 0 additions & 1 deletion
This file was deleted.

packages/engines/package.json

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -16,9 +16,7 @@
1616
"build": "yarn barrels && yarn build:ts",
1717
"barrels": "yarn barrelsby --delete -d ./src -e \"\\.spec\\.ts\" -e \"__mock__\" -e \".benchmark.ts\"",
1818
"test": "cross-env NODE_ENV=test nyc mocha --timeout 15000",
19-
"build:ts": "tsc --build tsconfig.json && tsc --build tsconfig.esm.json",
20-
"lint": "eslint '**/*.{ts,js}'",
21-
"lint:fix": "eslint '**/*.{ts,js}' --fix"
19+
"build:ts": "tsc --build tsconfig.json && tsc --build tsconfig.esm.json"
2220
},
2321
"dependencies": {
2422
"filedirname": "^2.7.0",
@@ -30,7 +28,6 @@
3028
"@babel/plugin-transform-runtime": "7.23.2",
3129
"@babel/preset-env": "7.23.2",
3230
"@babel/preset-react": "7.22.15",
33-
"@tsed/eslint": "workspace:*",
3431
"@tsed/typescript": "workspace:*",
3532
"@types/fs-extra": "^11.0.3",
3633
"@types/semver": "^7.3.9",

packages/graphql/apollo/.eslintignore

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

packages/graphql/apollo/.eslintrc.js

Lines changed: 0 additions & 1 deletion
This file was deleted.

packages/graphql/apollo/package.json

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -16,9 +16,7 @@
1616
"build": "yarn barrels && yarn build:ts",
1717
"barrels": "yarn barrelsby --delete -d ./src -e \"\\.spec\\.ts\" -e \"__mock__\" -e \".benchmark.ts\"",
1818
"test": "cross-env NODE_ENV=test jest && jest-coverage-thresholds-bumper",
19-
"build:ts": "tsc --build tsconfig.json && tsc --build tsconfig.esm.json",
20-
"lint": "eslint '**/*.{ts,js}'",
21-
"lint:fix": "eslint '**/*.{ts,js}' --fix"
19+
"build:ts": "tsc --build tsconfig.json && tsc --build tsconfig.esm.json"
2220
},
2321
"dependencies": {
2422
"tslib": "2.6.1"
@@ -27,7 +25,6 @@
2725
"@tsed/common": "workspace:*",
2826
"@tsed/core": "workspace:*",
2927
"@tsed/di": "workspace:*",
30-
"@tsed/eslint": "workspace:*",
3128
"@tsed/logger": ">=6.2.2",
3229
"@tsed/typescript": "workspace:*",
3330
"@types/graphql": "14.5.0",

packages/graphql/graphql-ws/.eslintignore

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

packages/graphql/graphql-ws/.eslintrc.js

Lines changed: 0 additions & 1 deletion
This file was deleted.

packages/graphql/graphql-ws/package.json

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -15,9 +15,7 @@
1515
"scripts": {
1616
"build": "yarn barrels && yarn build:ts",
1717
"barrels": "yarn barrelsby --delete -d ./src -e \"\\.spec\\.ts\" -e \"__mock__\" -e \".benchmark.ts\"",
18-
"build:ts": "tsc --build tsconfig.json && tsc --build tsconfig.esm.json",
19-
"lint": "eslint '**/*.{ts,js}'",
20-
"lint:fix": "eslint '**/*.{ts,js}' --fix"
18+
"build:ts": "tsc --build tsconfig.json && tsc --build tsconfig.esm.json"
2119
},
2220
"dependencies": {
2321
"tslib": "2.6.1"
@@ -26,7 +24,6 @@
2624
"@tsed/common": "workspace:*",
2725
"@tsed/core": "workspace:*",
2826
"@tsed/di": "workspace:*",
29-
"@tsed/eslint": "workspace:*",
3027
"@tsed/logger": ">=6.2.2",
3128
"@tsed/typescript": "workspace:*",
3229
"barrelsby": "^2.8.1",

packages/graphql/typegraphql/.eslintignore

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

packages/graphql/typegraphql/.eslintrc.js

Lines changed: 0 additions & 1 deletion
This file was deleted.

packages/graphql/typegraphql/package.json

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -18,9 +18,7 @@
1818
"start:express": "ts-node test/app/index.express.ts",
1919
"start:koa": "ts-node test/app/index.koa.ts",
2020
"test": "cross-env NODE_ENV=test jest && jest-coverage-thresholds-bumper",
21-
"build:ts": "tsc --build tsconfig.json && tsc --build tsconfig.esm.json",
22-
"lint": "eslint '**/*.{ts,js}'",
23-
"lint:fix": "eslint '**/*.{ts,js}' --fix"
21+
"build:ts": "tsc --build tsconfig.json && tsc --build tsconfig.esm.json"
2422
},
2523
"dependencies": {
2624
"@tsed/apollo": "workspace:*",
@@ -29,7 +27,6 @@
2927
"devDependencies": {
3028
"@tsed/common": "workspace:*",
3129
"@tsed/core": "workspace:*",
32-
"@tsed/eslint": "workspace:*",
3330
"@tsed/typescript": "workspace:*",
3431
"@types/graphql": "^14.5.0",
3532
"barrelsby": "^2.8.1",

packages/orm/adapters-redis/.eslintignore

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

packages/orm/adapters-redis/.eslintrc.js

Lines changed: 0 additions & 1 deletion
This file was deleted.

packages/orm/adapters-redis/package.json

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -16,9 +16,7 @@
1616
"build": "yarn barrels && yarn build:ts",
1717
"barrels": "yarn barrelsby --delete -d ./src -e \"\\.spec\\.ts\" -e \"__mock__\" -e \".benchmark.ts\"",
1818
"test": "cross-env NODE_ENV=test yarn jest && jest-coverage-thresholds-bumper",
19-
"build:ts": "tsc --build tsconfig.json && tsc --build tsconfig.esm.json",
20-
"lint": "eslint '**/*.{ts,js}'",
21-
"lint:fix": "eslint '**/*.{ts,js}' --fix"
19+
"build:ts": "tsc --build tsconfig.json && tsc --build tsconfig.esm.json"
2220
},
2321
"dependencies": {
2422
"@tsed/adapters": "workspace:*",
@@ -27,7 +25,6 @@
2725
},
2826
"devDependencies": {
2927
"@tsed/core": "workspace:*",
30-
"@tsed/eslint": "workspace:*",
3128
"@tsed/typescript": "workspace:*",
3229
"barrelsby": "^2.8.1",
3330
"eslint": "^8.12.0",

packages/orm/adapters/.eslintignore

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

packages/orm/adapters/.eslintrc.js

Lines changed: 0 additions & 1 deletion
This file was deleted.

packages/orm/adapters/package.json

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -16,9 +16,7 @@
1616
"build": "yarn barrels && yarn build:ts",
1717
"barrels": "yarn barrelsby --delete -d ./src -e \"\\.spec\\.ts\" -e \"__mock__\" -e \".benchmark.ts\"",
1818
"test": "cross-env NODE_ENV=test yarn jest && jest-coverage-thresholds-bumper",
19-
"build:ts": "tsc --build tsconfig.json && tsc --build tsconfig.esm.json",
20-
"lint": "eslint '**/*.{ts,js}'",
21-
"lint:fix": "eslint '**/*.{ts,js}' --fix"
19+
"build:ts": "tsc --build tsconfig.json && tsc --build tsconfig.esm.json"
2220
},
2321
"dependencies": {
2422
"@types/lowdb": "1.0.11",
@@ -35,7 +33,6 @@
3533
"@tsed/common": "workspace:*",
3634
"@tsed/core": "workspace:*",
3735
"@tsed/di": "workspace:*",
38-
"@tsed/eslint": "workspace:*",
3936
"@tsed/json-mapper": "workspace:*",
4037
"@tsed/schema": "workspace:*",
4138
"@tsed/typescript": "workspace:*",

packages/orm/ioredis/.eslintignore

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

packages/orm/ioredis/.eslintrc.js

Lines changed: 0 additions & 1 deletion
This file was deleted.

packages/orm/ioredis/package.json

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -16,17 +16,14 @@
1616
"build": "yarn barrels && yarn build:ts",
1717
"barrels": "yarn barrelsby --delete -d ./src -e \"\\.spec\\.ts\" -e \"__mock__\" -e \".benchmark.ts\"",
1818
"test": "cross-env NODE_ENV=test yarn jest && jest-coverage-thresholds-bumper",
19-
"build:ts": "tsc --build tsconfig.json && tsc --build tsconfig.esm.json",
20-
"lint": "eslint '**/*.{ts,js}'",
21-
"lint:fix": "eslint '**/*.{ts,js}' --fix"
19+
"build:ts": "tsc --build tsconfig.json && tsc --build tsconfig.esm.json"
2220
},
2321
"dependencies": {
2422
"tslib": "2.6.1"
2523
},
2624
"devDependencies": {
2725
"@tsed/core": "workspace:*",
2826
"@tsed/di": "workspace:*",
29-
"@tsed/eslint": "workspace:*",
3027
"@tsed/typescript": "workspace:*",
3128
"@types/ioredis-mock": "^5.6.0",
3229
"barrelsby": "^2.8.1",

packages/orm/mikro-orm/.eslintignore

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

packages/orm/mikro-orm/.eslintrc.js

Lines changed: 0 additions & 1 deletion
This file was deleted.

0 commit comments

Comments
 (0)