module.exports = { env: { node: true, }, extends: ['airbnb-base', 'prettier'], parser: '@typescript-eslint/parser', parserOptions: { ecmaVersion: 9, }, plugins: ['import', 'promise'], rules: { 'require-await': 'error', 'no-use-before-define': 0, 'no-restricted-syntax': 0, 'no-await-in-loop': 0, 'prefer-destructuring': 'off', 'prefer-template': 'off', 'promise/always-return': 'error', 'promise/no-return-wrap': 'error', 'promise/param-names': 'error', 'promise/catch-or-return': 'error', 'promise/no-native': 'off', 'promise/no-nesting': 'warn', 'promise/no-promise-in-callback': 'warn', 'promise/no-callback-in-promise': 'warn', 'promise/avoid-new': 'warn', 'no-underscore-dangle': 0, }, settings: { 'import/resolver': { node: { paths: ['lib'], extensions: ['.js', '.ts'], }, }, }, };