
Security News
vlt Launches "reproduce": A New Tool Challenging the Limits of Package Provenance
vlt's new "reproduce" tool verifies npm packages against their source code, outperforming traditional provenance adoption in the JavaScript ecosystem.
@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 17,735 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
vlt's new "reproduce" tool verifies npm packages against their source code, outperforming traditional provenance adoption in the JavaScript ecosystem.
Research
Security News
Socket researchers uncovered a malicious PyPI package exploiting Deezer’s API to enable coordinated music piracy through API abuse and C2 server control.
Research
The Socket Research Team discovered a malicious npm package, '@ton-wallet/create', stealing cryptocurrency wallet keys from developers and users in the TON ecosystem.