包详细信息

eslint-config-logux

logux185MIT不推荐使用27.0.0

This project was renamed to @logux/eslint-config

An ESLint shareable config for Logux

logux, eslint, eslint-config

自述文件

Logux ESLint Config

Logux logo

Shareable code style and best practice for Logux projects.

Install

For browser and universal project:

yarn add --dev eslint-config-logux eslint-config-standard eslint-plugin-promise eslint-plugin-jest eslint-plugin-node eslint-plugin-es5 eslint-plugin-standard eslint-plugin-security eslint-plugin-import eslint

For server-only project you can use config with ES2015+ support:

yarn add --dev eslint-config-logux eslint-config-standard eslint-plugin-promise eslint-plugin-jest eslint-plugin-node eslint-plugin-standard eslint-plugin-security eslint-plugin-import eslint-plugin-prefer-let eslint

Usage

Add this config to package.json or other ESLint config.

Browser and universal project:

  "eslintConfig": {
    "extends": "eslint-config-logux/browser"
  }

Server-only project:

  "eslintConfig": {
    "extends": "eslint-config-logux/node"
  }

更新日志

Change Log

This project adheres to Semantic Versioning.

27.0

  • Use ESLint Plugin Jest 22.x.
  • Add jest/prefer-spy-on rule.

26.0.1

  • Use ESLint Plugin Node 8.x.

26.0

  • Add jest/prefer-to-contain rule.
  • Remove jest/expect-expect rule.

25.0.2

  • Allow import worker_threads in tests.
  • Use test rules for any files in test/.

25.0.1

  • Use ESLint Standard config 11.

25.0

  • Add jest/expect-expect rule.
  • Use eslint-plugin-promise 4.x.

24.0

  • Add no-misleading-character-class rule.
  • Add require-atomic-updates rule to eslint-config-logux/node.
  • Add prefer-let rule to eslint-config-logux/node.

23.1.0

  • Do not prefer const anymore.

23.0.4

  • Fix peer dependencies.

23.0.3

  • Update eslint-plugin-node.

23.0.2

  • Reduce package size.

23.0.1

  • Use ESLint 5.

23.0

  • Remove strict rule.
  • Remove Node.js 4 support.

22.1

  • Remove optimize-regex ESLint plugin.

22.0

  • Rename node4.js to node.js.
  • Add optimize-regex ESLint plugin.
  • Add prefer-rest-params to eslint-config-logux/node.

21.0

  • Use ESLint Standard config 11.

20.0

  • Add jest/consistent-test-it rule with it function.

19.0

  • Update eslint-plugin-node 6.0.

18.0

  • Add jest/valid-expect-in-promise rule.
  • Add jest/prefer-to-be-undefined rule.
  • Add jest/prefer-to-be-null rule.

17.0

  • Add jest/prefer-to-have-length rule.

16.2

  • Remove prefer-template rule.
  • Remove generator-star-spacing rule.

16.1.1

  • Update Jest plugin in peerDependencies.

16.1

  • Disable node/no-unpublished-require rule for test files.

16.0

  • Use ESLint 4.2.
  • Add getter-return rule.

15.0.1

  • Fix Jest files pattern for tests in project root.

15.0

  • Add node/no-unpublished-require rule.
  • Add node/no-extraneous-require rule.
  • Add node/no-missing-require rule.

14.0

  • Use ESLint 4.1.
  • Use Jest rules only in test files.
  • Remove test from global names.

13.2

  • Remove security/detect-child-process rule.

13.1

  • Remove arrow-body-style rule from Node 4 config.

13.0

  • Use ESLint 4.0.
  • Add for-direction rule.

12.0

  • Add jest/valid-expect rule.

11.0.2

  • Update Standard dependencies.

11.0.1

  • Fix eslint-plugin-standard peer dependency.

11.0

  • Use ESLint Standard config 10.

10.0

  • Add eslint-plugin-security plugin.

9.0

  • Add nonblock-statement-body-position rule.

8.0

  • Use ESLint Standard config 7.0.

7.0

  • Use use strict and const in Node.js 4 config.

6.0

  • Add eslint-plugin-jest plugin.

5.0.1

  • Remove optional peer dependency to avoid warning.

5.0

  • Rename eslint-config-logux to eslint-config-logux/browser.
  • Add node4 config for node-only projects (by Roman Fursov).

4.0

  • Deny ES2015+ features (by Nikita Gusakov).

3.0

  • Add no-useless-return rule.

2.0

  • Add arguments to no-unused-vars rule.
  • Remove no-undefined rule.

1.0

  • Initial release.