chore(eslint): FlatConfig type deprecated, set to Config

This commit is contained in:
Elliot DeNolf
2024-09-20 22:46:40 -04:00
parent b1173dc6ad
commit 040c2a2fbb
84 changed files with 169 additions and 252 deletions

View File

@@ -1,9 +1,8 @@
import { rootEslintConfig, rootParserOptions } from '../../eslint.config.js'
/** @typedef {import('eslint').Linter.FlatConfig} */
let FlatConfig
/** @typedef {import('eslint').Linter.Config} Config */
/** @type {FlatConfig[]} */
/** @type {Config[]} */
export const index = [
...rootEslintConfig,
{

View File

@@ -1,9 +1,8 @@
import { rootEslintConfig, rootParserOptions } from '../../eslint.config.js'
/** @typedef {import('eslint').Linter.FlatConfig} */
let FlatConfig
/** @typedef {import('eslint').Linter.Config} Config */
/** @type {FlatConfig[]} */
/** @type {Config[]} */
export const index = [
...rootEslintConfig,
{

View File

@@ -1,9 +1,8 @@
import { rootEslintConfig, rootParserOptions } from '../../eslint.config.js'
/** @typedef {import('eslint').Linter.FlatConfig} */
let FlatConfig
/** @typedef {import('eslint').Linter.Config} Config */
/** @type {FlatConfig[]} */
/** @type {Config[]} */
export const index = [
...rootEslintConfig,
{

View File

@@ -1,9 +1,8 @@
import { rootEslintConfig, rootParserOptions } from '../../eslint.config.js'
/** @typedef {import('eslint').Linter.FlatConfig} */
let FlatConfig
/** @typedef {import('eslint').Linter.Config} Config */
/** @type {FlatConfig[]} */
/** @type {Config[]} */
export const index = [
...rootEslintConfig,
{

View File

@@ -1,9 +1,8 @@
import { rootEslintConfig, rootParserOptions } from '../../eslint.config.js'
/** @typedef {import('eslint').Linter.FlatConfig} */
let FlatConfig
/** @typedef {import('eslint').Linter.Config} Config */
/** @type {FlatConfig[]} */
/** @type {Config[]} */
export const index = [
...rootEslintConfig,
{

View File

@@ -1,9 +1,8 @@
import { rootEslintConfig, rootParserOptions } from '../../eslint.config.js'
/** @typedef {import('eslint').Linter.FlatConfig} */
let FlatConfig
/** @typedef {import('eslint').Linter.Config} Config */
/** @type {FlatConfig[]} */
/** @type {Config[]} */
export const index = [
...rootEslintConfig,
{

View File

@@ -1,9 +1,8 @@
import { rootEslintConfig, rootParserOptions } from '../../eslint.config.js'
/** @typedef {import('eslint').Linter.FlatConfig} */
let FlatConfig
/** @typedef {import('eslint').Linter.Config} Config */
/** @type {FlatConfig[]} */
/** @type {Config[]} */
export const index = [
...rootEslintConfig,
{

View File

@@ -107,8 +107,7 @@ const typescriptRules = {
'@typescript-eslint/no-empty-object-type': 'warn',
}
/** @typedef {import('eslint').Linter.FlatConfig} */
let FlatConfig
/** @typedef {import('eslint').Linter.Config} Config */
/** @type {FlatConfig} */
const baseExtends = deepMerge(
@@ -117,7 +116,7 @@ const baseExtends = deepMerge(
regexpPluginConfigs['flat/recommended'],
)
/** @type {FlatConfig[]} */
/** @type {Config[]} */
export const rootEslintConfig = [
{
name: 'Settings',

View File

@@ -1,9 +1,8 @@
import { rootEslintConfig, rootParserOptions } from '../../eslint.config.js'
/** @typedef {import('eslint').Linter.FlatConfig} */
let FlatConfig
/** @typedef {import('eslint').Linter.Config} Config */
/** @type {FlatConfig[]} */
/** @type {Config[]} */
export const index = [
...rootEslintConfig,
{

View File

@@ -1,9 +1,8 @@
import { rootEslintConfig, rootParserOptions } from '../../eslint.config.js'
/** @typedef {import('eslint').Linter.FlatConfig} */
let FlatConfig
/** @typedef {import('eslint').Linter.Config} Config */
/** @type {FlatConfig[]} */
/** @type {Config[]} */
export const index = [
...rootEslintConfig,
{

View File

@@ -1,9 +1,8 @@
import { rootEslintConfig, rootParserOptions } from '../../eslint.config.js'
/** @typedef {import('eslint').Linter.FlatConfig} */
let FlatConfig
/** @typedef {import('eslint').Linter.Config} Config */
/** @type {FlatConfig[]} */
/** @type {Config[]} */
export const index = [
...rootEslintConfig,
{

View File

@@ -1,9 +1,8 @@
import { rootEslintConfig, rootParserOptions } from '../../eslint.config.js'
/** @typedef {import('eslint').Linter.FlatConfig} */
let FlatConfig
/** @typedef {import('eslint').Linter.Config} Config */
/** @type {FlatConfig[]} */
/** @type {Config[]} */
export const index = [
...rootEslintConfig,
{

View File

@@ -2,10 +2,9 @@ import { rootEslintConfig, rootParserOptions } from '../../eslint.config.js'
import reactCompiler from 'eslint-plugin-react-compiler'
const { rules } = reactCompiler
/** @typedef {import('eslint').Linter.FlatConfig} */
let FlatConfig
/** @typedef {import('eslint').Linter.Config} Config */
/** @type {FlatConfig[]} */
/** @type {Config[]} */
export const index = [
...rootEslintConfig,
{

View File

@@ -1,9 +1,9 @@
import { rootEslintConfig, rootParserOptions } from '../../eslint.config.js'
/** @typedef {import('eslint').Linter.FlatConfig} */
let FlatConfig
/** @typedef {import('eslint').Linter.Config} Config */
/** @type {FlatConfig[]} */
/** @type {Config[]} */
export const index = [
...rootEslintConfig,
{

View File

@@ -1,9 +1,8 @@
import { rootEslintConfig, rootParserOptions } from '../../eslint.config.js'
/** @typedef {import('eslint').Linter.FlatConfig} */
let FlatConfig
/** @typedef {import('eslint').Linter.Config} Config */
/** @type {FlatConfig[]} */
/** @type {Config[]} */
export const index = [
...rootEslintConfig,
{

View File

@@ -1,9 +1,8 @@
import { rootEslintConfig, rootParserOptions } from '../../eslint.config.js'
/** @typedef {import('eslint').Linter.FlatConfig} */
let FlatConfig
/** @typedef {import('eslint').Linter.Config} Config */
/** @type {FlatConfig[]} */
/** @type {Config[]} */
export const index = [
...rootEslintConfig,
{

View File

@@ -1,9 +1,8 @@
import { rootEslintConfig, rootParserOptions } from '../../eslint.config.js'
/** @typedef {import('eslint').Linter.FlatConfig} */
let FlatConfig
/** @typedef {import('eslint').Linter.Config} Config */
/** @type {FlatConfig[]} */
/** @type {Config[]} */
export const index = [
...rootEslintConfig,
{

View File

@@ -1,9 +1,8 @@
import { rootEslintConfig, rootParserOptions } from '../../eslint.config.js'
/** @typedef {import('eslint').Linter.FlatConfig} */
let FlatConfig
/** @typedef {import('eslint').Linter.Config} Config */
/** @type {FlatConfig[]} */
/** @type {Config[]} */
export const index = [
...rootEslintConfig,
{

View File

@@ -1,9 +1,8 @@
import { rootEslintConfig, rootParserOptions } from '../../eslint.config.js'
/** @typedef {import('eslint').Linter.FlatConfig} */
let FlatConfig
/** @typedef {import('eslint').Linter.Config} Config */
/** @type {FlatConfig[]} */
/** @type {Config[]} */
export const index = [
...rootEslintConfig,
{

View File

@@ -1,9 +1,8 @@
import { rootEslintConfig, rootParserOptions } from '../../eslint.config.js'
/** @typedef {import('eslint').Linter.FlatConfig} */
let FlatConfig
/** @typedef {import('eslint').Linter.Config} Config */
/** @type {FlatConfig[]} */
/** @type {Config[]} */
export const index = [
...rootEslintConfig,
{

View File

@@ -1,9 +1,8 @@
import { rootEslintConfig, rootParserOptions } from '../../eslint.config.js'
/** @typedef {import('eslint').Linter.FlatConfig} */
let FlatConfig
/** @typedef {import('eslint').Linter.Config} Config */
/** @type {FlatConfig[]} */
/** @type {Config[]} */
export const index = [
...rootEslintConfig,
{

View File

@@ -1,9 +1,8 @@
import { rootEslintConfig, rootParserOptions } from '../../eslint.config.js'
/** @typedef {import('eslint').Linter.FlatConfig} */
let FlatConfig
/** @typedef {import('eslint').Linter.Config} Config */
/** @type {FlatConfig[]} */
/** @type {Config[]} */
export const index = [
...rootEslintConfig,
{

View File

@@ -1,9 +1,8 @@
import { rootEslintConfig, rootParserOptions } from '../../eslint.config.js'
/** @typedef {import('eslint').Linter.FlatConfig} */
let FlatConfig
/** @typedef {import('eslint').Linter.Config} Config */
/** @type {FlatConfig[]} */
/** @type {Config[]} */
export const index = [
...rootEslintConfig,
{

View File

@@ -3,10 +3,9 @@ import { rootEslintConfig, rootParserOptions } from '../../eslint.config.js'
import reactCompiler from 'eslint-plugin-react-compiler'
const { rules } = reactCompiler
/** @typedef {import('eslint').Linter.FlatConfig} */
let FlatConfig
/** @typedef {import('eslint').Linter.Config} Config */
/** @type {FlatConfig[]} */
/** @type {Config[]} */
export const index = [
...rootEslintConfig,
{

View File

@@ -1,9 +1,8 @@
import { rootEslintConfig, rootParserOptions } from '../../eslint.config.js'
/** @typedef {import('eslint').Linter.FlatConfig} */
let FlatConfig
/** @typedef {import('eslint').Linter.Config} Config */
/** @type {FlatConfig[]} */
/** @type {Config[]} */
export const index = [
...rootEslintConfig,
{

View File

@@ -1,9 +1,8 @@
import { rootEslintConfig, rootParserOptions } from '../../eslint.config.js'
/** @typedef {import('eslint').Linter.FlatConfig} */
let FlatConfig
/** @typedef {import('eslint').Linter.Config} Config */
/** @type {FlatConfig[]} */
/** @type {Config[]} */
export const index = [
...rootEslintConfig,
{

View File

@@ -1,9 +1,8 @@
import { rootEslintConfig, rootParserOptions } from '../../eslint.config.js'
/** @typedef {import('eslint').Linter.FlatConfig} */
let FlatConfig
/** @typedef {import('eslint').Linter.Config} Config */
/** @type {FlatConfig[]} */
/** @type {Config[]} */
export const index = [
...rootEslintConfig,
{

View File

@@ -1,9 +1,8 @@
import { rootEslintConfig, rootParserOptions } from '../../eslint.config.js'
/** @typedef {import('eslint').Linter.FlatConfig} */
let FlatConfig
/** @typedef {import('eslint').Linter.Config} Config */
/** @type {FlatConfig[]} */
/** @type {Config[]} */
export const index = [
...rootEslintConfig,
{

View File

@@ -1,9 +1,8 @@
import { rootEslintConfig, rootParserOptions } from '../../eslint.config.js'
/** @typedef {import('eslint').Linter.FlatConfig} */
let FlatConfig
/** @typedef {import('eslint').Linter.Config} Config */
/** @type {FlatConfig[]} */
/** @type {Config[]} */
export const index = [
...rootEslintConfig,
{

View File

@@ -1,9 +1,8 @@
import { rootEslintConfig, rootParserOptions } from '../../eslint.config.js'
/** @typedef {import('eslint').Linter.FlatConfig} */
let FlatConfig
/** @typedef {import('eslint').Linter.Config} Config */
/** @type {FlatConfig[]} */
/** @type {Config[]} */
export const index = [
...rootEslintConfig,
{

View File

@@ -1,9 +1,8 @@
import { rootEslintConfig, rootParserOptions } from '../../eslint.config.js'
/** @typedef {import('eslint').Linter.FlatConfig} */
let FlatConfig
/** @typedef {import('eslint').Linter.Config} Config */
/** @type {FlatConfig[]} */
/** @type {Config[]} */
export const index = [
...rootEslintConfig,
{

View File

@@ -1,10 +1,9 @@
import { rootEslintConfig, rootParserOptions } from '../../eslint.config.js'
import reactCompiler from 'eslint-plugin-react-compiler'
const { rules } = reactCompiler
/** @typedef {import('eslint').Linter.FlatConfig} */
let FlatConfig
/** @typedef {import('eslint').Linter.Config} Config */
/** @type {FlatConfig[]} */
/** @type {Config[]} */
export const index = [
...rootEslintConfig,
{