
Security News
Nx npm Packages Compromised in Supply Chain Attack Weaponizing AI CLI Tools
Malicious Nx npm versions stole secrets and wallet info using AI CLI tools; Socket’s AI scanner detected the supply chain attack and flagged the malware.
@crystal-ball/eslint-config-eloquence
Advanced tools
Add package as a dev dependency to your project:
npm i eslint-config-healthsparq -D
If you are using the web configs, install the webpack resolver as well:
npm i eslint-import-resolver-webpack -D
Extending this package's config will handle setting the base parserOptions, parser,
plugins and env. There are seperate configs for Node projects and web projects
to handle turning on/off features like JSX, webpack resolving, .mjs
file
extensions, etc. The configs are node
and web
and can be extended like so:
// .eslintrc.js
module.exports = { extends: '@crystal-ball/eloquence/web' }
// .eslintrc.js
module.exports = { extends: '@crystal-ball/eloquence/node' }
The only Airbnb code quality rule that is overriden is setting
no-use-before-define to
{ functions: false }
. This allows propTypes of
stateless functional components to be decalred before the component defintion using
a function declarartion:
Radical.propTypes = {
name: string.isRequired
}
export default function Radical({ name }) {
return <h1>{name} is RADICAL!</h1>
}
This lets us always declare our prop types before the component definition, which is helpful when evaluating some new component.
All dependencies required for running ESLint will be installed as dependencies of this package. This ensures that there are no conflicting versions of ESLint in a consuming project's dependencies. Installed dependencies include:
Linting for TypeScript is an opt-in. First, add the ESLint TS parser:
npm i typescript-eslint-parser
Then extend the TyepScript configuration:
// .eslintrc.js
module.exports = {
extends: '@crystal-ball/eloquence/typescript'
}
FAQs
Crystal Ball Componentry org ESLint configuration
The npm package @crystal-ball/eslint-config-eloquence receives a total of 7 weekly downloads. As such, @crystal-ball/eslint-config-eloquence popularity was classified as not popular.
We found that @crystal-ball/eslint-config-eloquence demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 3 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
Malicious Nx npm versions stole secrets and wallet info using AI CLI tools; Socket’s AI scanner detected the supply chain attack and flagged the malware.
Security News
CISA’s 2025 draft SBOM guidance adds new fields like hashes, licenses, and tool metadata to make software inventories more actionable.
Security News
A clarification on our recent research investigating 60 malicious Ruby gems.