Skip to content

Commit 4e7d916

Browse files
authored
chore: update ESLint to v9 (jestjs#15531)
1 parent 28b4469 commit 4e7d916

File tree

72 files changed

+1488
-1418
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

72 files changed

+1488
-1418
lines changed

.eslintignore

Lines changed: 0 additions & 19 deletions
This file was deleted.

.eslintplugin/index.js

Lines changed: 0 additions & 18 deletions
This file was deleted.

.eslintplugin/index.mjs

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
/**
2+
* Copyright (c) Meta Platforms, Inc. and affiliates.
3+
*
4+
* This source code is licensed under the MIT license found in the
5+
* LICENSE file in the root directory of this source tree.
6+
*/
7+
8+
import {builtinRules} from 'eslint/use-at-your-own-risk';
9+
import typescriptEslint from 'typescript-eslint';
10+
11+
const rules = {
12+
'no-restricted-types-eventually':
13+
typescriptEslint.plugin.rules['no-restricted-types'],
14+
'prefer-rest-params-eventually': builtinRules.get('prefer-rest-params'),
15+
'prefer-spread-eventually': builtinRules.get('prefer-spread'),
16+
};
17+
18+
export default {rules};

0 commit comments

Comments
 (0)