![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-opengovsg
Advanced tools
The goal of this package is to provide reasonable defaults for most common scenarios, so that developers can start building without worrying about linting configurations.
ESLint is a tool to "find and fix problems in your JavaScript code" (from https://eslint.org/). We use ESLint to help us write better code. However, we do not want to invest efforts into the fine-tuning of detailed configurations, as those efforts can be better invested into building other things.
As a result, we will NEVER have self-defined opinions in the library, which means rules
section should not exist in the configs. Instead, only recommended
rule sets from the biggest linting libraries (e.g. eslint:recommended
) will be used. Essentially:
recommended
, there are 2 options:
recommended
rule set.eslintrc
in our own repositories, NOT here. If a rule does not make sense to the broader community thus cannot enter the recommended
rule set, it would not make sense to be here either.To install (including all the peer dependencies as devDependencies
):
npx install-peerdeps --dev eslint-config-opengovsg
Depending on the usage, put one of the following into .eslintrc
:
{"extends": ["opengovsg"]}
){"extends": ["opengovsg", "opengovsg/react"]}
or {"extends": ["opengovsg/javascript", "opengovsg/react"]}
){"extends": ["opengovsg", "opengovsg/pulumi"]}
){"extends": ["opengovsg/javascript"]}
)FAQs
ESLint configs for Open Government Products
We found that eslint-config-opengovsg 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
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.