Last active
January 17, 2022 19:19
-
-
Save DayvitSiqueira/08e502682375fa46a76bd824a0fd4b25 to your computer and use it in GitHub Desktop.
My .eslintrc.json
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
Show hidden characters
{ | |
"env": { | |
"es2020": true, | |
//"es2021": true, | |
"node": true, | |
"jest": true | |
}, | |
"extends": [ | |
"airbnb-base", | |
"plugin:@typescript-eslint/recommended", | |
"prettier", | |
"plugin:prettier/recommended" | |
], | |
"parser": "@typescript-eslint/parser", | |
"parserOptions": { | |
"ecmaVersion": "latest", | |
"sourceType": "module" | |
}, | |
"plugins": [ | |
"@typescript-eslint", | |
"eslint-plugin-import-helpers", | |
"prettier" | |
], | |
"rules": { | |
"prettier/prettier": "error", | |
"camelcase": "off", | |
"import/no-unresolved": "error", | |
"@typescript-eslint/naming-convention": [ | |
"error", | |
{ | |
"selector": "interface", | |
"format": [ | |
"PascalCase" | |
], | |
"custom": { | |
"regex": "^I[A-Z]", | |
"match": true | |
} | |
} | |
], | |
"class-methods-use-this": "off", | |
"import/prefer-default-export": "off", | |
"no-shadow": "off", | |
"no-console": "off", | |
"no-useless-constructor": "off", | |
"no-empty-function": "off", | |
"lines-between-class-members": "off", | |
"import/extensions": [ | |
"error", | |
"ignorePackages", | |
{ | |
"ts": "never" | |
} | |
], | |
"import-helpers/order-imports": [ | |
"warn", | |
{ | |
"newlinesBetween": "always", | |
"groups": [ | |
"module", | |
"/^@shared/", | |
[ | |
"parent", | |
"sibling", | |
"index" | |
] | |
], | |
"alphabetize": { | |
"order": "asc", | |
"ignoreCase": true | |
} | |
} | |
], | |
"import/no-extraneous-dependencies": [ | |
"error", | |
{ | |
"devDependencies": [ | |
"**/*.spec.js" | |
] | |
} | |
] | |
}, | |
"settings": { | |
"import/resolver": { | |
"typescript": {} | |
} | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment