Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
monorepo
/
venus
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
1
Merge Requests
0
Pipelines
Wiki
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit bc625ee7
authored
Sep 21, 2024
by
Vben
Committed by
GitHub
Sep 21, 2024
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
fix: improve global type detection of vue files (#4455)
1 parent
d34f1fbf
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
17 additions
and
2 deletions
internal/lint-configs/eslint-config/src/configs/javascript.ts
internal/lint-configs/eslint-config/src/configs/vue.ts
packages/effects/common-ui/src/ui/about/about.vue
internal/lint-configs/eslint-config/src/configs/javascript.ts
View file @
bc625ee
...
@@ -147,7 +147,7 @@ export async function javascript(): Promise<Linter.Config[]> {
...
@@ -147,7 +147,7 @@ export async function javascript(): Promise<Linter.Config[]> {
'no-template-curly-in-string'
:
'error'
,
'no-template-curly-in-string'
:
'error'
,
'no-this-before-super'
:
'error'
,
'no-this-before-super'
:
'error'
,
'no-throw-literal'
:
'error'
,
'no-throw-literal'
:
'error'
,
'no-undef'
:
'
error
'
,
'no-undef'
:
'
off
'
,
'no-undef-init'
:
'error'
,
'no-undef-init'
:
'error'
,
'no-unexpected-multiline'
:
'error'
,
'no-unexpected-multiline'
:
'error'
,
'no-unmodified-loop-condition'
:
'error'
,
'no-unmodified-loop-condition'
:
'error'
,
...
...
internal/lint-configs/eslint-config/src/configs/vue.ts
View file @
bc625ee
...
@@ -15,6 +15,22 @@ export async function vue(): Promise<Linter.Config[]> {
...
@@ -15,6 +15,22 @@ export async function vue(): Promise<Linter.Config[]> {
{
{
files
:
[
'**/*.vue'
],
files
:
[
'**/*.vue'
],
languageOptions
:
{
languageOptions
:
{
// globals: {
// computed: 'readonly',
// defineEmits: 'readonly',
// defineExpose: 'readonly',
// defineProps: 'readonly',
// onMounted: 'readonly',
// onUnmounted: 'readonly',
// reactive: 'readonly',
// ref: 'readonly',
// shallowReactive: 'readonly',
// shallowRef: 'readonly',
// toRef: 'readonly',
// toRefs: 'readonly',
// watch: 'readonly',
// watchEffect: 'readonly',
// },
parser
:
parserVue
,
parser
:
parserVue
,
parserOptions
:
{
parserOptions
:
{
ecmaFeatures
:
{
ecmaFeatures
:
{
...
...
packages/effects/common-ui/src/ui/about/about.vue
View file @
bc625ee
...
@@ -52,7 +52,6 @@ const {
...
@@ -52,7 +52,6 @@ const {
license
,
license
,
version
,
version
,
// vite inject-metadata 插件注入的全局变量
// vite inject-metadata 插件注入的全局变量
// eslint-disable-next-line no-undef
}
=
__VBEN_ADMIN_METADATA__
||
{};
}
=
__VBEN_ADMIN_METADATA__
||
{};
const
vbenDescriptionItems
:
DescriptionItem
[]
=
[
const
vbenDescriptionItems
:
DescriptionItem
[]
=
[
...
...
Write
Preview
Markdown
is supported
Attach a file
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to post a comment