@abdullahceylan/eslint-config-react-native
Advanced tools
Comparing version 1.0.1 to 1.1.0
@@ -72,2 +72,2 @@ // Based on: https://github.com/facebook/create-react-app/tree/next/packages/eslint-config-react-app 1 | ||
}, | ||
} | ||
}; |
{ | ||
"name": "@abdullahceylan/eslint-config-react-native", | ||
"version": "1.0.1", | ||
"version": "1.1.0", | ||
"author": "Abdullah Ceylan <ben@abdullahceylan.com>", | ||
@@ -22,3 +22,3 @@ "description": "ESLint React Native Configuration.", | ||
"dependencies": { | ||
"@abdullahceylan/eslint-config": "^1.0.1", | ||
"@abdullahceylan/eslint-config": "^1.1.0", | ||
"eslint-plugin-jsx-a11y": "^6.1.2", | ||
@@ -34,3 +34,3 @@ "eslint-plugin-react": "^7.1.0", | ||
}, | ||
"gitHead": "6ed0ceb25b7573aaace3f461dfe7f734d91faa8c" | ||
"gitHead": "348f16425b82466013e7d61b14a147ece0fdaa8b" | ||
} |
@@ -1,3 +0,29 @@ | ||
# @abdullahceylan/eslint-react-native-config | ||
# @abdullahceylan/eslint-config-react-native | ||
ESLint React Native configurations that I've used. | ||
ESLint React Native configurations that I've used. | ||
# Install | ||
`npm install --save-dev @abdullahceylan/eslint-config-react-native` | ||
or | ||
`yarn add --dev @abdullahceylan/eslint-config-react-native` | ||
# Usage | ||
- Create `.eslintrc.js` folder into root directory | ||
- Paste following: | ||
```js | ||
module.exports = { | ||
parser: 'babel-eslint', | ||
extends: [ | ||
'@abdullahceylan/eslint-config', // optional | ||
'@abdullahceylan/eslint-config-react-native', | ||
], | ||
env: { | ||
es6: true, | ||
}, | ||
rules: { | ||
// your own rules | ||
}, | ||
}; | ||
``` |
4866
29