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.

0 commit comments

Comments
 (0)