43 lines
1.0 KiB
JavaScript
43 lines
1.0 KiB
JavaScript
// eslint-disable-next-line no-undef
|
|
module.exports = {
|
|
env: {
|
|
node: true,
|
|
es2021: true,
|
|
},
|
|
parser: '@typescript-eslint/parser',
|
|
extends: [
|
|
'eslint:recommended',
|
|
'plugin:@typescript-eslint/recommended',
|
|
'plugin:import/recommended',
|
|
'plugin:import/typescript',
|
|
'prettier',
|
|
],
|
|
settings: {
|
|
'import/resolver': { typescript: {} },
|
|
'import/external-module-folders': ['node_modules', '.yarn'],
|
|
},
|
|
parserOptions: {
|
|
project: './tsconfig.json',
|
|
ecmaVersion: 'latest',
|
|
sourceType: 'module',
|
|
},
|
|
rules: {
|
|
'no-underscore-dangle': 'off',
|
|
'require-await': 'warn',
|
|
eqeqeq: 'warn',
|
|
'import/extensions': 'off',
|
|
'import/order': [
|
|
'error',
|
|
{
|
|
named: true,
|
|
alphabetize: { order: 'asc' },
|
|
warnOnUnassignedImports: true,
|
|
},
|
|
],
|
|
'import/no-cycle': ['error', { ignoreExternal: true }],
|
|
'import/no-self-import': 'error',
|
|
'@typescript-eslint/no-non-null-assertion': 'off',
|
|
'@typescript-eslint/no-floating-promises': 'warn',
|
|
},
|
|
};
|