react-native-ui-lib
Version:
[](https://travis-ci.org/wix/react-native-ui-lib) [](https://www.npmjs.com/package/react-native-ui-lib) [![NPM Down
61 lines (59 loc) • 2.3 kB
JavaScript
// const validColors = require('./src/style/colorsPalette').colorsPalette;
// const extraFixColorsMap = require('./src/style/colorsPalette').extraFixColorsMap;
// const assetsDepJson = require('./eslint-rules/tests/assets_deprecation.json');
// const deprecationsJson = require('./eslint-rules/tests/component_deprecation.json');
module.exports = {
'parser': 'babel-eslint',
'plugins': ['react-native', 'uilib'],
'extends': ['airbnb'],
'rules': {
'arrow-body-style': 'off',
'class-methods-use-this': 'off',
'consistent-return': 'off',
"comma-dangle": "off",
'global-require': 'off',
'jsx-quotes': 'off',
'max-len': [2, 130, 4, {'ignoreUrls': true}],
'no-nested-ternary': 'off',
'no-else-return': 'off',
'no-param-reassign': ['warn'],
'no-plusplus': 'off',
'no-return-assign': 'off',
'no-trailing-spaces': 'off',
'no-use-before-define': 'off',
'no-unneeded-ternary': 'off',
'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/no-did-mount-set-state": "warn",
'react/prefer-stateless-function': 'off',
// "react/prop-types": "warn",
'react/require-default-props': 'off',
'react/jsx-no-bind': ['warn', {
ignoreRefs: true,
allowArrowFunctions: false,
allowBind: false,
}],
'import/no-extraneous-dependencies': ['warn', {'devDependencies': true, 'optionalDependencies': false, 'peerDependencies': true}],
'import/prefer-default-export': 'off',
// 'uilib/assets-deprecation': ['error', {deprecations: assetsDepJson, source: '../../assets', dueDate: '2 November, Friday'}],
// 'uilib/component-deprecation': ['error', {deprecations: deprecationsJson, dueDate: 'Friday 21 December'}],
// 'uilib/no-direct-import': ['error', {origin: 'react-native-ui-lib', destination: 'some-other-source'}],
// 'uilib/no-hard-coded-color': ['error', validColors, extraFixColorsMap],
// 'uilib/no-hard-coded-font': 'error'
},
'env': {
'browser': true,
'node': true,
'jest': true
},
'settings': {
'import/resolver': {
'node': {
'extensions': ['.js', '.ios.js', '.android.js']
}
}
}
}