1.10.0 • Published 6 months ago
@segware/eslint-config-react-native v1.10.0
Getting Started
Step 1: Remove @react-native/eslint-config dependencie
yarn remove @react-native/eslint-configStep 2: Install
yarn add -D @segware/eslint-config-react-native babel-plugin-module-resolverStep 3: Configure eslint plugin
In the .eslintrc.js file change the extends prop:
module.exports = {
root: true,
- extends: '@react-native',
+ extends: '@segware/eslint-config-react-native',
};Step 4: Configure module-resolver plugin on babel.config.js
module.exports = {
presets: ['module:metro-react-native-babel-preset'],
+ plugins: [
+ [
+ 'module-resolver',
+ {
+ root: ['./src'],
+ extensions: ['.ios.js', '.android.js', '.js', '.json'],
+ alias: {
+ '@components': './src/components',
+ },
+ },
+ ],
+ ],
};Supported react-native version
| library version | react-native version |
|---|---|
| 1.x.x | 0.74.2 |
| 0.x.x | 0.72.6 |
1.6.4-0.4
1 year ago
1.6.4-0.3
1 year ago
1.9.0
11 months ago
1.6.4-0.2
1 year ago
1.9.6-0.1
6 months ago
1.8.0
11 months ago
1.6.4-0.1
1 year ago
1.9.6-0.2
6 months ago
1.7.0
1 year ago
1.9.6-0.3
6 months ago
1.7.5-0.1
12 months ago
1.10.0
6 months ago
1.5.3-0.2
1 year ago
1.6.0
1 year ago
1.5.2-0.1
1 year ago
1.5.0
1 year ago
1.4.0
1 year ago
1.3.1-0.1
1 year ago
1.3.0
1 year ago
1.2.0
1 year ago
1.1.0
1 year ago
0.8.0
1 year ago
0.7.0
1 year ago
0.6.0
1 year ago
0.5.0
1 year ago
0.4.0
1 year ago
0.3.0
1 year ago
0.2.0
2 years ago
0.0.16
2 years ago
0.0.15
2 years ago
0.0.14
2 years ago
0.0.13
2 years ago
0.0.12
2 years ago
0.0.11
2 years ago
0.0.10
2 years ago
0.0.9
2 years ago
0.0.8
2 years ago
0.0.6
2 years ago
0.0.5
2 years ago
0.0.4
2 years ago
0.0.3
2 years ago
0.0.2
2 years ago
0.0.1
2 years ago