forked from muhammaddadu/react-native-ui-lib
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.eslintrc.js
47 lines (46 loc) · 1.65 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
40
41
42
43
44
45
46
47
// const validColors = require("./src/style/colorsPalette").colorsPalette;
// const extraFixColorsMap = require("./src/style/colorsPalette").extraFixColorsMap;
// const assetsDepJson = require('./eslint-rules/tests/assets_deprecation.json');
module.exports = {
"parser": "babel-eslint",
"plugins": ["react-native", "uilib"],
"extends": ["airbnb"],
"rules": {
"no-unneeded-ternary": "off",
"arrow-body-style": "off",
"class-methods-use-this": "off",
"consistent-return": "off",
"global-require": "off",
"import/prefer-default-export": "off",
"no-nested-ternary": "off",
"no-plusplus": "off",
"no-return-assign": "off",
"no-use-before-define": "off",
"max-len": [2, 130, 4, {"ignoreUrls": true}],
"object-curly-spacing": "off",
"react/forbid-prop-types": "off",
"react/jsx-filename-extension": "off",
"react/jsx-space-before-closing": "off",
"react/jsx-tag-spacing": "off",
"react/prefer-stateless-function": "off",
"react/require-default-props": "off",
"no-else-return": "off",
"no-trailing-spaces": "off",
"import/no-extraneous-dependencies": ["error", {"devDependencies": true, "optionalDependencies": false, "peerDependencies": true}],
// "uilib/no-hard-coded-color": ["error", validColors, extraFixColorsMap],
// "uilib/no-hard-coded-font": "warn"
// 'uilib/assets-deprecation': ['error', {deprecations: assetsDepJson, source: '../../assets', dueDate: '2 November, Friday'}]
},
"env": {
"browser": true,
"node": true,
"jest": true
},
"settings": {
"import/resolver": {
"node": {
"extensions": [".js", ".ios.js", ".android.js"]
}
}
}
}