eslint-config-seek
Advanced tools
Changelog
10.1.0
Enhanced TypeScript support for eslint-plugin-import
via eslint-import-resolver-typescript
(#81)
This means you can:
import
/require
files with extension.cts
/.mts
/.ts
/.tsx
/.d.cts
/.d.mts
/.d.ts
- Use
paths
defined intsconfig.json
- Prefer resolving
@types/*
definitions over plain.js
/.jsx
- Multiple tsconfigs support just like normal (i.e. in a monorepo)
imports/exports
fields support inpackage.json
Fixed TypeScript support for eslint-plugin-import
(#81)
Some rules provided by eslint-plugin-import
(e.g. import/no-duplicates
, import/order
) don't work or work incorrectly without it.
Before — passes:
import { ComponentDocs as InternalComponentDocs } from '@monorepo/docs';
import braidSnippets from 'braid-design-system/lib/playroom/snippets';
import { Snippets } from 'playroom';
import reactElementToJsxString from 'react-element-to-jsx-string';
After — correctly identifies @monorepo/docs
as internal (as defined in sku) and moves it after the external imports:
import braidSnippets from 'braid-design-system/lib/playroom/snippets';
import { Snippets } from 'playroom';
import reactElementToJsxString from 'react-element-to-jsx-string';
import { ComponentDocs as InternalComponentDocs } from '@monorepo/docs';
Upgrade dependencies (#81)
Changelog
10.0.0
eslint-plugin-jest 27 (#79)
This major release includes breaking changes. See the release note for more information.
The jest/no-alias-methods
rule is now enforced to discourage usage of alias methods that will be removed in Jest 30.
- .toBeCalled()
+ .toHaveBeenCalled()
Changelog
9.0.0
Support ESLint 8.x (#73)
We've upgraded the parsers and plugins bundled in eslint-config-seek
for ESLint 8.x compatibility. Some linting rules have changed and may require manual triage. In particular, we've applied the following major upgrades:
This includes changes to the recommended rule set.
babel-eslint
→ @babel/eslint-parser
This resolves the following installation warning:
babel-eslint is now @babel/eslint-parser. This package will no longer receive updates.
This unifies on a single prettier
config.
eslint-plugin-cypress
is currently incompatible with ESLint 8.x. Projects that utilise Cypress should remain on ESLint 7.x.
Turn off no-return-await
(#74)
return await
produces richer stack traces with a marginal performance penalty in recent Node.js versions. This tradeoff is now left to individual consumers to weigh up and optionally enforce.