New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

eslint-config-peerigon

Package Overview
Dependencies
Maintainers
9
Versions
125
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

eslint-config-peerigon - npm Package Versions

1
13

27.1.1

Diff

Changelog

Source

27.1.1 (2020-02-13)

Bug Fixes

  • react: Fix problem with escape hatch in styles/react-jsx-no-literals (993568b)
peeri
published 27.1.0 •

Changelog

Source

27.1.0 (2020-02-13)

Features

  • typescript: Disable no-extraneous-class (c4f49eb)
  • Allow exceptions for naming conventions in TypeScript projects (89de83b)
peeri
published 27.0.1 •

Changelog

Source

27.0.1 (2020-02-12)

Bug Fixes

  • Add new example .editorconfig (5891b4c)
peeri
published 27.0.0 •

Changelog

Source

27.0.0 (2020-02-12)

Bug Fixes

  • typescript: Do not set tsconfig.json by default (6b35fd4)

BREAKING CHANGES

  • typescript: We don't set the tsconfig.json now by default. Every project needs to specify it explicitly. This prevents some bugs that would be otherwise hard to understand. We also added a note to the README which should help people to set it up.
peeri
published 26.0.0 •

Changelog

Source

26.0.0 (2020-02-12)

Bug Fixes

  • Remove impractical rules (56c62a2)
  • base: Disable require-atomic-updates (38cd859)
  • base: Improve padding-line-between-statements (4b3c394)
  • base: Increase soft limit of complexity rule (a78a702)
  • base: Temporarily disable require-unicode-regexp (b248df7)
  • typescript: Allow _ parameter names (c0b3779)
  • typescript: Only require return await inside try-catch (709751f)
  • typescript: Switch to regular camelCase and PascalCase naming convention (182c295)
  • Disable no-return-await (14db3eb)
  • Fine-tune soft limits of max-lines and max-dependencies (a123f41)

chore

Features

  • react: Allow functions created during render (8c80148)
  • Lower severity of opinionated rules (c0bea51)
  • typescript: Add new TypeScript rules (9e77b24)
  • typescript: Disable @typescript-eslint/explicit-module-boundary-types again (a88a683)
  • typescript: Enforce naming convention (1fb0844)
  • typescript: Improve TypeScript support in base ESLint rules (6763671)
  • Add @typescript-eslint/explicit-module-boundary-types (3f106a0)
  • Add bunch of JSDoc rules (680550e)
  • Add styles/no-default-export (d8b0242)
  • Add styles/no-null (a30511b)
  • Disable some jsdoc rules when using TypeScript (82220fa)
  • Improve jsdoc rules (0a6694d)
  • Improve prettier support (1cd6537)
  • base: Add no-dupe-else-if (0ee8136)
  • base: Add prefer-exponentiation-operator (fd41a01)
  • base: Add prefer-regex-literals (01599bd)
  • base: Add require-atomic-updates (69f2c36)
  • base: Add require-unicode-regexp (0b44ba5)
  • base: Disallow assignments of imports (0e6af86)
  • base: Disallow return in constructors (f9edbbc)
  • base: Disallow return in setters (f3f574c)
  • base: Require grouping of setters and getters (94792f2)

BREAKING CHANGES

  • react: The default style now is to allow functions created during render. The style peerigon/styles/react-jsx-allow-bind has been removed and replaced by its opposite peerigon/styles/react-jsx-no-bind for applications that use memo a lot.

