2021-05-02 12:29:43 +00:00
|
|
|
module.exports = {
|
|
|
|
parser: '@typescript-eslint/parser',
|
|
|
|
plugins: ['@typescript-eslint', 'import'],
|
|
|
|
extends: ['airbnb-base', 'plugin:@typescript-eslint/recommended', 'prettier'],
|
|
|
|
rules: {
|
|
|
|
'no-console': 0,
|
|
|
|
'import/extensions': 0,
|
|
|
|
'no-use-before-define': 'off',
|
2021-11-21 21:36:48 +00:00
|
|
|
'no-shadow': 'off',
|
2021-05-02 12:29:43 +00:00
|
|
|
'@typescript-eslint/no-use-before-define': ['error'],
|
2021-11-21 21:36:48 +00:00
|
|
|
'@typescript-eslint/no-shadow': ['error'],
|
2021-12-15 11:12:19 +00:00
|
|
|
'default-case': 'off',
|
2022-01-14 00:41:53 +00:00
|
|
|
'consistent-return': 'off',
|
|
|
|
'@typescript-eslint/no-unsafe-return': ['error'],
|
|
|
|
'@typescript-eslint/switch-exhaustiveness-check': ['error'],
|
2021-05-02 12:29:43 +00:00
|
|
|
},
|
|
|
|
settings: {
|
|
|
|
'import/resolver': {
|
|
|
|
node: {
|
|
|
|
extensions: ['.js', '.jsx', '.ts', '.tsx'],
|
|
|
|
},
|
|
|
|
typescript: {},
|
|
|
|
},
|
|
|
|
},
|
|
|
|
env: {
|
|
|
|
browser: true,
|
|
|
|
},
|
|
|
|
ignorePatterns: ['OLD/*'],
|
|
|
|
};
|