Skip to content

Instantly share code, notes, and snippets.

@DevRadhy
Last active May 10, 2022 03:01
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save DevRadhy/ce6a7fbcd5cfdc88b7c3d6a67342cad8 to your computer and use it in GitHub Desktop.
Save DevRadhy/ce6a7fbcd5cfdc88b7c3d6a67342cad8 to your computer and use it in GitHub Desktop.
Configuração do ESLint
module.exports = {
"env": {
"es2021": true,
"node": true
},
"extends": [
"eslint:recommended"
],
"parser": "@typescript-eslint/parser",
"parserOptions": {
"ecmaVersion": 12,
"sourceType": "module"
},
"plugins": [
"@typescript-eslint"
],
"rules": {
"indent": ["error", 2],
"semi": ["error", "always"],
"arrow-parens": ["error", "always"],
"arrow-spacing": "error",
"no-duplicate-imports": "error",
"no-unused-vars": ["error", { "vars": "all", "args": "after-used", "varsIgnorePattern": "^_" }],
}
};
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment