包详细信息

@overlookmotel/eslint-config-node

overlookmotel53MIT4.1.0

@overlookmotel's ESLint config for NodeJS

eslint, eslintconfig, config, overlookmotel

自述文件

NPM version Build Status Coverage Status

@overlookmotel's ESLint config for NodeJS

Usage

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

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-node
  • eslint

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

  • eslint-plugin-node

Versioning

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

All active NodeJS release lines are supported (v14+ 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-node/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

4.1.0

Features:

  • Parse latest syntax

Minor:

  • Drop support for Node v12
  • Drop support for Node v17

Dependencies:

  • Update peer dependencies

Dev:

  • Update dev dependencies
  • CI run tests on Node v18 + v19

Docs:

  • Remove David badges from README

4.0.2

Docs:

  • Fix changelog

4.0.1

Dev:

  • Remove unnecessary ESLint config
  • Update dev dependencies

Docs:

  • Fix changelog

4.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

Docs:

  • Update license year

3.0.1

Bug fixes:

  • Parser use ecmaVersion 2021

3.0.0

Breaking changes:

  • Disable rules already covered by eslint-plugin-import

Features:

  • Drop support for Node v10

Bug fixes:

  • Fix incorrect errors for ESM syntax
  • Remove parserOptions.sourceType

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

2.1.2

Docs:

  • Add missing changelog entry [fix]

2.1.1

Tests:

  • Run tests in dev mode

2.1.0

Features:

  • Drop support for Node v13

Tests:

  • Import module by name [refactor]

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

2.0.0

Breaking changes:

  • Drop support for Node v8

Refactor:

  • Import file extensions

Dependencies:

  • Update ESLint peer dependencies

No code:

  • Header code comments

Dev:

  • Run tests on CI on Node v13
  • Update dev dependencies
  • Tab width 2 in .editorconfig
  • ESLint ignore coverage dir
  • Remove npm-debug.log from .gitignore

Docs:

  • Versioning policy
  • Update license year

1.0.1

Empty release to bump version

1.0.0

Initial release