-
Notifications
You must be signed in to change notification settings - Fork 0
/
typescript.js
25 lines (23 loc) · 910 Bytes
/
typescript.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
module.exports = {
extends: [
"plugin:import/typescript",
'plugin:@typescript-eslint/recommended',
'plugin:@typescript-eslint/recommended-requiring-type-checking',
'./.eslintrc.js',
'airbnb-typescript',
],
parser: '@typescript-eslint/parser',
plugins: ['@typescript-eslint'],
rules: {
'@typescript-eslint/no-explicit-any': 'off',
'no-unused-vars': 0,
'@typescript-eslint/no-unused-vars': [1, { ignoreRestSiblings: true }],
'no-redeclare': 'off', // serve para function overloading no TS uso aqui: https://github.com/typescript-eslint/typescript-eslint/blob/main/packages/eslint-plugin/docs/rules/no-redeclare.md
'@typescript-eslint/no-redeclare': [1, { ignoreDeclarationMerge: true }],
'@typescript-eslint/no-floating-promises': 'off',
'@typescript-eslint/no-use-before-define': 'off',
},
parserOptions: {
project: './tsconfig.json',
},
};