Socket
Socket
Sign inDemoInstall

eslint-config-fishbrain-base

Package Overview
Dependencies
8
Maintainers
6
Versions
22
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    eslint-config-fishbrain-base

ESLint config for Fishbrain TypeScript projects


Version published
Weekly downloads
527
decreased by-34.94%
Maintainers
6
Created
Weekly downloads
 

Readme

Source

ESLint config for Fishbrain TypeScript projects

npm version Build Status

Rule set based on Airbnb JavaScript style guide with some extra rules for Jest tests from eslint-plugin-jest.

Usage

npm install -D eslint-config-fishbrain-base

In .eslintrc (or whatver your ESLint config file is)

{
  "extends": ["eslint-config-fishbrain-base"]
}

In addition to setting target, module, moduleResolution etc, these strictness settings are recommended.

{
  "compilerOptions": {
    "strict": true,
    "noFallthroughCasesInSwitch": true,
    "noImplicitReturns": true,
    "noUnusedLocals": true,
    "noUnusedParameters": true
  }
}

Add this to package.json to get correct config for prettier

  "prettier": {
    "singleQuote": true,
    "trailingComma": "all"
  }

Editor settings

To enable ESLint in VS Code add the following to your settings.json:

{
  "tslint.enable": false,
  "eslint.validate": [
    "javascript",
    "typescript",
  ]
}

Web Projects

For ESLint rules for React based web projects, see: https://github.com/fishbrain/eslint-config-fishbrain

Deploying

To trigger a release, merge changes into the master branch with an updated package version. This will trigger a Github Actions workflow to deploy a release.

FAQs

Last updated on 05 Jan 2024

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.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc