@getluko/eslint-plugin-react-native
This library was generated with Nx.
Building
Run nx build eslint-plugin-react-native
to build the library.
Running unit tests
Run nx test eslint-plugin-react-native
to execute the unit tests via Jest.
@getluko/eslint-plugin-mobile-guidelines
Installation
yarn add @getluko/eslint-plugin-react-native --dev
Configuration
.eslintrc.js
module.exports = {
plugins: ['@getluko/react-native'],
rules: {
'@getluko/react-native/lower-dash-case-test-id': 1,
}
Rules
This rule is used to enforce a consistent naming pattern for testID prop which expect a lower dash case.
return (
<Element
testID="ElementTestID"
/>
);
return (
<Element
testID="element-test-id"
/>
);