The motivation behind this is that it's more convenient for a lot of people to create functions during render. The performance downside is usually not an issue and can be mitigated by better usage of useState().

  • typescript: There are new rules for TypeScript code:
  • typescript: The new rule enforces the consistent use of camelCase, PascalCase and UPPER_CASE for variable, property and member names. Additionally, only PascalCase is allowed for type-like structures.
  • Exported functions now need to specify an explicit return type. This enforces everyone to be explicit about the public interface of the module. This is likely to increase the developer experience because type errors will show up closer to the actual error.
  • Use param instead of arg and argument.
  • The prettier config now uses tabs instead of spaces. This is not actually breaking since Prettier will just format your code in a different way, but it will produce a lot of noise.
  • globPatterns.js has been renamed to glob-patterns.js
  • base: Require u flag in all regexes. The u flag adds unicode support and reports invalid regex patterns.
  • base: ESLint now reports a potential unsafe use of +=,-=,*=,/= in combination with async await
  • base: Regex literals are now preferred over new RegExp() if the regex is not dynamic.
  • base: The exponentiation operator is now preferred over Math.pow()
  • Support for Node versions below 10 has been removed.
  • base: Setters can't return values. This is enforced with a linting rule now. See https://eslint.org/docs/rules/no-setter-return
  • base: Assignments of imports are now disallowed. They throw a runtime error anyway. See https://eslint.org/docs/rules/no-import-assign
  • base: Certain If-else usages that were an error anyway are now a linting error. See ttps://eslint.org/docs/rules/no-dupe-else-if
  • base: Returning values from constructors is not allowed anymore. See https://eslint.org/docs/rules/no-constructor-return
  • base: Setters and getters now need to be grouped together. See https://eslint.org/docs/rules/grouped-accessor-pairs
  • Remove official ESLint 5 support
peeri
published 26.0.0-beta.4 •

peeri
published 26.0.0-beta.3 •

Changelog

Source

26.0.0-beta.3 (2020-02-06)

Features

  • Disable some jsdoc rules when using TypeScript (82220fa)
peeri
published 26.0.0-beta.2 •

Changelog

Source

26.0.0-beta.2 (2020-02-06)

Features

BREAKING CHANGES

  • Use param instead of arg and argument.
peeri
published 26.0.0-beta.1 •

Changelog

Source

26.0.0-beta.1 (2020-02-06)

Bug Fixes

  • base: Increase soft limit of complexity rule (a78a702)
  • Fine-tune soft limits of max-lines and max-dependencies (a123f41)
  • typescript: Do not "fix" 'any' to 'unknown' (154a42b)

chore

Features

  • Add styles/no-default-export (d8b0242)
  • Add styles/no-null (a30511b)
  • Improve prettier support (1cd6537)
  • base: Add no-dupe-else-if (0ee8136)
  • base: Add prefer-exponentiation-operator (fd41a01)
  • base: Add prefer-regex-literals (01599bd)
  • base: Add require-atomic-updates (69f2c36)
  • base: Add require-unicode-regexp (0b44ba5)
  • base: Disallow assignments of imports (0e6af86)
  • base: Disallow return in constructors (f9edbbc)
  • base: Disallow return in setters (f3f574c)
  • base: Require grouping of setters and getters (94792f2)
  • Add bunch of JSDoc rules (680550e)

BREAKING CHANGES

  • The prettier config now uses tabs instead of spaces. This is not actually breaking since Prettier will just format your code in a different way, but it will produce a lot of noise.
  • globPatterns.js has been renamed to glob-patterns.js
  • base: Require u flag in all regexes. The u flag adds unicode support and reports invalid regex patterns.
  • base: ESLint now reports a potential unsafe use of +=,-=,*=,/= in combination with async await
  • base: Regex literals are now preferred over new RegExp() if the regex is not dynamic.
  • base: The exponentiation operator is now preferred over Math.pow()
  • Support for Node versions below 10 has been removed.
  • base: Setters can't return values. This is enforced with a linting rule now. See https://eslint.org/docs/rules/no-setter-return
  • base: Assignments of imports are now disallowed. They throw a runtime error anyway. See https://eslint.org/docs/rules/no-import-assign
  • base: Certain If-else usages that were an error anyway are now a linting error. See ttps://eslint.org/docs/rules/no-dupe-else-if
  • base: Returning values from constructors is not allowed anymore. See https://eslint.org/docs/rules/no-constructor-return
  • base: Setters and getters now need to be grouped together. See https://eslint.org/docs/rules/grouped-accessor-pairs
  • Remove official ESLint 5 support
peeri
published 25.3.1 •

Changelog

Source

26.0.0 (2020-02-12)

