Skip to content

Instantly share code, notes, and snippets.

@markmur
Created January 16, 2020 12:36
Show Gist options
  • Save markmur/0e0b51da1c5a5f32fc33a4c8fe9e3207 to your computer and use it in GitHub Desktop.
Save markmur/0e0b51da1c5a5f32fc33a4c8fe9e3207 to your computer and use it in GitHub Desktop.
Eslint for typescript
module.exports = {
parser: '@typescript-eslint/parser',
parserOptions: {
project: './tsconfig.json',
},
extends: [
'plugin:@typescript-eslint/eslint-recommended',
'plugin:@typescript-eslint/recommended',
'prettier',
'prettier/@typescript-eslint',
],
plugins: ['@typescript-eslint'],
rules: {
camelcase: 'off',
'@typescript-eslint/camelcase': 'off',
'no-unused-vars': 'error',
},
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment