1.6.0 • Published 8 months ago

@segware/eslint-config-react-native v1.6.0

Weekly downloads
-
License
ISC
Repository
-
Last release
8 months ago

Getting Started

Step 1: Remove @react-native/eslint-config dependencie

yarn remove @react-native/eslint-config

Step 2: Install

yarn add -D @segware/eslint-config-react-native babel-plugin-module-resolver

Step 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 versionreact-native version
1.x.x0.74.2
0.x.x0.72.6
1.5.3-0.2

8 months ago

1.6.0

8 months ago

1.5.2-0.1

8 months ago

1.5.0

8 months ago

1.4.0

10 months ago

1.3.1-0.1

10 months ago

1.3.0

12 months ago

1.2.0

12 months ago

1.1.0

12 months 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

1 year ago

0.0.16

1 year ago

0.0.15

1 year ago

0.0.14

1 year ago

0.0.13

1 year ago

0.0.12

1 year ago

0.0.11

1 year ago

0.0.10

1 year ago

0.0.9

1 year ago

0.0.8

1 year ago

0.0.6

1 year ago

0.0.5

1 year ago

0.0.4

1 year ago

0.0.3

1 year ago

0.0.2

1 year ago

0.0.1

1 year ago