Détail du package

eslint-config-logdna

logdna1.3kMIT7.0.3

LogDNA's preferred eslint config to be used across all projects

readme

eslint-config-logdna

All Contributors

This package contains the eslint configuration that LogDNA prefers to use across all projects, public and private.

Installation

Requires eslint also

We do not use peer dependencies, so make sure that eslint is also installed as a dev dependency.

npm install eslint-config-logdna eslint --save-dev

Usage

Once the package is installed, there are a few easy steps to get it executing within a project.

Set up npm scripts

It is best if eslint is configured as a script in package.json and hooked in as pre scripts where necessary.

"scripts": {
  "lint": "eslint .",
  "pretest": "npm run lint"
}

Configuration in package.json

Add this configuration section to the package.json file of the target project. The ignorePatterns can be set to any directory specific to the project that needs linting. The ignorePatterns is only important for directories that may contain .js files since eslint will only lint javascript files by default.

"eslintConfig": {
  "extends": [
    "logdna"
  ],
  "root": true,
  "ignorePatterns": [
    "node_modules/",
    "test/",
    "coverage/"
  ]
}

Contributors ✨

Thanks goes to these wonderful people (emoji key):


Eric Satterwhite

📖 💻 ⚠️ 🚧

Darin Spivey

📖 💻 ⚠️

Mike Del Tito

📖 💻 ⚠️ 🚧

This project follows the all-contributors specification. Contributions of any kind welcome!

changelog

Changelog

7.0.3 (2023-12-12)

Chores

  • deps: eslint-plugin-sensible@3.1.0 533b039 - Eric Satterwhite

7.0.2 (2023-03-29)

Chores

  • deps: eslint-plugin-sensible@3.0.0 13937d7 - Eric Satterwhite

7.0.1 (2023-03-08)

Chores

  • deps: eslint-plugin-sensible@3.0.2 b9865bd - Eric Satterwhite

7.0.0 (2022-12-06)

Bug Fixes

  • no-unused-vars: enforce rule for unused arguments 697525e - Mike Del Tito, closes: #26

BREAKING CHANGES

  • no-unused-vars: all named arguments and all positional arguments after the last used argument will now be checked.

6.1.2 (2022-09-19)

Chores

  • Update eslint-plugin-logdna to 2.0.1 c93492b - Eric Satterwhite, closes: #23

6.1.1 (2022-09-19)

Chores

  • dep: eslint-plugin-sensible@3.0.1 647f85b - Eric Satterwhite

6.1.0 (2022-04-30)

Features

  • rules: consistent func param newlines 8f57501 - Eric Satterwhite

6.0.0 (2021-11-03)

Chores

  • deps: eslint-plugin-sensible@3.0.0 d74acfe - Eric Satterwhite

BREAKING CHANGES

  • deps: Minimum eslint version 8.x
  • deps: Mimimum node.js version 12.x

5.1.0 (2021-05-31)

Features

  • rules: add no-multiple-empty-lines rule 29a8c68 - Mike Del Tito

5.0.0 (2021-04-16)

Features

  • rules: switch to tap-no-deprecated-aliases rule 9ee6480 - Mike Del Tito

BREAKING CHANGES

  • rules: Un-aliased tap assertion methods will now be enforced

tap@15.0.0 deprecated the use of aliases for assertion methods, which invalidates the concept of a "preferred" alias. This switches over to a new rule for requiring the use of un-aliased assertion methods.

This rule is auto-fixable, and the changes it enforces are backwards compatible with older versions of tap.

Ref: LOG-9396

4.2.1 (2021-04-16)

Chores

  • deps: eslint-plugin-sensible@2.3.1 93fd2a4 - Eric Satterwhite

Continuous Integration

  • use semantic-release 1518b41 - Mike Del Tito

2021-03-23, Version 4.2.0 (Stable)

  • [a0339e7211] - (SEMVER-MINOR) feat(package): enable ecmascript 2020 (Eric Satterwhite)
  • [7c980a6458] - docs: include code of conduct and contributing guides (Eric Satterwhite)
  • [a9dddd782d] - docs: add @mdeltito as a contributor (Eric Satterwhite)
  • [e8c57e06b7] - docs: add @darinspivey as a contributor (Eric Satterwhite)
  • [2493b1256f] - docs: add @esatterwhite as a contributor (Eric Satterwhite)

2021-03-20, Version 4.1.0 (Stable)

  • [1d66479244] - (SEMVER-MINOR) feat(rules): enable rule to dis-allow debugger statements. (Eric Satterwhite)
  • [e7bca6ff2b] - chore(deps): eslint@7.19.0 (Eric Satterwhite)

2020-12-31, Version 4.0.2 (Stable)

  • [9100518359] - chore(deps): eslint-plugin-sensible@2.2.1 (Eric Satterwhite)

2020-12-21, Version 4.0.1 (Stable)

  • [d1a40f3572] - chore(test): Read fixtures with eslint rather than fs (Darin Spivey)

2020-12-04, Version 4.0.0 (Stable)

  • [deb2012c76] - (SEMVER-MAJOR) feat(rules)!: func-style disallows function expressions (Darin Spivey) LOG-8207
  • [1f665218c7] - feat(test): Fix JUnit file so CI can report errors (Darin Spivey)
  • [6f8bcc12ea] - (SEMVER-MINOR) feat(rules): arrow-body-style enforces braces around arrow functions (Darin Spivey) LOG-8207
  • [f14276f30e] - (SEMVER-MINOR) feat(rules): arrow-parens are always required (Darin Spivey) LOG-8207
  • [f912dc11d0] - chore: Put test fixtures in one directory (Darin Spivey) LOG-8207

2020-11-18, Version 3.1.0 (Stable)

  • [411e0cac72] - (SEMVER-MINOR) feat: allow unused rest siblings (Michael J. Del Tito) LOG-7154

2020-11-18, Version 3.0.0 (Stable)

  • [b6f3269db5] - (SEMVER-MAJOR) feat!: add eslint-plugin-logdna and associated config (Mike Del Tito)

2020-10-27, Version 2.0.1 (Stable)

2020-09-30, Version 2.0.0 (Stable)

  • [8b63b65158] - fix(doc): add language annotation to code blocks in README (Eric Satterwhite)
  • [5caf5796a6] - (SEMVER-MAJOR) feat!: drop max-len rule from 160 to 90 (Eric Satterwhite) LOG-7437

2020-09-29, Version 1.0.2 (Stable)

  • [4e5f33dc22] - package: Fine-tune the .npmignore file (Darin Spivey)

2020-09-28, Version 1.0.1 (Stable)

  • [2680d5ca9b] - ci: Test Jenkins publishing (Darin Spivey)

2020-09-23, Version 1.0.0 (Stable)

  • [fe6c203b19] - (SEMVER-MAJOR) ci: Add NPM_PUBLISH_TOKEN to the release stage (Darin Spivey)

2020-09-22, Version 0.0.1 (Stable)

  • [380cc94fd1] - fix: Correct missing mkdir in Jenkinsfile (Darin Spivey)