Skip to content

Commit b3b49fd

Browse files
committed
Updates to linting
1 parent 0de35ce commit b3b49fd

File tree

5 files changed

+30
-15
lines changed

5 files changed

+30
-15
lines changed

.eslintignore

-4
This file was deleted.

.eslintrc.js

+18-4
Original file line numberDiff line numberDiff line change
@@ -24,21 +24,35 @@ module.exports = {
2424
parserOptions: {
2525
ecmaVersion: 2020,
2626
sourceType: "module",
27-
project: ["./tsconfig.json"],
27+
project: ["./tsconfig.eslint.json"],
2828
tsconfigRootDir: __dirname
2929
},
3030
plugins: [
3131
"@typescript-eslint",
3232
"import",
33-
"jest",
33+
"jest"
3434
],
3535
ignorePatterns: [
36-
"node_modules"
36+
"dist",
37+
"node_modules",
38+
"example"
3739
],
3840
rules: {
41+
// TODO: Fix rule errors.
3942
"@typescript-eslint/explicit-module-boundary-types": "off",
4043
"@typescript-eslint/no-empty-function": "off",
4144
"@typescript-eslint/no-explicit-any": "off",
42-
"@typescript-eslint/no-inferrable-types": "off"
45+
"@typescript-eslint/no-for-in-array": "off",
46+
"@typescript-eslint/no-inferrable-types": "off",
47+
"@typescript-eslint/no-unused-vars": "off",
48+
"@typescript-eslint/no-unsafe-assignment": "off",
49+
"@typescript-eslint/no-unsafe-call": "off",
50+
"@typescript-eslint/no-unsafe-member-access": "off",
51+
"@typescript-eslint/no-unsafe-return": "off",
52+
"@typescript-eslint/no-var-requires": "off",
53+
"@typescript-eslint/restrict-plus-operands": "off",
54+
"@typescript-eslint/restrict-template-expressions": "off",
55+
"no-undef": "off",
56+
"no-var": "off"
4357
}
4458
};

package.json

+2-2
Original file line numberDiff line numberDiff line change
@@ -18,8 +18,8 @@
1818
"clean": "rimraf packages/*/dist examples/*/dist",
1919
"build": "lage build --scope @exceptionless/* --no-cache --verbose --no-deps",
2020
"build:watch": "lage run build:watch --scope @exceptionless/* --no-cache --verbose --no-deps",
21-
"lint": "eslint . --ext .js,.ts",
22-
"lint:fix": "eslint . --ext .js,.ts --fix",
21+
"lint": "eslint . --ext .ts",
22+
"lint:fix": "eslint . --ext .ts --fix",
2323
"test": "lage run test"
2424
},
2525
"workspaces": [

tsconfig.eslint.json

+7
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
{
2+
"extends": "./tsconfig.json",
3+
"include": [
4+
"**/src/**/*.ts",
5+
"**/test/**/*.ts",
6+
]
7+
}

tsconfig.json

+3-5
Original file line numberDiff line numberDiff line change
@@ -2,19 +2,17 @@
22
"compilerOptions": {
33
"declaration": true,
44
"declarationMap": true,
5-
"downlevelIteration": true,
65
"esModuleInterop": true,
76
"forceConsistentCasingInFileNames": true,
8-
"inlineSources": true,
9-
"importHelpers": true,
107
"lib": ["ES2020"],
118
"module": "ESNext",
129
"moduleResolution": "Node",
13-
"noImplicitReturns": true,
10+
"noImplicitAny": false,
11+
"noImplicitThis": false,
12+
"noImplicitReturns": false,
1413
"noUnusedLocals": false,
1514
"noUnusedParameters": false,
1615
"pretty": true,
17-
"resolveJsonModule": true,
1816
"skipLibCheck": true,
1917
"sourceMap": true,
2018
"strict": false,

0 commit comments

Comments
 (0)