Last active
October 2, 2019 01:39
-
-
Save matheusnascgomes/10488cd33bce5ae1a32a4821962d8117 to your computer and use it in GitHub Desktop.
Eslint and nodemon config for Typescript + NodeJS a
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
module.exports = { | |
parser: '@typescript-eslint/parser', | |
env: { | |
es6: true, | |
node: true | |
}, | |
plugins: ['@typescript-eslint'], | |
extends: [ | |
'plugin:@typescript-eslint/recommended', | |
'prettier/@typescript-eslint', | |
'standard' | |
], | |
globals: { | |
Atomics: 'readonly', | |
SharedArrayBuffer: 'readonly' | |
}, | |
parserOptions: { | |
ecmaVersion: 2018, | |
sourceType: 'module' | |
}, | |
rules: {} | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"watch": ["src"], | |
"execMap": { | |
"ts": "sucrase-node src/server.ts" | |
}, | |
"ext": "ts" | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
yarn add -D typescript sucrase
Em scripts
yarn add -D nodemon
Criar arquivo nodemon.json
Configurando linter
Ajustar .eslintrc.js
yarn add -D prettier eslint-config-prettier eslint-plugin-prettier
https://www.youtube.com/watch?v=aTf8QTjw4RE&t=439s