Skip to content

Instantly share code, notes, and snippets.

@MarceloHoffmeister
Created November 2, 2020 10:36
Show Gist options
  • Save MarceloHoffmeister/a40c2746488c4bc6718b834f629c66ab to your computer and use it in GitHub Desktop.
Save MarceloHoffmeister/a40c2746488c4bc6718b834f629c66ab to your computer and use it in GitHub Desktop.
JSON de configuração do ESLint
{
"env": {
"es6": true,
"node": true,
"jest": true
},
"extends": [
"standard",
"plugin:@typescript-eslint/recommended",
"prettier/@typescript-eslint",
"plugin:prettier/recommended"
],
"globals": {
"Atomics": "readonly",
"SharedArrayBuffer": "readonly"
},
"parser": "@typescript-eslint/parser",
"parserOptions": {
"ecmaVersion": 11,
"sourceType": "module"
},
"plugins": [
"@typescript-eslint",
"prettier",
"eslint-plugin-import-helpers"
],
"rules": {
"no-new": "off",
"no-prototype-builtins": "off",
"no-restricted-syntax": "off",
"max-classes-per-file": "off",
"@typescript-eslint/no-explicit-any": "off",
"no-console": "off",
"import/prefer-default-export": "off",
"@typescript-eslint/explicit-function-return-type": ["off"],
"@typescript-eslint/no-unused-vars": [
"error",
{
"argsIgnorePattern": "_"
}
],
"no-useless-constructor": "off",
"@typescript-eslint/naming-convention": [
"error",
{
"selector": "interface",
"format": ["PascalCase"],
"custom": {
"regex": "^I[A-Z]",
"match": true
}
}
],
"@typescript-eslint/explicit-module-boundary-types": ["warn", {
"allowArgumentsExplicitlyTypedAsAny": true
}],
"no-underscore-dangle": "off",
"@typescript-eslint/camelcase": "off",
"prettier/prettier": "error",
"class-methods-use-this": "off",
"import/extensions": [
"error",
"ignorePackages",
{
"ts": "never"
}
],
"import-helpers/order-imports": [
"warn",
{
"newlinesBetween": "always", // new line between groups
"groups": [
"module",
"/^@server\/shared/",
"/^@/",
["parent", "sibling", "index"]
],
"alphabetize": { "order": "asc", "ignoreCase": true }
}
]
},
"settings": {
"import/resolver": {
"typescript": {
"directory": "packages/server/*/tsconfig.json"
}
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment