module.exports = { parser: '@typescript-eslint/parser', parserOptions: { ecmaVersion: 2020, sourceType: 'module', }, env: { browser: true, node: true, es6: true, }, plugins: [ 'react', 'react-hooks', '@typescript-eslint/eslint-plugin', 'i18next', ], extends: ['eslint:recommended', 'plugin:i18next/recommended'], settings: { react: { version: 'detect', }, }, rules: { 'comma-dangle': ['error', 'always-multiline'], semi: ['error', 'always'], 'no-multiple-empty-lines': ['error', {max: 2}], 'no-trailing-spaces': ['error', {skipBlankLines: true}], quotes: ['error', 'single'], 'no-console': process.env.NODE_ENV === 'production' ? 'error' : 'off', 'no-debugger': process.env.NODE_ENV === 'production' ? 'error' : 'off', '@typescript-eslint/no-unused-vars': [ 'error', { vars: 'all', args: 'after-used', ignoreRestSiblings: false, argsIgnorePattern: '^_', }, ], 'react-hooks/rules-of-hooks': 'error', 'react-hooks/exhaustive-deps': 'warn', 'i18next/no-literal-string': 'off', }, };