Research
Security News
Quasar RAT Disguised as an npm Package for Detecting Vulnerabilities in Ethereum Smart Contracts
Socket researchers uncover a malicious npm package posing as a tool for detecting vulnerabilities in Etherium smart contracts.
@gossi/config-eslint
Advanced tools
Add eslint to your packages. Based on [NullVoxPopuli/eslint-config](https://github.com/NullVoxPopuli/eslint-configs).
@gossi/config-eslint
Add eslint to your packages. Based on NullVoxPopuli/eslint-config.
Install these packages:
pnpm add -D @gossi/config-eslint eslint
Create a .eslintrc.js
file with your desired config (see below)
Add scripts to execute linting
{
"scripts": {
"lint:js": "eslint . --cache",
"lint:js:fix": "eslint . --fix"
}
}
Accommodates: JS, TS, App, and Addon
// .eslintrc.js
'use strict';
const { configs } = require('@gossi/config-eslint');
module.exports = configs.ember();
This config is native ES Modules, and cjs is allowed via files with the *.cjs
extension.
// .eslintrc.js
'use strict';
const { configs } = require('@gossi/config-eslint');
// accommodates: JS
module.exports = configs.node();
This config is for when *.js
is cjs, and ES Modules are used via the *.mjs
extension.
// .eslintrc.js
'use strict';
const { configs } = require('@gossi/config-eslint');
// accommodates: JS
module.exports = configs.nodeCJS();
// .eslintrc.js
'use strict';
const { configs } = require('@gossi/config-eslint');
// accommodates: JS, TS
module.exports = configs.nodeTS();
Every of the above config is overridable. Here are two examples of how you can override the provided configs:
overriding:
// .eslintrc.js
'use strict';
const { configs } = require('@gossi/config-eslint');
const config = configs.ember();
module.exports = {
...config,
overrides: [
...config.overrides,
// your modifications here
// see: https://eslint.org/docs/user-guide/configuring/configuration-files#how-do-overrides-work
]
}
overriding prettier configuration example:
// .eslintrc.js
'use strict';
const { configs } = require('@gossi/config-eslint');
const config = configs.ember();
module.exports = {
...config,
overrides: [
...config.overrides,
{
files: ['**/*.js', '**/*.ts'],
rules: {
'prettier/prettier': ['error', { singleQuote: true, printWidth: 120, trailingComma: 'none' }],
},
},
]
}
To see what the resolved config looks like for a file
node_modules/.bin/eslint --print-config path/to/file
FAQs
Add eslint to your packages. Based on [NullVoxPopuli/eslint-config](https://github.com/NullVoxPopuli/eslint-configs).
The npm package @gossi/config-eslint receives a total of 620 weekly downloads. As such, @gossi/config-eslint popularity was classified as not popular.
We found that @gossi/config-eslint demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 0 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.
Research
Security News
Socket researchers uncover a malicious npm package posing as a tool for detecting vulnerabilities in Etherium smart contracts.
Security News
Research
A supply chain attack on Rspack's npm packages injected cryptomining malware, potentially impacting thousands of developers.
Research
Security News
Socket researchers discovered a malware campaign on npm delivering the Skuld infostealer via typosquatted packages, exposing sensitive data.