Skip to content

Instantly share code, notes, and snippets.

@enBonnet
Created July 20, 2019 13:25
Show Gist options
  • Save enBonnet/2677e54c5316c3e67db8cb363f21d11c to your computer and use it in GitHub Desktop.
Save enBonnet/2677e54c5316c3e67db8cb363f21d11c to your computer and use it in GitHub Desktop.
Nestjs Eslint config
module.exports = {
parser: '@typescript-eslint/parser',
extends: ['plugin:@typescript-eslint/recommended'],
parserOptions: {
ecmaVersion: 2018,
sourceType: 'module',
},
rules: {
'no-console': 'error',
'@typescript-eslint/indent': [2, 2],
'@typescript-eslint/no-parameter-properties': [
2,
{ allows: ['private readonly'] },
],
'@typescript-eslint/no-explicit-any': ['error', { ignoreRestArgs: false }],
},
};
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment