-
Notifications
You must be signed in to change notification settings - Fork 0
/
react-native.js
28 lines (21 loc) · 938 Bytes
/
react-native.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
module.exports = {
extends: [
require.resolve('./react'),
],
plugins: [
// https://github.com/Intellicode/eslint-plugin-react-native
'react-native'
],
// Airbnb does not currently provide any rules for React Native,
// so turn on some basic ones here.
rules: {
// https://github.com/Intellicode/eslint-plugin-react-native/blob/master/docs/rules/no-unused-styles.md
'react-native/no-unused-styles': 'error',
// https://github.com/Intellicode/eslint-plugin-react-native/blob/master/docs/rules/split-platform-components.md
'react-native/split-platform-components': 'error',
// https://github.com/Intellicode/eslint-plugin-react-native/blob/master/docs/rules/no-inline-styles.md
'react-native/no-inline-styles': 'error',
// https://github.com/Intellicode/eslint-plugin-react-native/blob/master/docs/rules/no-color-literals.md
'react-native/no-color-literals': 'error',
},
};