Socket
Socket
Sign inDemoInstall

@thibaudcolas/eslint-plugin-cookbook

Package Overview
Dependencies
230
Maintainers
2
Versions
9
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

6.0.0

Diff

Changelog

Source

6.0.0 (2020-06-03)

Features

  • config: update all config dependencies, with major updates (6c893b9)
  • deps: open ESLint peerDependency range to any version above 5.6.0 (a5239e7)

BREAKING CHANGES

  • config: this updates all configs/plugins this package is based on, as well as supporting ESLint 7. Please refer to the table below:

| package | from | to | | ------------------------- | ----------------- | ------- | | eslint | ^5.6.0 and ^6.0.0 | >=5.6.0 | | eslint-config-airbnb | 18.0.1 | 18.1.0 | | eslint-config-prettier | 6.1.0 | 6.11.0 | | eslint-plugin-import | ^2.18.2 | ^2.20.2 | | eslint-plugin-jsx-a11y | ^6.2.3 | ^6.2.3 | | eslint-plugin-react | ^7.14.3 | ^7.20.0 | | eslint-plugin-react-hooks | ^1.7.0 | ^4.0.4 |

thi-bot
published 5.0.1 •

Changelog

Source

5.0.1 (2019-09-02)

Bug Fixes

  • readme: document which configs this package extends from (e10c09c)
  • readme: re-add missing tips section in README (1b9dfce)
thi-bot
published 5.0.0 •

Changelog

Source

5.0.0 (2019-09-02)

Features

  • config: reenable jsx-a11y label rules (7fcf0e3)
  • config: update all config dependencies, with major updates (96f2214)

BREAKING CHANGES

  • config: we’ve re-enabled label-related rules from jsx-a11y. They seem to be more reliable than they have been in the past.
  • config: this updates all configs/plugins this package is based on, as well as supporting ESLint 6. Please refer to the table below:

| package | from | to | | ------------------------- | ------- | ----------------- | | eslint | ^5.6.0 | ^5.6.0 and ^6.0.0 | | eslint-config-airbnb | 17.1.0 | 18.0.1 | | eslint-config-prettier | 3.0.1 | 6.1.0 | | eslint-plugin-import | ^2.14.0 | ^2.18.2" | | eslint-plugin-jsx-a11y | ^6.1.1 | ^6.2.3" | | eslint-plugin-react | ^7.11.1 | ^7.14.3" | | eslint-plugin-react-hooks | N/A | ^1.7.0 |

Additionally, eslint-plugin-react-hooks has been added to enforce the rules of hooks.

thi-bot
published 4.0.1 •

Changelog

Source

4.0.1 (2018-09-22)

Bug Fixes

  • release: upgrade lodash transitive dependency to fix vulnerability (5a19da2)
thi-bot
published 4.0.0 •

Changelog

Source

4.0.0 (2018-09-22)

Features

  • config: cleanup config rules (b046648)
  • config: export only the Prettier-compatible config (b5473ce)
  • config: remove Prettier plugin (4d3574d)

BREAKING CHANGES

  • config: Updates how rules are configred in the config, generally to be stricter. Here are the detailed changes:
"import/no-extraneous-dependencies": Array [
  2,
  Object {
-     "devDependencies": true,
+     "devDependencies": Array [
+       "test/**",
+       "tests/**",
+       "spec/**",
+       "**/__tests__/**",
+       "**/__mocks__/**",
+       "test.{js,jsx}",
+       "test-*.{js,jsx}",
+       "**/*{.,_}{test,spec}.{js,jsx}",
+       "**/jest.config.js",
+       "**/vue.config.js",
+       "**/webpack.config.js",
+       "**/webpack.config.*.js",
+       "**/rollup.config.js",
+       "**/rollup.config.*.js",
+       "**/gulpfile.js",
+       "**/gulpfile.*.js",
+       "**/Gruntfile{,.js}",
+       "**/protractor.conf.js",
+       "**/protractor.conf.*.js",
+       "**/dangerfile.js",
+    ],
  },
],

- "import/prefer-default-export": "off",
+ "import/prefer-default-export": "error",

- "jsx-a11y/label-has-associated-control": "error",
+ "jsx-a11y/label-has-associated-control": "off",

- "react/jsx-boolean-value": "off",
+ "react/jsx-boolean-value": "error",

- "react/jsx-indent": "error",
+ "react/jsx-indent": "off",

- "react/jsx-indent-props": "error",
+ "react/jsx-indent-props": "off",

- "react/sort-comp": "off",
+ "react/sort-comp": "error",

- "arrow-body-style": "off",
+ "arrow-body-style": "error",

- "eol-last": "warn",
+ "eol-last": "off",

- "id-length": "off",
+ "id-length": "off",

- "indent": "error",
+ "indent": "off",

- "jsx-quotes": "warn"
+ "jsx-quotes": "off"

- "max-len": "warn"
+ "max-len": "off"

"no-console": Array [
    "warn",
-   Object {
-     "allow": Array [
-       "warn",
-       "error",
-       "time",
-       "timeEnd",
-     ],
-   },
],

- "no-new": "off"
+ "no-new": "error",

- "no-plusplus": "off"
+ "no-plusplus": "error",

"object-shorthand": Array [
    "error",
-   "methods",
+   "always",
+   Object {
+     "avoidQuotes": true,
+     "ignoreConstructors": false,
+   },
],
  • config: now exports only the recommended config, Prettier-compatible. There is no reason to have separate config since it no longer mandates Prettier usage.
  • config: Removed eslint-plugin-prettier, and its prettier/prettier rule from the config. Projects should have Prettier running without ESLint anyway so it also processes other file types. Running it within Prettier offers marginal improvements only, and has a performance drawback, as well as unnecessarily tying together formatting choices governed by Prettier and the ESLint config.
thi-bot
published 3.0.3 •

Changelog

Source

3.0.3 (2018-09-17)

Bug Fixes

  • config: remove option that does not serialise as JSON (e85f0c5)
thi-bot
published 3.0.2 •

Changelog

Source

3.0.2 (2018-09-17)

Bug Fixes

  • config: make import/no-cycle config serialisable to JSON (5e06bbb)
thi-bot
published 3.0.1 •

Changelog

Source

3.0.1 (2018-09-17)

Bug Fixes

  • config: fix exposed configs being invalid because of new attributes (a6f46f7)
  • release: fix package.main pointing at the wrong file (f896eac)
thibaudcolas
published 3.0.0 •

Changelog

Source

3.0.0 (2018-09-16)

First release

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc