payment-impo/.eslintrc.cjs

44 lines
1.1 KiB
JavaScript

module.exports = {
env: {
browser: true,
es2021: true,
},
extends: [
'eslint:recommended',
'plugin:react/recommended',
'plugin:@typescript-eslint/recommended',
'plugin:react/recommended',
'prettier',
],
overrides: [
{
env: {
node: true,
},
files: ['.eslintrc.{js,cjs}'],
},
],
parser: '@typescript-eslint/parser',
parserOptions: {
ecmaVersion: 'latest',
sourceType: 'module',
},
plugins: ['react-refresh'],
rules: {
'react/react-in-jsx-scope': 'off',
'prefer-const': 'off',
'@typescript-eslint/ban-ts-comment': 'off',
'react/prop-types': 'off',
quotes: ['warn', 'single', { allowTemplateLiterals: true }],
'no-duplicate-imports': 'error',
'@typescript-eslint/no-unused-vars': 'off',
'no-unused-vars': 'off',
'no-multi-spaces': 'warn',
'no-multiple-empty-lines': ['warn', { max: 1 }],
'react/no-unknown-property': 'off',
'react/display-name': 'off',
'no-case-declarations': 'off',
'@typescript-eslint/no-explicit-any': 'off',
},
};