Skip to content

Releases: seek-oss/eslint-config-seek

v13.1.0

30 Apr 01:51
8519dc1
Compare
Choose a tag to compare

Minor Changes

  • Adds no-fallthrough as an error. (#135)
    This disallows fallthrough of case statements in switch statements.

    Examples

    You need to add a break, return or throw to each case. You can also skip this rule if it is intentionally absent (however that is a rare scenario).

    switch (name) {
      case 'John':
        console.log('Hi John');
    +   break;
    }

Patch Changes

v13.0.0

25 Mar 00:01
5aeb7ce
Compare
Choose a tag to compare

Major Changes

  • Upgrade Typescript Eslint to 7.2.0 to support Typescript 5.4. (#136)

    This bumps the minimum required versions of Node.js to 18.18.0, Eslint to 8.56.0 and Typescript to 4.7.5 due to a breaking change introduced by Typescript Eslint in 7.0.0.

v12.1.1

15 Nov 03:38
f09a8ce
Compare
Choose a tag to compare

Patch Changes

  • Prevents the new curly-brace-presence rule from affecting children. (#133)

    In the previous version, react/jsx-curly-brace-presence was added to the eslint rules.
    This was primarily intended to catch unnecessarily using braces around string props.

    - <Stack space={'medium'}>
    + <Stack space="medium">

    Because of the configuration we provided, this had the unintended side effect of removing curly braces inside child text that were being used to prevent the unescaped entities rule.

    - <Text>The available props are {'"up"'} and {'"down"'}</Text>
    + <Text>The available props are "up" and "down"</Text>
    // This is now an unescaped entity error

    To fix this, the curly brace rule will now ignore children, and only alert on prop values.

v12.1.0

09 Nov 22:22
efb504e
Compare
Choose a tag to compare

Minor Changes

  • Adds react/jsx-curly-brace-presence as an error. (#130)
    This removes unnecessary braces around strings in props and children.

    It also enforces braces around expressions in props and children.

    Examples

    // Unecessary braces around string prop
    - <Column width={'content'}>
    + <Column width="content">
    // Unecessary braces around string child
    - <Text>{'Hello'}</Text>
    + <Text>Hello</Text>
    // Mandatory braces around prop expression
    - <Button icon=<IconSearch />>
    + <Button icon={<IconSearch />}>

v12.0.1

04 Aug 00:59
143b57d
Compare
Choose a tag to compare

Patch Changes

  • Fix array-type rule (#128)

v12.0.0

04 Aug 00:45
cd74416
Compare
Choose a tag to compare

Major Changes

  • Bump up typescript-eslint monorepo to ^6.0.0. (#125)

    This requires eslint 7+.

    This change also includes a number of rule changes to the default configuration. Read the release notes for more information.

v11.3.1

07 Jul 05:39
b3ceb2f
Compare
Choose a tag to compare

Patch Changes

  • Add a temporary override until everybody removes the React import (#122)

v11.3.0

06 Jul 23:54
8644977
Compare
Choose a tag to compare

Minor Changes

Patch Changes

  • Update dependencies (#120)

  • Disable resolving node_modules from the root of the repo. This is problematic for JavaScript-only monorepos (where there are multiple node_modules directories). (#119)

  • Add a workaround for TypeScript-ESLint slowness with TypeScript 5.1 (#117)

v11.2.1

07 Jun 01:16
6a76425
Compare
Choose a tag to compare

Patch Changes

  • Remove autofix for custom unsafe-to-chain-command rule (#115)

    The autofix for this rule didn't exactly adhere to the recommendation in the cypress docs,
    and would've required additional complexity and user-configuration to do so, so the decision was made to remove it.

v11.2.0

06 Jun 04:40
9a113d2
Compare
Choose a tag to compare

Minor Changes

  • Add autofix for custom unsafe-to-chain-command rule (#113)