-
Notifications
You must be signed in to change notification settings - Fork 32
/
.eslintrc-i18n.js
43 lines (41 loc) · 1.13 KB
/
.eslintrc-i18n.js
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
38
39
40
41
42
43
const { ignorePatterns } = require('./.eslintrc')
module.exports = {
root: true,
parser: '@typescript-eslint/parser',
parserOptions: {
ecmaVersion: 2021,
sourceType: 'module',
ecmaFeatures: {
jsx: true,
},
},
plugins: ['i18next'],
ignorePatterns: [
'pages/lifi/index.tsx',
'components/Maintenance/example/EcotoneForkUpgrade.tsx',
'pages/_app.tsx',
],
rules: {
// Enable the i18next rule
'i18next/no-literal-string': 'error',
// Disable unrelated rules
'@typescript-eslint/no-explicit-any': 'off',
'@typescript-eslint/explicit-module-boundary-types': 'off',
'@typescript-eslint/no-non-null-assertion': 'off',
'prefer-arrow/prefer-arrow-functions': 'off',
'import/order': 'off',
'prefer-const': 'off',
'jsdoc/newline-after-description': 'off',
'no-duplicate-imports': 'off',
eqeqeq: 'off',
'no-return-await': 'off',
'object-shorthand': 'off',
'prettier/prettier': 'off',
'no-redeclare': 'off',
radix: 'off',
'jsdoc/check-alignment': 'off',
'no-undef-init': 'off',
},
// Ignore all other plugins and extends
extends: [],
}