Last active
May 10, 2022 03:01
-
-
Save DevRadhy/ce6a7fbcd5cfdc88b7c3d6a67342cad8 to your computer and use it in GitHub Desktop.
Configuração do ESLint
This file contains 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 = { | |
"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