Skip to content

Commit

Permalink
fix:lint
Browse files Browse the repository at this point in the history
  • Loading branch information
DanielDDHM committed Sep 1, 2022
1 parent 9010fa9 commit 9991a5c
Show file tree
Hide file tree
Showing 77 changed files with 1,083 additions and 1,350 deletions.
102 changes: 51 additions & 51 deletions .eslintrc
Original file line number Diff line number Diff line change
@@ -1,53 +1,53 @@
{
"env": {
"es2021": true,
"node": true,
"jest": true
},
"extends": [
"eslint:recommended",
"plugin:@typescript-eslint/recommended"
],
"parser": "@typescript-eslint/parser",
"parserOptions": {
"project": "./tsconfig.json",
"ecmaVersion": "latest"
},
"plugins": [
"@typescript-eslint"
],
"rules": {
"@typescript-eslint/no-explicit-any": "off",
"@typescript-eslint/no-namespace": "off",
"@typescript-eslint/no-non-null-assertion": "off",
"@typescript-eslint/no-non-null-asserted-optional-chain": "off",
"@typescript-eslint/no-unused-vars": [
"error",
{
"argsIgnorePattern": "^_"
}
],
"@typescript-eslint/no-empty-function": "off",
"@typescript-eslint/ban-types": [
"error",
{
"types": {
"{}": false,
"Function": false
}
}
],
"import/no-cycle": "off",
"consistent-return": "off",
"no-await-in-loop": "off",
"no-continue": "off",
"no-new": "off",
"no-console": "off",
"no-namespace": "off",
"no-empty-function": "off",
"no-empty": "off"
},
"ignorePatterns": [
"src/tests"
]
"env": {
"es2021": true,
"node": true,
"jest": true
},
"extends": [
"eslint:recommended",
"plugin:@typescript-eslint/recommended"
],
"parser": "@typescript-eslint/parser",
"parserOptions": {
"project": "./tsconfig.json",
"ecmaVersion": "latest"
},
"plugins": [
"@typescript-eslint"
],
"rules": {
"@typescript-eslint/no-explicit-any": "off",
"@typescript-eslint/no-namespace": "off",
"@typescript-eslint/no-non-null-assertion": "off",
"@typescript-eslint/no-non-null-asserted-optional-chain": "off",
"@typescript-eslint/no-unused-vars": [
"error",
{
"argsIgnorePattern": "^_"
}
],
"@typescript-eslint/no-empty-function": "off",
"@typescript-eslint/ban-types": [
"error",
{
"types": {
"{}": false,
"Function": false
}
}
],
"import/no-cycle": "off",
"consistent-return": "off",
"no-await-in-loop": "off",
"no-continue": "off",
"no-new": "off",
"no-console": "off",
"no-namespace": "off",
"no-empty-function": "off",
"no-empty": "off"
},
"ignorePatterns": [
"src/tests"
]
}
28 changes: 14 additions & 14 deletions jest.config.ts
Original file line number Diff line number Diff line change
@@ -1,15 +1,15 @@
module.exports = {
preset: 'ts-jest',
transform: {
'^.+\\.(ts|tsx)?$': 'ts-jest',
'^.+\\.(js|jsx)$': 'babel-jest',
},
collectCoverage: false,
collectCoverageFrom: ['<rootDir>/src/controllers/*.ts', '<rootDir>/src/services/**/*.ts'],
coverageDirectory: 'coverage',
coverageReporters: ['text-summary', 'lcov'],
modulePathIgnorePatterns: ["<rootDir>/build/"],
moduleNameMapper: {
"~/(.*)": "<rootDir>/src/$1"
},
}
preset: 'ts-jest',
transform: {
'^.+\\.(ts|tsx)?$': 'ts-jest',
'^.+\\.(js|jsx)$': 'babel-jest',
},
collectCoverage: false,
collectCoverageFrom: ['<rootDir>/src/controllers/*.ts', '<rootDir>/src/services/**/*.ts'],
coverageDirectory: 'coverage',
coverageReporters: ['text-summary', 'lcov'],
modulePathIgnorePatterns: ['<rootDir>/build/'],
moduleNameMapper: {
'~/(.*)': '<rootDir>/src/$1',
},
}
Loading

0 comments on commit 9991a5c

Please sign in to comment.