Skip to content

Instantly share code, notes, and snippets.

@sokna7
Last active November 1, 2020 18:41
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save sokna7/dcf1c6f1e7a030c745dfb22c8d60be62 to your computer and use it in GitHub Desktop.
Save sokna7/dcf1c6f1e7a030c745dfb22c8d60be62 to your computer and use it in GitHub Desktop.
node ts eslintrc example
module.exports = {
root: true,
env: {
node: true,
es6: true,
},
parser: '@typescript-eslint/parser',
parserOptions: {
sourceType: 'module',
},
extends: [
'eslint:recommended',
'plugin:@typescript-eslint/recommended',
'prettier/@typescript-eslint',
'prettier',
],
rules: {
'prettier/prettier': 'error',
},
plugins: ['@typescript-eslint', 'prettier'],
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment