Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
25 changes: 25 additions & 0 deletions .eslintrc.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
module.exports = {
extends: 'airbnb',
parser: 'babel-eslint',
plugins: [
'react',
'jsx-a11y',
'import',
'react-native',
],
rules: {
"max-len": [1, { "code": 150 }],
'no-param-reassign': 0,
'no-underscore-dangle': 'off',
'no-unused-expressions': 0,
'react/forbid-prop-types': 1,
'react/jsx-filename-extension': [1, { extensions: ['.js', '.jsx'] }],
'react/jsx-props-no-spreading': 0,
'react/no-did-update-set-state': 0,
'react/prefer-default-export': 0,
'react/prefer-stateless-function': 0,
'react/require-default-props': 0,
'react/sort-comp': 1,
"react/static-property-placement": [1, "static public field"],
},
};
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
npm-debug.log
node_modules
.idea
19 changes: 16 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,9 @@
"test": "echo \"Error: no test specified\" && exit 1"
},
"peerDependencies": {
"react-native": ">=0.40.0",
"react": ">=15.0.0"
"prop-types": ">=15.6.0",
"react": ">=15.0.0",
"react-native": ">=0.40.0"
},
"repository": {
"type": "git",
Expand All @@ -34,5 +35,17 @@
"bugs": {
"url": "https://github.com/hiddentao/react-native-modal-filter-picker/issues"
},
"homepage": "https://github.com/hiddentao/react-native-modal-filter-picker#readme"
"homepage": "https://github.com/hiddentao/react-native-modal-filter-picker#readme",
"dependencies": {},
"devDependencies": {
"babel-eslint": "^10.0.3",
"eslint": "^6.7.1",
"eslint-config-airbnb": "^18.0.1",
"eslint-plugin-import": "^2.18.2",
"eslint-plugin-jsx-a11y": "^6.2.3",
"eslint-plugin-react": "^7.17.0",
"eslint-plugin-react-native": "^3.8.1",
"react": "^16.12.0",
"react-native": "^0.61.5"
}
}
Loading