forked from tari-project/wxtm-bridge-frontend
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy patheslint.config.mjs
More file actions
37 lines (35 loc) · 1.09 KB
/
eslint.config.mjs
File metadata and controls
37 lines (35 loc) · 1.09 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
import nextCoreWebVitals from 'eslint-config-next/core-web-vitals'
import nextTypescript from 'eslint-config-next/typescript'
import i18next from 'eslint-plugin-i18next'
const eslintConfig = [
...nextCoreWebVitals,
...nextTypescript,
{
plugins: {
i18next,
},
rules: {
'no-console': ['warn', { allow: ['info', 'warn', 'debug', 'error'] }],
'no-unused-vars': 'off', // base rule must be disabled
'@typescript-eslint/no-unused-vars': [
'warn',
{
argsIgnorePattern: '^_',
varsIgnorePattern: '^_',
caughtErrorsIgnorePattern: '^_',
},
],
'@typescript-eslint/no-explicit-any': 'warn',
'react/prop-types': 'off',
'react/jsx-uses-react': 'off',
'react/react-in-jsx-scope': 'off',
// DISABLED UNTIL APP IS REFACTORED TO USE TRANSLATIONS STRINGS
// 'i18next/no-literal-string': ['error', { markupOnly: true }],
'i18next/no-literal-string': 'off',
},
},
{
ignores: ['node_modules/**', '.next/**', 'out/**', 'build/**', 'next-env.d.ts'],
},
]
export default eslintConfig