silverwolf-x/project / eslint.cli.config.mjs
silverwolf-x's picture
download
raw
880 Bytes
import { defineConfig } from 'eslint/config'
import baseConfig from './eslint.config.mjs'
export default defineConfig([
{
extends: [baseConfig],
},
{
files: ['**/*.ts', '**/*.tsx'],
// This override adds type-checked rules.
// Linting with type-checked rules is very slow and needs a lot of memory,
// so we exclude non-essential files.
ignores: [
'bench/**/*',
'examples/**/*',
'test/**/*',
'**/*.d.ts',
'turbopack/**/*',
],
languageOptions: {
parserOptions: {
project: true,
},
},
// These rules are added on top of the rules that are declared in
// the base config for the matching files.
rules: {
// TODO: enable in follow-up PR
'@typescript-eslint/no-floating-promises': 'off',
'@typescript-eslint/switch-exhaustiveness-check': 'error',
},
},
])

Xet Storage Details

Size:
880 Bytes
·
Xet hash:
aa94124eac04a103927bc12c2e05e8339246715e09a31f1a6c7a21abc2179e46

Xet efficiently stores files, intelligently splitting them into unique chunks and accelerating uploads and downloads. More info.