Security News
JSR Working Group Kicks Off with Ambitious Roadmap and Plans for Open Governance
At its inaugural meeting, the JSR Working Group outlined plans for an open governance model and a roadmap to enhance JavaScript package management.
@tophat/eslint-config
Advanced tools
:shark: Top Hat's shareable eslint configuration
The default config includes the following:
Extend the default config by first installing all the required dependencies:
yarn add --dev \
@tophat/eslint-config \
eslint \
prettier \
eslint-config-prettier \
eslint-plugin-prettier \
eslint-plugin-react \
eslint-plugin-react-hooks \
eslint-plugin-jsx-a11y \
eslint-plugin-jest \
eslint-plugin-import \
eslint-import-resolver-typescript \
@typescript-eslint/eslint-plugin \
@typescript-eslint/parser \
@tophat/eslint-import-resolver-require
or
npm install --save-dev # etc ...
Then update your eslint config (for example, .eslintrc.js):
module.exports = {
extends: '@tophat'
}
Note: @tophat/eslint-import-resolver-require
is an optional peer dependency and helps with Yarn Berry projects.
Note that Typescript is required.
You can extend each of the configs separately by specifying them in your eslint config:
module.exports = {
extends: [
// Pick and choose from the following list of configs
'@tophat/eslint-config/base',
'@tophat/eslint-config/react',
'@tophat/eslint-config/jest',
'@tophat/eslint-config/web',
]
}
Each config requires certain peer dependencies:
You only have to install the dependencies for the configs which you are using.
See the CHANGELOG.
See the CONTRIBUTING guide.
FAQs
Top Hat's shareable eslint configuration.
The npm package @tophat/eslint-config receives a total of 2,383 weekly downloads. As such, @tophat/eslint-config popularity was classified as popular.
We found that @tophat/eslint-config 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
At its inaugural meeting, the JSR Working Group outlined plans for an open governance model and a roadmap to enhance JavaScript package management.
Security News
Research
An advanced npm supply chain attack is leveraging Ethereum smart contracts for decentralized, persistent malware control, evading traditional defenses.
Security News
Research
Attackers are impersonating Sindre Sorhus on npm with a fake 'chalk-node' package containing a malicious backdoor to compromise developers' projects.