| 1 |
/* eslint-env node */ |
| 2 |
module.exports = { |
| 3 |
extends: [ |
| 4 |
'eslint:recommended', |
| 5 |
'plugin:@typescript-eslint/recommended-type-checked', |
| 6 |
'plugin:prettier/recommended', // needs to be last |
| 7 |
], |
| 8 |
plugins: ['@typescript-eslint'], |
| 9 |
/* First exclude everything, then re-include /src, then exclude tests */ |
| 10 |
ignorePatterns: ['/*', '!/src', '*.test.ts'], |
| 11 |
rules: { |
| 12 |
'no-unused-vars': 'off', |
| 13 |
'@typescript-eslint/no-unused-vars': ['error', { vars: 'all', args: 'none' }], |
| 14 |
'@typescript-eslint/ban-ts-comment': ['error', { 'ts-ignore': 'allow-with-description' }], |
| 15 |
'@typescript-eslint/unbound-method': 'off', |
| 16 |
'@typescript-eslint/no-floating-promises': 'off', |
| 17 |
'@typescript-eslint/no-redundant-type-constituents': 'off' |
| 18 |
}, |
| 19 |
parser: '@typescript-eslint/parser', |
| 20 |
parserOptions: { |
| 21 |
project: true, |
| 22 |
tsconfigRootDir: __dirname |
| 23 |
}, |
| 24 |
root: true |
| 25 |
}; |