Skip to content

Commit

Permalink
chore: update ESLint to v9 (#15531)
Browse files Browse the repository at this point in the history
  • Loading branch information
fisker authored Mar 5, 2025
1 parent 28b4469 commit 4e7d916
Show file tree
Hide file tree
Showing 72 changed files with 1,488 additions and 1,418 deletions.
19 changes: 0 additions & 19 deletions .eslintignore

This file was deleted.

18 changes: 0 additions & 18 deletions .eslintplugin/index.js

This file was deleted.

18 changes: 18 additions & 0 deletions .eslintplugin/index.mjs
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
/**
* Copyright (c) Meta Platforms, Inc. and affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/

import {builtinRules} from 'eslint/use-at-your-own-risk';
import typescriptEslint from 'typescript-eslint';

const rules = {
'no-restricted-types-eventually':
typescriptEslint.plugin.rules['no-restricted-types'],
'prefer-rest-params-eventually': builtinRules.get('prefer-rest-params'),
'prefer-spread-eventually': builtinRules.get('prefer-spread'),
};

export default {rules};
Loading

0 comments on commit 4e7d916

Please sign in to comment.