const path = require('path') module.exports = { root: true, parser: '@typescript-eslint/parser', parserOptions: { project: path.resolve(__dirname, './tsconfig.json'), tsconfigRootDir: __dirname, ecmaVersion: 2018, sourceType: 'module' }, env: { browser: true, node: true, jest: true }, extends: [ 'standard', 'plugin:@typescript-eslint/recommended', 'plugin:react/recommended' ], globals: { __static: true }, plugins: ['html'], rules: { // allow paren-less arrow functions 'arrow-parens': 0, // allow async-await 'space-before-function-paren': 0, '@typescript-eslint/explicit-function-return-type': 1, // allow debugger during development 'no-debugger': process.env.NODE_ENV === 'production' ? 2 : 0 } }