forked from sendbird/sendbird-uikit-react-native
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.eslintrc.js
36 lines (36 loc) · 1.12 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
module.exports = {
'env': {
'es2021': true,
'jest': true,
},
'extends': ['eslint:recommended', 'plugin:@typescript-eslint/recommended', 'prettier'],
'parser': '@typescript-eslint/parser',
'parserOptions': {
'ecmaVersion': 12,
'sourceType': 'module',
},
'plugins': ['@typescript-eslint'],
'rules': {
'linebreak-style': ['error', 'unix'],
'no-console': 'warn',
'curly': ['warn', 'multi-line'],
'semi': ['error', 'always'],
'quotes': ['error', 'single', { avoidEscape: true }],
'arrow-parens': ['error', 'always'],
'eol-last': ['warn', 'always'],
'multiline-ternary': ['off', 'always-multiline'], // turn off due to conflicts with prettier in jsx
'no-nested-ternary': 'error',
'no-empty': ['error', { 'allowEmptyCatch': true }],
'comma-dangle': ['warn', 'always-multiline'],
'@typescript-eslint/ban-types': 'off',
'@typescript-eslint/ban-ts-comment': 'off',
'@typescript-eslint/no-var-requires': 'off',
'@typescript-eslint/no-unused-vars': [
'error',
{
'argsIgnorePattern': '^_',
'varsIgnorePattern': '^_',
},
],
},
};