
Security News
Open Source Maintainers Feeling the Weight of the EU’s Cyber Resilience Act
The EU Cyber Resilience Act is prompting compliance requests that open source maintainers may not be obligated or equipped to handle.
@getluko/eslint-plugin-react-native
Advanced tools
GetLuko React Native ESLint Plugin created by the App Core guild
This library was generated with Nx.
Run nx build eslint-plugin-react-native
to build the library.
Run nx test eslint-plugin-react-native
to execute the unit tests via Jest.
yarn add @getluko/eslint-plugin-react-native --dev
.eslintrc.js
module.exports = {
plugins: ['@getluko/react-native'],
rules: {
'@getluko/react-native/lower-dash-case-test-id': 1,
'@getluko/react-native/i18n-avoid-global-imports: 2,
}
Allows you to enforce a consistent naming pattern for testID prop which expect a lower dash case.
// bad ❌
return (
<Element
testID="ElementTestID"
/>
);
// good ✅
return (
<Element
testID="element-test-id"
/>
);
Allows you to enforce i18n by avoiding global imports. it allows changing language dynamically without restarting the app.
// bad ❌
const key = i18n.t('key');
return (
<Text>{key}</Text>
)
// good ✅
const getKey = () => i18n.t('key');
return (
<Text>{getKey()}</Text>
);
FAQs
GetLuko React Native ESLint Plugin created by the App Core guild
The npm package @getluko/eslint-plugin-react-native receives a total of 17 weekly downloads. As such, @getluko/eslint-plugin-react-native popularity was classified as not popular.
We found that @getluko/eslint-plugin-react-native demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 2 open source maintainers collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
The EU Cyber Resilience Act is prompting compliance requests that open source maintainers may not be obligated or equipped to handle.
Security News
Crates.io adds Trusted Publishing support, enabling secure GitHub Actions-based crate releases without long-lived API tokens.
Research
/Security News
Undocumented protestware found in 28 npm packages disrupts UI for Russian-language users visiting Russian and Belarusian domains.