Security News
Research
Data Theft Repackaged: A Case Study in Malicious Wrapper Packages on npm
The Socket Research Team breaks down a malicious wrapper package that uses obfuscation to harvest credentials and exfiltrate sensitive data.
@electron-toolkit/eslint-config-prettier
Advanced tools
ESLint config with Prettier support for Electron projects.
ESLint config with Prettier support for Electron projects.
Requires eslint >= 8.0.0
and prettier >= 3.0.0
.
This config is specifically designed to be used by @quick-start/create-electron
setups.
The default config is based on the recommended configuration of eslint-plugin-prettier, which also depends on eslint-config-prettier. Please refer to their corresponding documentations for more implementation details.
npm add -D @electron-toolkit/eslint-config-prettier
Add @electron-toolkit/eslint-config-prettier
to the extends
array in your .eslintrc.cjs
file. Make sure to put it last, so it gets the chance to override other configs.
module.exports = {
extends: [
// ... other configs
'@electron-toolkit/eslint-config-prettier'
]
}
This configuration is the most straightward way to use ESLint with Prettier.
It disables all rules that are unnecessary or might conflict with Prettier. It also enables the eslint-plugin-prettier
plugin, which runs Prettier as an ESLint rule and reports differences as individual ESLint issues.
By default all formatting issues are reported as warnings
, and will be automatically fixed during eslint --fix
.
FAQs
ESLint config with Prettier support for Electron projects.
The npm package @electron-toolkit/eslint-config-prettier receives a total of 12,093 weekly downloads. As such, @electron-toolkit/eslint-config-prettier popularity was classified as popular.
We found that @electron-toolkit/eslint-config-prettier demonstrated a healthy version release cadence and project activity because the last version was released less than 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
Research
The Socket Research Team breaks down a malicious wrapper package that uses obfuscation to harvest credentials and exfiltrate sensitive data.
Research
Security News
Attackers used a malicious npm package typosquatting a popular ESLint plugin to steal sensitive data, execute commands, and exploit developer systems.
Security News
The Ultralytics' PyPI Package was compromised four times in one weekend through GitHub Actions cache poisoning and failure to rotate previously compromised API tokens.