
Security News
Attackers Are Hunting High-Impact Node.js Maintainers in a Coordinated Social Engineering Campaign
Multiple high-impact npm maintainers confirm they have been targeted in the same social engineering campaign that compromised Axios.
lint-react-native-app
Advanced tools
A command-line interface that adds linting and prettier to a `react` / `react-native` project. It primarily targets `expo`.
A command-line interface that adds linting and prettier to a react / react-native project. It primarily targets expo.
Originally inspired by this article with additions to cover pieces it misses.
Run this after running expo init (or from react-native cli):
$ npx lint-react-native-app
This will create a .prettierrc.json and .eslintrc.json file for you.
It supports TypeScript, React Hooks linters, and other recommended react / react-native linter dependencies.
ESLint file created: .eslintrc.json
{
"parser": "@typescript-eslint/parser",
"parserOptions": {
"jsx": true,
"useJSXTextNode": true
},
"extends": [
"plugin:@typescript-eslint/recommended",
"prettier",
"prettier/@typescript-eslint"
],
"plugins": ["@typescript-eslint", "react-hooks"],
"rules": {
"@typescript-eslint/explicit-function-return-type": "off",
"react-hooks/rules-of-hooks": "error",
"react-hooks/exhaustive-deps": "warn"
}
}
Prettier file created: `.prettierrc.json
{
"singleQuote": true,
"trailingComma": "es5",
"overrides": [
{
"files": "*.ts",
"options": {
"parser": "typescript"
}
}
],
"semi": false,
"jsxSingleQuote": false,
"useTabs": true,
"tabWidth": 4
}
These packages will be added to your devDependencies:
"@typescript-eslint/eslint-plugin",
"@typescript-eslint/parser",
"eslint",
"eslint-config-prettier",
"eslint-plugin-prettier",
"eslint-plugin-react",
"eslint-plugin-react-hooks",
"prettier"
FAQs
A command-line interface that adds linting and prettier to a `react` / `react-native` project. It primarily targets `expo`.
We found that lint-react-native-app demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer 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
Multiple high-impact npm maintainers confirm they have been targeted in the same social engineering campaign that compromised Axios.

Security News
Axios compromise traced to social engineering, showing how attacks on maintainers can bypass controls and expose the broader software supply chain.

Security News
Node.js has paused its bug bounty program after funding ended, removing payouts for vulnerability reports but keeping its security process unchanged.