build(init):初始化构建项目。
This commit is contained in:
22
eslint.config.js
Normal file
22
eslint.config.js
Normal file
@@ -0,0 +1,22 @@
|
||||
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',
|
||||
},
|
||||
},
|
||||
);
|
Reference in New Issue
Block a user