mirror of
https://github.com/memohai/Memoh.git
synced 2026-04-25 07:00:48 +09:00
68896cd729
* # This is a combination of 6 commits. # This is the 1st commit message: feat(channel): add WeChat (weixin) adapter with QR code (#278) * feat(channel): add WeChat (weixin) adapter with QR code * fix(channel): fix weixin block streaming * chore(channel): update weixin logo # The commit message #2 will be skipped: # build: 修改lint配置 # The commit message #3 will be skipped: # build: 修改lint配置 # The commit message #4 will be skipped: # 修改lint配置 # The commit message #5 will be skipped: # 检测类型错误 # The commit message #6 will be skipped: # ts类型检测错误 * feat(husky): update linting configuration to improve pre-commit checks --------- Co-authored-by: 晨苒 <16112591+chen-ran@users.noreply.github.com>
65 lines
1.7 KiB
JavaScript
65 lines
1.7 KiB
JavaScript
// @ts-check
|
|
import vueParser from 'vue-eslint-parser'
|
|
import tseslint from 'typescript-eslint'
|
|
import vue from 'eslint-plugin-vue'
|
|
|
|
export default [
|
|
...tseslint.configs.recommended,
|
|
...vue.configs['flat/recommended'],
|
|
{ ignores: ['**/node_modules/**', '**/dist/**', '**/cache/**', 'packages/sdk/src/**'] },
|
|
{
|
|
files: ['packages/**/*.{js,jsx,ts,tsx}', 'apps/**/*.{js,jsx,ts,tsx}'],
|
|
languageOptions: {
|
|
parserOptions: {
|
|
ecmaVersion: 2022,
|
|
sourceType: 'module',
|
|
projectService: true,
|
|
},
|
|
},
|
|
rules: {
|
|
quotes: ['error', 'single'],
|
|
semi: ['error', 'never'],
|
|
'@typescript-eslint/no-unused-vars': ['error', {
|
|
argsIgnorePattern: '^_',
|
|
varsIgnorePattern: '^_',
|
|
destructuredArrayIgnorePattern: '^_',
|
|
}],
|
|
},
|
|
},
|
|
{
|
|
files: ['packages/**/*.vue', 'apps/**/*.vue'],
|
|
languageOptions: {
|
|
parser: vueParser,
|
|
parserOptions: {
|
|
ecmaVersion: 2022,
|
|
sourceType: 'module',
|
|
parser: {
|
|
js: 'espree',
|
|
ts: tseslint.parser,
|
|
},
|
|
},
|
|
},
|
|
rules: {
|
|
quotes: ['error', 'single'],
|
|
semi: ['error', 'never'],
|
|
'vue/multi-word-component-names': 'off',
|
|
'vue/require-default-prop': 'off',
|
|
'vue/no-required-prop-with-default':'error',
|
|
'@typescript-eslint/no-unused-vars': ['error', {
|
|
argsIgnorePattern: '^_',
|
|
varsIgnorePattern: '^_',
|
|
destructuredArrayIgnorePattern: '^_',
|
|
}],
|
|
},
|
|
},
|
|
{
|
|
files: [
|
|
'apps/web/src/pages/chat/components/tool-call-edit.vue',
|
|
'apps/web/src/pages/chat/components/tool-call-write.vue',
|
|
],
|
|
rules: {
|
|
'vue/no-v-html': 'off',
|
|
},
|
|
},
|
|
]
|