Security News
38% of CISOs Fear They’re Not Moving Fast Enough on AI
CISOs are racing to adopt AI for cybersecurity, but hurdles in budgets and governance may leave some falling behind in the fight against cyber threats.
@cloudfour/eslint-plugin
Advanced tools
Cloud Four's ESLint configuration. This exports itself as a "super-plugin" because of a limitation of ESLint.
The way this works is that it requires all of the plugin dependencies, and exports them from this plugin under a prefix.
The plugins that this exposes are:
n
(maintained fork of original eslint-plugin-node
)import
standard
promise
unicorn
jsdoc
@typescript-eslint
To override settings for any of these plugins, you must prefix the configuration
with cloudfour/
, because the plugins are exposed through this "super-plugin".
{
"extends": ["plugin:@cloudfour/recommended"],
"rules": {
"@cloudfour/promise/no-native": "off"
}
}
In addition to the recommended
configuration, @cloudfour/eslint-plugin
also re-exports typescript-eslint's disable-type-checked
configuration. This configuration disables any rules that depend on typescript-eslint's typescript integration.
npm install --save-dev @cloudfour/eslint-plugin eslint prettier
Add this to your package.json
:
"scripts": {
"check-lint": "eslint . && prettier --check .",
"lint": "eslint --fix . && prettier --write ."
},
"eslintConfig": {
"extends": "plugin:@cloudfour/recommended"
},
"prettier": {
"singleQuote": true
}
npm run check-lint
This command will attempt to automatically fix lint errors. Note that not all lint errors can be fixed this way, so be prepeared to fix any remaining errors by hand.
npm run lint
This config relies on using a version of eslint installed locally to your project. If you also have eslint installed globally, it's possible to run into conflicts. To avoid any problems, either:
npm run check-lint
and npm run lint
scripts, which will run the local version of eslint.npx eslint '**/*.js'
23.0.0
#551 f11e794
Thanks @calebeby! - Improve linting of type
modifiers on imports.
Reconfigured Rules (recommended
Config)
@cloudfour/import/no-duplicates
- "error"
+ [
+ "error",
+ {
+ "prefer-inline": true
+ }
+ ]
Newly Enabled Rules (recommended
Config » TS Overrides)
FAQs
Cloud Four's shareable ESLint configuration
The npm package @cloudfour/eslint-plugin receives a total of 0 weekly downloads. As such, @cloudfour/eslint-plugin popularity was classified as not popular.
We found that @cloudfour/eslint-plugin demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 6 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
CISOs are racing to adopt AI for cybersecurity, but hurdles in budgets and governance may leave some falling behind in the fight against cyber threats.
Research
Security News
Socket researchers uncovered a backdoored typosquat of BoltDB in the Go ecosystem, exploiting Go Module Proxy caching to persist undetected for years.
Security News
Company News
Socket is joining TC54 to help develop standards for software supply chain security, contributing to the evolution of SBOMs, CycloneDX, and Package URL specifications.