Skip to content

Commit

Permalink
Merge pull request GeekyAnts#3251 from alexandrtovmach/refactor/linte…
Browse files Browse the repository at this point in the history
…r-warnings

refactor: Fixed linter warnings
  • Loading branch information
shivrajkumar authored Dec 24, 2020
2 parents e2cb77d + 4b57120 commit 2330b5c
Show file tree
Hide file tree
Showing 5 changed files with 10 additions and 4 deletions.
3 changes: 2 additions & 1 deletion .eslintrc.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,9 @@
"import/order": "off",
"func-names": "off",
"import/prefer-default-export": "off",
"no-console": ["error", { "allow": ["warn", "error"] }],
"no-prototype-builtins": "off",
"no-nested-ternary": "warn",
"no-nested-ternary": "off",
"no-underscore-dangle": "off",
"no-unused-expressions": "off",
"react/jsx-filename-extension": "off",
Expand Down
2 changes: 2 additions & 0 deletions src/basic/Picker.android.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,9 @@
/* eslint-disable react/prefer-es6-class */
import React, { Component } from 'react';
import createReactClass from 'create-react-class';

import { Picker } from '@react-native-community/picker';

import { connectStyle } from 'native-base-shoutem-theme';

import mapPropsToStyleNames from '../utils/mapPropsToStyleNames';
Expand Down
3 changes: 2 additions & 1 deletion src/basic/Picker.ios.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,11 @@ import React, { Component } from 'react';
import PropTypes from 'prop-types';
import createReactClass from 'create-react-class';
import { FlatList, Modal, View, ViewPropTypes } from 'react-native';
import { Picker } from '@react-native-community/picker';
import { connectStyle } from 'native-base-shoutem-theme';
import { find, get } from 'lodash';

import { Picker } from '@react-native-community/picker';

import computeProps from '../utils/computeProps';
import mapPropsToStyleNames from '../utils/mapPropsToStyleNames';

Expand Down
3 changes: 2 additions & 1 deletion src/basic/Picker.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,10 @@
/* eslint-disable react/prefer-es6-class */
import React, { Component } from 'react';
import createReactClass from 'create-react-class';
import { Picker } from '@react-native-community/picker';
import { connectStyle } from 'native-base-shoutem-theme';

import { Picker } from '@react-native-community/picker';

import mapPropsToStyleNames from '../utils/mapPropsToStyleNames';

export default class PickerNB extends Component {
Expand Down
3 changes: 2 additions & 1 deletion src/basic/PickerItem.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
import React, { Component } from 'react';
import { Picker } from '@react-native-community/picker';
import { connectStyle } from 'native-base-shoutem-theme';

import { Picker } from '@react-native-community/picker';

import mapPropsToStyleNames from '../utils/mapPropsToStyleNames';

class Item extends Component {
Expand Down

0 comments on commit 2330b5c

Please sign in to comment.