Research
Security News
Threat Actor Exposes Playbook for Exploiting npm to Build Blockchain-Powered Botnets
A threat actor's playbook for exploiting the npm ecosystem was exposed on the dark web, detailing how to build a blockchain-powered botnet.
@thoughtbot/eslint-config
Advanced tools
Batteries-included sharable [ESLint][eslint] configurations for React, React Native, TypeScript, and Node.js that enforce [thoughtbot’s JavaScript guides][thoughtbot-js-guides]. These configurations are largely based off of and compatible with [AirBnb’s E
Batteries-included sharable ESLint configurations for React, React Native, TypeScript, and Node.js that enforce thoughtbot’s JavaScript guides. These configurations are largely based off of and compatible with AirBnb’s ESLint config.
If using npm, run:
npm install @thoughtbot/eslint-config --save-dev
If using Yarn, run:
yarn add @thoughtbot/eslint-config --dev
This package includes configurations for most common tech stacks. Update your ESLint configuration to extend the appropriate setup:
@thoughtbot/eslint-config
- React web, Jest, Testing Library, Prettier@thoughtbot/eslint-config/react
- React web (same as above)@thoughtbot/eslint-config/base
- base web config, no React or Prettier@thoughtbot/eslint-config/native
- React Native, Jest, RN Testing Library, Prettier@thoughtbot/eslint-config/prettier
- Prettier, automatically used when using React or Native config@thoughtbot/eslint-config/typescript
- TypeScript config, add this if using TypescriptThe configurations that include Prettier turn off all formatting rules that are also handled by Prettier to reduce conflicts between the two tools. It is recommended to add Prettier to your project and ensure that your CI environment also runs Prettier to verify code formatting.
Following are some example usages of this config (eg. in .eslintrc.js
).
React with TypeScript:
{
"extends": [
"@thoughtbot/eslint-config",
"@thoughtbot/eslint-config/typescript"
]
}
React Native with TypeScript:
{
"extends": [
"@thoughtbot/eslint-config/native",
"@thoughtbot/eslint-config/typescript"
]
}
Base web without React or TypeScript
{
"extends": ["@thoughtbot/eslint-config/base"]
}
You can override rules from the shared configuration, by setting your
own values within the rules
property:
{
"extends": "@thoughtbot/eslint-config",
"rules": {
"react/jsx-newline": "warn"
}
}
You might also need to add the following to your ESLint config if you get an error about Jest not being able to detect the version:
{
"settings": {
"jest": { "version": "detect" }
}
}
Consult the ESLint documentation for more information about configuring ESLint, and take a look at the config files in this repo for more information about the rules and plugins they include.
thoughtbot ESLint Config is copyright (c) 2023 thoughtbot, inc. It is free software, and may be redistributed under the terms specified in the LICENSE file.
thoughtbot ESLint Config is maintained and funded by thoughtbot, inc. The names and logos for thoughtbot are trademarks of thoughtbot, inc.
We love open source software! See our other projects or hire us to help build your product.
FAQs
Batteries-included sharable [ESLint][eslint] configurations for React, React Native, TypeScript, and Node.js that enforce [thoughtbot’s JavaScript guides][thoughtbot-js-guides]. These configurations are largely based off of and compatible with [AirBnb’s E
The npm package @thoughtbot/eslint-config receives a total of 814 weekly downloads. As such, @thoughtbot/eslint-config popularity was classified as not popular.
We found that @thoughtbot/eslint-config demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 4 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.
Research
Security News
A threat actor's playbook for exploiting the npm ecosystem was exposed on the dark web, detailing how to build a blockchain-powered botnet.
Security News
NVD’s backlog surpasses 20,000 CVEs as analysis slows and NIST announces new system updates to address ongoing delays.
Security News
Research
A malicious npm package disguised as a WhatsApp client is exploiting authentication flows with a remote kill switch to exfiltrate data and destroy files.