Skip to content

Instantly share code, notes, and snippets.

@gersonmlb
Forked from dorfo-dev/.eslintrc.js
Created February 12, 2023 16:40
Show Gist options
  • Save gersonmlb/cd91409e9efe078452a9b15decd47dcc to your computer and use it in GitHub Desktop.
Save gersonmlb/cd91409e9efe078452a9b15decd47dcc to your computer and use it in GitHub Desktop.
Nestjs config eslint and prettier
module.exports = {
parser: '@typescript-eslint/parser',
parserOptions: {
project: 'tsconfig.json',
sourceType: 'module',
},
plugins: ['@typescript-eslint/eslint-plugin'],
extends: [
'plugin:@typescript-eslint/recommended',
'prettier/@typescript-eslint',
],
root: true,
env: {
node: true,
jest: true,
},
rules: {
'@typescript-eslint/interface-name-prefix': 'off',
'@typescript-eslint/explicit-function-return-type': 'off',
'@typescript-eslint/explicit-module-boundary-types': 'off',
'@typescript-eslint/no-explicit-any': 'off',
},
};
{
"semi": true,
"trailingComma": "all",
"singleQuote": false,
"printWidth": 180,
"tabWidth": 2,
"arrowParens": "avoid"
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment