5.0.5 • Published 4 months ago

eslint-config-fishbrain-base v5.0.5

Weekly downloads
759
License
Apache-2.0
Repository
github
Last release
4 months ago

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"]
}

Recommended tsconfig.json settings

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

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

Recommended Prettier settings

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.

5.0.5

4 months ago

5.0.4

5 months ago

5.0.3

6 months ago

5.0.2

7 months ago

5.0.1

10 months ago

5.0.0

10 months ago

4.0.0

1 year ago

3.0.4

2 years ago

2.1.1

3 years ago

2.1.0

4 years ago

2.0.0

4 years ago

1.3.1

4 years ago

1.3.0

4 years ago

1.1.0

5 years ago

1.0.7

5 years ago

1.0.6

5 years ago

1.0.5

5 years ago

1.0.4

5 years ago

1.0.3

5 years ago

1.0.2

5 years ago

1.0.1

5 years ago

1.0.0

5 years ago