123456789101112131415161718192021222324 |
- module.exports = {
- env: {
- commonjs: true,
- es2021: true,
- node: true,
- jest: true,
- },
- parserOptions: {
- ecmaVersion: 'latest',
- },
- parser: '@typescript-eslint/parser',
- extends: ['eslint:recommended'],
- rules: {
- curly: [1, 'all'],
- // allow paren-less arrow functions
- 'arrow-parens': 0,
- // allow async-await
- 'generator-star-spacing': 0,
- 'no-unused-vars': [0, { args: 'after-used', vars: 'local' }],
- 'no-constant-condition': 0,
- // allow debugger during development
- 'no-debugger': process.env.NODE_ENV === 'production' ? 2 : 0,
- },
- }
|