2022-11-06 13:50:39 +01:00
|
|
|
module.exports = {
|
|
|
|
extends: ['eslint:recommended', 'plugin:@typescript-eslint/recommended'],
|
|
|
|
parser: '@typescript-eslint/parser',
|
|
|
|
plugins: ['@typescript-eslint', 'prettier'],
|
|
|
|
root: true,
|
|
|
|
rules: {
|
|
|
|
'prettier/prettier': 'warn',
|
|
|
|
'@typescript-eslint/explicit-module-boundary-types': 'error',
|
|
|
|
'prefer-arrow-callback': 'error',
|
2022-11-07 22:31:17 +01:00
|
|
|
'sort-imports': 'warn',
|
2022-11-06 13:50:39 +01:00
|
|
|
},
|
|
|
|
overrides: [
|
|
|
|
{
|
|
|
|
files: ['.eslintrc.js', 'jest.config.js', 'prettier.config.js'],
|
|
|
|
env: {
|
|
|
|
node: true,
|
|
|
|
browser: false,
|
|
|
|
},
|
|
|
|
rules: {
|
|
|
|
'@typescript-eslint/no-var-requires': 'off',
|
|
|
|
},
|
|
|
|
},
|
|
|
|
],
|
|
|
|
}
|