Eslint Plugin React Native
eslint-plugin-react-native
React Native specific linting rules for ESLint
React Native Libraries
eslint
eslint-plugin
eslintplugin
react
react-native
react native
eslint-plugin-react-native
React Native Libraries
javascript
npm
Stars
1
Weekly
0
Open issues
0
Bundle
~60 kB
Installation
npm install eslint-plugin-react-nativeCode example
import { View, Text, StyleSheet } from "react-native";
import { EslintPluginReactNative } from "eslint-plugin-react-native";
export function Example() {
return (
<View style={styles.box}>
<Text style={styles.title}>Eslint Plugin React Native</Text>
<EslintPluginReactNative />
</View>
);
}
const styles = StyleSheet.create({
box: { flex: 1, alignItems: "center", justifyContent: "center", gap: 8 },
title: { fontSize: 18, fontWeight: "600" },
});Pros & cons
Pros
- Actively maintained by Tom Hastjarjanto
- 0 weekly downloads. Battle tested
- MIT licensed
Considerations
- Adds roughly ~60 kB to your bundle
- Needs client-only rendering in SSR frameworks
- 0 open issues on GitHub