
Product
Rust Support Now in Beta
Socket's Rust support is moving to Beta: all users can scan Cargo projects and generate SBOMs, including Cargo.toml-only crates, with Rust-aware supply chain checks.
@calvium/eslint-config
Advanced tools
Current React Native tested versions from 60.x
but it may work in earlier versions too.
This module can be use in any vanilla JS, React (web) or React Native project as a dev dependency.
npm install @calvium/eslint-config --save-dev
To use this package you MUST install all peer dependencies of this package as devDependencies even if you are not using the relevant configuration
npm install --save-dev eslint eslint-config-prettier @typescript-eslint/eslint-plugin eslint-plugin-import eslint-plugin-jsx-a11y eslint-plugin-react eslint-plugin-react-native eslint-plugin-promise eslint-config-prettier @react-native-community/eslint-config eslint-plugin-eslint-comments eslint-plugin-react-hooks eslint-plugin-jest eslint-import-resolver-typescript @typescript-eslint/parser
after that you just need a .eslintrc.js
in the same folder than the package.json
file with this content
// Calvium React Native Project Default ESLint Settings.
module.exports = {
"extends": "@calvium/eslint-config/config/{config-name}"
};
Where {config-name}
can be one of:
react-default
react-typescript
react-native-default
react-native-typescript
node-default
node-typescript
To check the package is working in your installation run:
cd path/to/package.json
./node_modules/.bin/eslint ./path/**
with path being the place where your js code is.
To have this in your IDE in-line:
- Settings ->
- Languages & Frameworks ->
- JavaScript ->
- Code Quality Tools ->
- ESLint -> enable
FAQs
eslint configuration to be used in Calvium Projects
We found that @calvium/eslint-config demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 5 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.
Product
Socket's Rust support is moving to Beta: all users can scan Cargo projects and generate SBOMs, including Cargo.toml-only crates, with Rust-aware supply chain checks.
Product
Socket Fix 2.0 brings targeted CVE remediation, smarter upgrade planning, and broader ecosystem support to help developers get to zero alerts.
Security News
Socket CEO Feross Aboukhadijeh joins Risky Business Weekly to unpack recent npm phishing attacks, their limited impact, and the risks if attackers get smarter.