-
Notifications
You must be signed in to change notification settings - Fork 7
/
.eslintrc.js
39 lines (39 loc) · 1.22 KB
/
.eslintrc.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
module.exports = {
root: true,
extends: '@react-native',
parser: '@typescript-eslint/parser',
plugins: ['@typescript-eslint'],
overrides: [
{
files: ['*.ts', '*.tsx'],
rules: {
'no-nested-ternary': 'error',
'one-var': ['error', 'never'],
'react/jsx-no-literals': ['error'],
'react/jsx-no-bind': 'error',
'react-native/no-unused-styles': 'error',
'@typescript-eslint/no-use-before-define': 'off',
'@typescript-eslint/no-empty-function': 'off',
'@typescript-eslint/explicit-function-return-type': 'off',
'@typescript-eslint/no-shadow': ['error'],
'@typescript-eslint/ban-ts-comment': ['error', {
'ts-ignore': true,
}],
'no-shadow': 'off',
'no-undef': 'off',
semi: ['error', 'never'],
'max-len': [
'error',
{ code: 120, tabWidth: 2, ignoreStrings: true, ignoreUrls: true, ignoreTemplateLiterals: true },
],
'eslint-comments/no-unlimited-disable': 'error',
'eslint-comments/no-unused-disable': 'error',
},
},
{
'files': ['*.yaml', '*.yml'],
'plugins': ['yaml'],
'extends': ['plugin:yaml/recommended'],
},
],
};