![require(esm) Backported to Node.js 20, Paving the Way for ESM-Only Packages](https://cdn.sanity.io/images/cgdhsj6q/production/be8ab80c8efa5907bc341c6fefe9aa20d239d890-1600x1097.png?w=400&fit=max&auto=format)
Security News
require(esm) Backported to Node.js 20, Paving the Way for ESM-Only Packages
require(esm) backported to Node.js 20, easing the transition to ESM-only packages and reducing complexity for developers as Node 18 nears end-of-life.
eslint-config-synacor
Advanced tools
Standard eslint rules for all Synacor javascript projects
Add eslint-config-synacor as a development dependency for your project: npm i -D eslint-config-synacor
If you aren't already including eslint with your project, install that as a development dependency as well: npm i -D eslint
.
package.json
To specify for your entire project to use the global rules, add this as a clause in your package.json
file:
"eslintConfig": {
"extends": "eslint-config-synacor"
},
.eslintrc
Optionally (or in addition to your package.json setup), to specify to use the global rules in all subdirectories of a given directory, you can create a .eslintrc
file with the contents
{
extends: 'eslint-config-synacor'
}
test/.eslintrc
There are a set of overrides/rules for directories that contain unit tests. These are available in the test-rules
submodule of the package. You can reference them via estlint-config-synacor/test-rules
. So, to apply these as overrides in your tests/
directory, you would create a .eslintrc
file in tests/
. The contents of that file would look like:
{
extends: 'eslint-config-synacor/test-rules'
}
All rule definition files are in src/rules
. Edit/create rule files there.
Rules that are meant to be used for an entire project should go in files that are included by src/index.js
.
Rules that are only meant to be run/overriden in test directories of a project should be included by src/test-rules.js
.
FAQs
ESLint configuration for Synacor javascript projects
The npm package eslint-config-synacor receives a total of 1,212 weekly downloads. As such, eslint-config-synacor popularity was classified as popular.
We found that eslint-config-synacor demonstrated a not healthy version release cadence and project activity because the last version was released 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.
Security News
require(esm) backported to Node.js 20, easing the transition to ESM-only packages and reducing complexity for developers as Node 18 nears end-of-life.
Security News
PyPI now supports iOS and Android wheels, making it easier for Python developers to distribute mobile packages.
Security News
Create React App is officially deprecated due to React 19 issues and lack of maintenance—developers should switch to Vite or other modern alternatives.