Skip to content

Releases: seek-oss/eslint-config-seek

v14.1.0

16 Oct 22:12
fc4154c
Compare
Choose a tag to compare

Minor Changes

  • Upgrade eslint-plugin-react-hooks to version 5, removing the need for @eslint/compat. (#155)

    eslint-plugin-react-hooks contains some minor rule changes. Refer to the release notes for more information.

v14.0.2

29 Sep 02:31
7b7e292
Compare
Choose a tag to compare

Patch Changes

  • Prioritise eslint-config-prettier overrides over the base rules (#152)

v14.0.1

25 Sep 05:49
e90578b
Compare
Choose a tag to compare

Patch Changes

  • Define plugins without file scopes, to allow for improved extensibility (#149)

v14.0.0

23 Sep 09:26
f329bf1
Compare
Choose a tag to compare

Major Changes

  • Some language options have been restored to defaults: (#145)

    • sourceType is now set to the default of module (previously script in some scenarios).
    • ecmaVersion is now set to the default of latest (previously 2022 and 6)
    • Babel has been removed
  • Replace eslint-plugin-import with eslint-plugin-import-x (#145)

    To migrate, any references to eslint-plugin-import should be replaced with eslint-plugin-import-x, and import/ rules with import-x/.

    In addition, it's possible that this may introduce slight behaviour changes.

  • Require TypeScript peer dependency >=5.5.4 (#145)

  • Migrate to ESLint 9, @typescript-eslint 8. (#145)

    These changes may affect your project setup if you are customising your ESLint configuration. See the individual migration guides:

    In addition, through these major upgrades, some lint rules have changed or have been renamed. You will likely need to autofix and/or adjust your code after running ESLint.

    As part of this migration, this project has migrated to Flat ESLint configuration. Read the migration guide: https://eslint.org/docs/latest/use/configure/migration-guide.

Minor Changes

  • Upgrade a number of dependencies. These should have no/minimal impact. (#145)

    • eslint-plugin-cypress
    • eslint-config-prettier
    • eslint-plugin-jest
    • eslint-plugin-react, eslint-plugin-react-hooks

v13.1.1

22 Jul 00:58
5f6ae2f
Compare
Choose a tag to compare

Patch Changes

  • Update and unpin eslint-import-resolver-typescript dependency (#143)

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)