23 lines
582 B
JavaScript
23 lines
582 B
JavaScript
import js from '@eslint/js';
|
|
import solid from 'eslint-plugin-solid';
|
|
import globals from 'globals';
|
|
import tseslint from 'typescript-eslint';
|
|
|
|
export default tseslint.config(
|
|
{ ignores: ['dist'] },
|
|
{
|
|
extends: [js.configs.recommended, ...tseslint.configs.recommended, 'plugin:solid/typescript'],
|
|
files: ['**/*.{ts,tsx}'],
|
|
languageOptions: {
|
|
ecmaVersion: 2020,
|
|
globals: globals.browser,
|
|
},
|
|
plugins: { solid },
|
|
rules: {
|
|
'solid/reactivity': 'warn',
|
|
'solid/no-destructure': 'warn',
|
|
'solid/jsx-no-undef': 'error',
|
|
},
|
|
},
|
|
);
|