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.
@ionic/eslint-config
Advanced tools
Shared ESLint config used in Ionic and Capacitor projects.
This is meant to be used alongside Prettier (with @ionic/prettier-config
).
Remove existing .eslintrc.*
file, if present.
Install eslint
and the config.
npm install -D eslint @ionic/eslint-config
Add the following to package.json
:
"eslintConfig": {
"extends": "@ionic/eslint-config/recommended"
}
:memo: You can also use the base rule set: @ionic/eslint-config
@ionic/prettier-config
Set up Prettier and @ionic/prettier-config
.
When using with Prettier and @ionic/prettier-config
, ESLint should run first. Set up your scripts in package.json
like this:
"scripts": {
"lint": "npm run eslint && npm run prettier -- --check",
"fmt": "npm run eslint -- --fix && npm run prettier -- --write",
"prettier": "prettier \"**/*.ts\"",
"eslint": "eslint . --ext .ts",
}
npm run lint
: for checking if ESLint and Prettier complainnpm run fmt
: attempt to autofix lint issues and autoformat code:memo: Not every rule in this configuration is autofixable, so npm run fmt
may continue failing until lint issues are addressed manually.
Install husky:
npm install -D husky
Add the following to package.json
:
"husky": {
"hooks": {
"pre-commit": "npm run lint"
}
},
FAQs
Common eslint rules/preferences for Ionic.
The npm package @ionic/eslint-config receives a total of 16,023 weekly downloads. As such, @ionic/eslint-config popularity was classified as popular.
We found that @ionic/eslint-config demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 2 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
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.