Files
faunosteo/packages/core-wasm/eslint.config.js
T

22 lines
598 B
JavaScript

import globals from 'globals'
import tseslint from 'typescript-eslint'
export default tseslint.config(
// pkg/ is the wasm-bindgen output, types/ the ts-rs output: generated, never linted.
{ ignores: ['node_modules/**', 'pkg/**', 'types/**'] },
{
files: ['**/*.ts'],
extends: [...tseslint.configs.recommended],
languageOptions: {
globals: { ...globals.node, ...globals.es2022 },
},
rules: {
'@typescript-eslint/no-explicit-any': 'warn',
'@typescript-eslint/no-unused-vars': [
'error',
{ argsIgnorePattern: '^_' },
],
},
},
)