Skip to content

Commit

Permalink
Updates to linting
Browse files Browse the repository at this point in the history
  • Loading branch information
niemyjski committed Jun 22, 2021
1 parent 0de35ce commit b3b49fd
Show file tree
Hide file tree
Showing 5 changed files with 30 additions and 15 deletions.
4 changes: 0 additions & 4 deletions .eslintignore

This file was deleted.

22 changes: 18 additions & 4 deletions .eslintrc.js
Original file line number Diff line number Diff line change
Expand Up @@ -24,21 +24,35 @@ module.exports = {
parserOptions: {
ecmaVersion: 2020,
sourceType: "module",
project: ["./tsconfig.json"],
project: ["./tsconfig.eslint.json"],
tsconfigRootDir: __dirname
},
plugins: [
"@typescript-eslint",
"import",
"jest",
"jest"
],
ignorePatterns: [
"node_modules"
"dist",
"node_modules",
"example"
],
rules: {
// TODO: Fix rule errors.
"@typescript-eslint/explicit-module-boundary-types": "off",
"@typescript-eslint/no-empty-function": "off",
"@typescript-eslint/no-explicit-any": "off",
"@typescript-eslint/no-inferrable-types": "off"
"@typescript-eslint/no-for-in-array": "off",
"@typescript-eslint/no-inferrable-types": "off",
"@typescript-eslint/no-unused-vars": "off",
"@typescript-eslint/no-unsafe-assignment": "off",
"@typescript-eslint/no-unsafe-call": "off",
"@typescript-eslint/no-unsafe-member-access": "off",
"@typescript-eslint/no-unsafe-return": "off",
"@typescript-eslint/no-var-requires": "off",
"@typescript-eslint/restrict-plus-operands": "off",
"@typescript-eslint/restrict-template-expressions": "off",
"no-undef": "off",
"no-var": "off"
}
};
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,8 @@
"clean": "rimraf packages/*/dist examples/*/dist",
"build": "lage build --scope @exceptionless/* --no-cache --verbose --no-deps",
"build:watch": "lage run build:watch --scope @exceptionless/* --no-cache --verbose --no-deps",
"lint": "eslint . --ext .js,.ts",
"lint:fix": "eslint . --ext .js,.ts --fix",
"lint": "eslint . --ext .ts",
"lint:fix": "eslint . --ext .ts --fix",
"test": "lage run test"
},
"workspaces": [
Expand Down
7 changes: 7 additions & 0 deletions tsconfig.eslint.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
{
"extends": "./tsconfig.json",
"include": [
"**/src/**/*.ts",
"**/test/**/*.ts",
]
}
8 changes: 3 additions & 5 deletions tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,19 +2,17 @@
"compilerOptions": {
"declaration": true,
"declarationMap": true,
"downlevelIteration": true,
"esModuleInterop": true,
"forceConsistentCasingInFileNames": true,
"inlineSources": true,
"importHelpers": true,
"lib": ["ES2020"],
"module": "ESNext",
"moduleResolution": "Node",
"noImplicitReturns": true,
"noImplicitAny": false,
"noImplicitThis": false,
"noImplicitReturns": false,
"noUnusedLocals": false,
"noUnusedParameters": false,
"pretty": true,
"resolveJsonModule": true,
"skipLibCheck": true,
"sourceMap": true,
"strict": false,
Expand Down

0 comments on commit b3b49fd

Please sign in to comment.