Skip to content

Commit

Permalink
chore(): remove lint from lint-staged
Browse files Browse the repository at this point in the history
  • Loading branch information
kamilmysliwiec committed Jan 26, 2020
1 parent be9a272 commit 7309ba4
Show file tree
Hide file tree
Showing 164 changed files with 2,138 additions and 1,330 deletions.
1 change: 1 addition & 0 deletions .eslintignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
**/node_modules/**
24 changes: 24 additions & 0 deletions .eslintrc.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
module.exports = {
parser: '@typescript-eslint/parser',
parserOptions: {
project: 'tsconfig.json',
sourceType: 'module',
},
plugins: ['@typescript-eslint/eslint-plugin'],
extends: [
'plugin:@typescript-eslint/eslint-recommended',
'plugin:@typescript-eslint/recommended',
'prettier',
'prettier/@typescript-eslint',
],
root: true,
env: {
node: true,
},
rules: {
'@typescript-eslint/interface-name-prefix': 'off',
'@typescript-eslint/explicit-function-return-type': 'off',
'@typescript-eslint/no-explicit-any': 'off',
'@typescript-eslint/no-unused-vars': 'off',
},
};
13 changes: 13 additions & 0 deletions .eslintrc.spec.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
const baseConfig = require('./.eslintrc');

module.exports = {
...baseConfig,
parserOptions: {
project: 'tsconfig.spec.json',
sourceType: 'module',
},
rules: {
...baseConfig.rules,
'@typescript-eslint/no-empty-function': 'off',
},
};
54 changes: 0 additions & 54 deletions integration/graphql/tslint.json

This file was deleted.

1 change: 1 addition & 0 deletions integration/hello-world/e2e/middleware.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ class TestController {
}

@Get('tests/wildcard_nested')
// eslint-disable-next-line @typescript-eslint/camelcase
wildcard_nested() {
return RETURN_VALUE;
}
Expand Down
53 changes: 0 additions & 53 deletions integration/hello-world/tslint.json

This file was deleted.

2 changes: 0 additions & 2 deletions integration/hooks/src/enable-shutdown-hooks-main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,12 +12,10 @@ const SIGNAL_TO_LISTEN = process.argv[3];
class TestInjectable
implements OnApplicationShutdown, BeforeApplicationShutdown {
beforeApplicationShutdown(signal: string) {
// tslint:disable-next-line:no-console
console.log('beforeApplicationShutdown ' + signal);
}

onApplicationShutdown(signal: string) {
// tslint:disable-next-line:no-console
console.log('onApplicationShutdown ' + signal);
}
}
Expand Down
53 changes: 0 additions & 53 deletions integration/hooks/tslint.json

This file was deleted.

53 changes: 0 additions & 53 deletions integration/injector/tslint.json

This file was deleted.

1 change: 0 additions & 1 deletion integration/microservices/e2e/sum-mqtt.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,6 @@ describe('MQTT transport', () => {
.expect(200, '15');
});

// tslint:disable-next-line:only-arrow-functions
it(`/POST (concurrent)`, function() {
return request(server)
.post('/concurrent')
Expand Down
53 changes: 0 additions & 53 deletions integration/microservices/tslint.json

This file was deleted.

Loading

0 comments on commit 7309ba4

Please sign in to comment.