forked from react-native-elements/react-native-elements
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.eslintrc.js
38 lines (37 loc) · 1017 Bytes
/
.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
const OFF = 0;
const WARNING = 1;
const ERROR = 2;
module.exports = {
extends: ['airbnb', 'plugin:jest/recommended', 'prettier', 'prettier/react'],
env: {
es6: true,
node: true,
browser: true,
},
parser: 'babel-eslint',
plugins: ['jest', 'prettier', 'react-native'],
rules: {
'global-require': OFF,
'import/no-extraneous-dependencies': OFF,
'import/no-named-as-default': OFF,
'react/destructuring-assignment': OFF,
'react/sort-comp': OFF,
'react/jsx-filename-extension': [OFF, { extensions: ['.js'] }],
'react/forbid-prop-types': [ERROR, { forbid: ['any'] }],
'react/no-unescaped-entities': [Error, { forbid: ['>', '}'] }],
'react/require-default-props': WARNING,
'no-unused-expressions': OFF,
'no-use-before-define': OFF,
'prettier/prettier': [
'error',
{
semi: true,
singleQuote: true,
trailingComma: 'es5',
proseWrap: 'always',
tabWidth: 2,
printWidth: 80,
},
],
},
};