Bug Fixes

  • Remove impractical rules (56c62a2)
  • base: Disable require-atomic-updates (38cd859)
  • base: Improve padding-line-between-statements (4b3c394)
  • base: Increase soft limit of complexity rule (a78a702)
  • base: Temporarily disable require-unicode-regexp (b248df7)
  • typescript: Allow _ parameter names (c0b3779)
  • typescript: Only require return await inside try-catch (709751f)
  • typescript: Switch to regular camelCase and PascalCase naming convention (182c295)
  • Disable no-return-await (14db3eb)
  • Fine-tune soft limits of max-lines and max-dependencies (a123f41)

chore

Features

  • react: Allow functions created during render (8c80148)
  • Lower severity of opinionated rules (c0bea51)
  • typescript: Add new TypeScript rules (9e77b24)
  • typescript: Disable @typescript-eslint/explicit-module-boundary-types again (a88a683)
  • typescript: Enforce naming convention (1fb0844)
  • typescript: Improve TypeScript support in base ESLint rules (6763671)
  • Add @typescript-eslint/explicit-module-boundary-types (3f106a0)
  • Add bunch of JSDoc rules (680550e)
  • Add styles/no-default-export (d8b0242)
  • Add styles/no-null (a30511b)
  • Disable some jsdoc rules when using TypeScript (82220fa)
  • Improve jsdoc rules (0a6694d)
  • Improve prettier support (1cd6537)
  • base: Add no-dupe-else-if (0ee8136)
  • base: Add prefer-exponentiation-operator (fd41a01)
  • base: Add prefer-regex-literals (01599bd)
  • base: Add require-atomic-updates (69f2c36)
  • base: Add require-unicode-regexp (0b44ba5)
  • base: Disallow assignments of imports (0e6af86)
  • base: Disallow return in constructors (f9edbbc)
  • base: Disallow return in setters (f3f574c)
  • base: Require grouping of setters and getters (94792f2)

BREAKING CHANGES

  • react: The default style now is to allow functions created during render. The style peerigon/styles/react-jsx-allow-bind has been removed and replaced by its opposite peerigon/styles/react-jsx-no-bind for applications that use memo a lot.

The motivation behind this is that it's more convenient for a lot of people to create functions during render. The performance downside is usually not an issue and can be mitigated by better usage of useState().

  • typescript: There are new rules for TypeScript code:
  • typescript: The new rule enforces the consistent use of camelCase, PascalCase and UPPER_CASE for variable, property and member names. Additionally, only PascalCase is allowed for type-like structures.
  • Exported functions now need to specify an explicit return type. This enforces everyone to be explicit about the public interface of the module. This is likely to increase the developer experience because type errors will show up closer to the actual error.
  • Use param instead of arg and argument.
  • The prettier config now uses tabs instead of spaces. This is not actually breaking since Prettier will just format your code in a different way, but it will produce a lot of noise.
  • globPatterns.js has been renamed to glob-patterns.js
  • base: Require u flag in all regexes. The u flag adds unicode support and reports invalid regex patterns.
  • base: ESLint now reports a potential unsafe use of +=,-=,*=,/= in combination with async await
  • base: Regex literals are now preferred over new RegExp() if the regex is not dynamic.
  • base: The exponentiation operator is now preferred over Math.pow()
  • Support for Node versions below 10 has been removed.
  • base: Setters can't return values. This is enforced with a linting rule now. See https://eslint.org/docs/rules/no-setter-return
  • base: Assignments of imports are now disallowed. They throw a runtime error anyway. See https://eslint.org/docs/rules/no-import-assign
  • base: Certain If-else usages that were an error anyway are now a linting error. See ttps://eslint.org/docs/rules/no-dupe-else-if
  • base: Returning values from constructors is not allowed anymore. See https://eslint.org/docs/rules/no-constructor-return
  • base: Setters and getters now need to be grouped together. See https://eslint.org/docs/rules/grouped-accessor-pairs
  • Remove official ESLint 5 support
SocketSocket SOC 2 Logo

Product

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

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc