Security News
Weekly Downloads Now Available in npm Package Search Results
Socket's package search now displays weekly downloads for npm packages, helping developers quickly assess popularity and make more informed decisions.
@empathyco/eslint-config
Advanced tools
[!NOTE] The ESLint and Prettier dependencies are referenced in the package itself, so there is no needed to install them in your project.
npm i -D @empathyco/eslint-config
Create eslint.config.mjs
in your project root:
// eslint.config.mjs
import { empathyco } from '@empathyco/eslint-config'
export default empathyco()
Reference shared config file into package.json
:
{
"prettier": "@empathyco/eslint-config/prettier"
}
package.json
This is a script set that you can add to your repository:
{
"scripts": {
"lint": "eslint --fix .",
"lint:check": "eslint .",
"lint:inspect": "eslint --inspect-config .",
"format": "prettier --write .",
"format:check": "prettier --check ."
}
}
Configure the initial preset with the same parameters as expose @antfu/eslint-config
Example:
import { empathyco } from '@empathyco/eslint-config'
export default empathyco(
// Configures for empathyco's (antfu) config.
{},
// From the second arguments they are ESLint Flat Configs.
// You can have multiple configs.
{
rules: {
'vue/custom-event-name-casing': 'off',
},
},
{
files: ['**/*.spec.{ts,tsx,js,jsx}'],
rules: {
'jsdoc/check-param-names': 'off',
},
},
)
FAQs
ESLint and Prettier config preset
The npm package @empathyco/eslint-config receives a total of 105 weekly downloads. As such, @empathyco/eslint-config popularity was classified as not popular.
We found that @empathyco/eslint-config 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.
Security News
Socket's package search now displays weekly downloads for npm packages, helping developers quickly assess popularity and make more informed decisions.
Security News
A Stanford study reveals 9.5% of engineers contribute almost nothing, costing tech $90B annually, with remote work fueling the rise of "ghost engineers."
Research
Security News
Socket’s threat research team has detected six malicious npm packages typosquatting popular libraries to insert SSH backdoors.