パッケージの詳細

@overlookmotel/eslint-config-jest

overlookmotel59MIT6.0.1

@overlookmotel's ESLint config for tests with jest

eslint, eslintconfig, config, overlookmotel

readme

NPM version Build Status Dependency Status Dev dependency Status Coverage Status

@overlookmotel's ESLint config for tests with jest

Usage

Add to .eslintrc: "extends": "@overlookmotel/eslint-config-jest"

NB Does not extend the base config @overlookmotel/eslint-config so use "extends": "@overlookmotel/eslint-config" too in .eslintrc.

Add dev dependencies in package.json:

  • @overlookmotel/eslint-config-jest
  • eslint

If using NPM before v7, additionally add peer dependencies as dev dependencies in package.json:

  • eslint-plugin-jest

Versioning

This module follows semver. Breaking changes will only be made in major version updates.

All active NodeJS release lines are supported (v12+ at time of writing). After a release line of NodeJS reaches end of life according to Node's LTS schedule, support for that version of Node may be dropped at any time, and this will not be considered a breaking change. Dropping support for a Node version will be made in a minor version update (e.g. 1.2.0 to 1.3.0). If you are using a Node version which is approaching end of life, pin your dependency of this module to patch updates only using tilde (~) e.g. ~1.2.3 to avoid breakages.

Tests

Use npm test to run the tests. Use npm run cover to check coverage.

Changelog

See changelog.md

Issues

If you discover a bug, please raise an issue on Github. https://github.com/overlookmotel/eslint-config-jest/issues

Contribution

Pull requests are very welcome. Please:

  • ensure all tests pass before submitting PR
  • add tests for new features
  • document new functionality/API additions in README
  • do not add an entry to Changelog (Changelog is created when cutting releases)

更新履歴

Changelog

6.0.1

Dev:

  • Fix Jest config [fix]

6.0.0

Breaking changes:

  • Update to ESLint 8

Dev:

  • Run tests on CI on Node v17
  • Clean up after cover NPM script even if fails
  • Update dev dependencies

Docs:

  • Update license year

5.0.1

Dev:

  • Fix package-lock.json version
  • Update dev dependencies

Docs:

  • Correct supported Node version
  • Correct changelog

5.0.0

Features:

  • Drop support for Node v10

Dependencies:

  • Update peer dependencies

No code:

  • Linting fixes

Dev:

  • Use NPM v7 for development
  • Use Github Actions for CI
  • Update dev dependencies

Docs:

  • Remove Greenkeeper badge
  • Update license year
  • Remove license indentation

4.1.1

Rules:

  • lowercase-name relaxed with ignoreTopLevelDescribe option

Dependencies:

  • Update peer dependencies

Docs:

  • Correct changelog

4.1.0

Features:

  • Drop support for Node v13

Dependencies:

  • Update peer dependencies

Tests:

  • Import module by name [refactor]
  • Run tests in dev mode

Dev:

  • Replace .npmignore with files list in package.json
  • Update dev dependencies
  • CI run tests on Node v14
  • .editorconfig config
  • Simplify lint scripts
  • Simplify Jest config
  • Remove sudo key from Travis CI config
  • Travis CI cache NPM

4.0.1

Dev:

  • NPM ignore jest.config.js

4.0.0

Breaking changes:

  • Drop support for Node v8

Refactor:

  • Import file extensions

Dependencies:

  • Update ESLint peer dependencies

No code:

  • Header code comments

Dev:

  • CI run tests on Node v13
  • Update dev dependencies
  • Tab width 2 in .editorconfig
  • ESLint ignore coverage dir
  • Update .gitignore + .npmignore
  • Remove sudo key from Travis CI config

Docs:

  • Versioning policy
  • Update license year

3.0.1

Dev:

  • Test with Jest

Doc:

  • Fix changelog

3.0.0

Breaking changes:

  • Update peer dependencies

Dev:

  • Update dev dependencies

2.1.0

Features:

  • Update ESLint peer dependency

Dev:

  • Update dev dependencies

2.0.1

Dev:

  • Update dev dependencies

2.0.0

Breaking changes:

  • Drop support for Node v6
  • Update peer dependencies

Dev:

  • CI run tests on Node v12
  • package-lock.json
  • Update dev dependencies

Doc:

  • Correct README

1.1.1

Dev:

  • Update dev dependency @overlookmotel/eslint-config
  • Update dev dependency @overlookmotel/eslint-config-tests
  • Git ignore package-lock.json

1.1.0

Rules:

  • no-disabled-tests rule is error not warn

Other:

  • Update dev dependency @overlookmotel/eslint-config

1.0.2

  • Update dependencies
  • Tests: Fix lint error [refactor]

1.0.1

  • Add dev dependency eslint-plugin-jest [fix]
  • Update dev dependency @overlookmotel/eslint-config

1.0.0

  • Initial release