
Product
Introducing Socket Firewall Enterprise: Flexible, Configurable Protection for Modern Package Ecosystems
Socket Firewall Enterprise is now available with flexible deployment, configurable policies, and expanded language support.
eslint-config-particle
Advanced tools
eslint config rules for Particle Javascript projects
You can do so in the index.mjs file. There are separate functions for test rules, TS rules, js rules, etc.
If you want to validate your rule is working as expected, see the test repo's README
npm install -D eslint eslint-config-particle
// eslint.config.mjs
import { particle } from 'eslint-config-particle';
export default particle({
rootDir: import.meta.dirname,
testGlobals: 'mocha'
});
// eslint.config.mjs
import { particle } from 'eslint-config-particle';
export default particle({
rootDir: import.meta.dirname,
testGlobals: 'vitest',
globalIgnores: ['./update-changelog.js', './esbuild.js', '**/scripts/**'],
typescript: {
tsconfig: './tsconfig-check.json'
},
overrides: {
// When we switch to a real logger, we can turn this off
'no-console': 'off',
// Dbus APIs are usually cap functions
'new-cap': 'off'
}
});
// eslint.config.mjs
import { particle } from 'eslint-config-particle';
export default [
...particle({
rootDir: import.meta.dirname,
// more particle opts
}),
{
// my custom rules here that the particle fn doesn't let me customize
}
];
package.json and update CI "scripts": {
"lint": "eslint",
"lint:fix": "eslint --fix",
}
FAQs
eslint config rules for Particle projects
The npm package eslint-config-particle receives a total of 990 weekly downloads. As such, eslint-config-particle popularity was classified as not popular.
We found that eslint-config-particle demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 3 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.

Product
Socket Firewall Enterprise is now available with flexible deployment, configurable policies, and expanded language support.

Security News
Open source dashboard CNAPulse tracks CVE Numbering Authorities’ publishing activity, highlighting trends and transparency across the CVE ecosystem.

Product
Detect malware, unsafe data flows, and license issues in GitHub Actions with Socket’s new workflow scanning support.