Skip to content

Commit

Permalink
chore: add comment to INLINE_ELEMENTS
Browse files Browse the repository at this point in the history
  • Loading branch information
DamianGlowala committed Apr 11, 2024
1 parent 510dc19 commit ae7c088
Showing 1 changed file with 42 additions and 1 deletion.
43 changes: 42 additions & 1 deletion packages/eslint-config/src/flat/configs/vue.ts
Original file line number Diff line number Diff line change
@@ -1,13 +1,54 @@
import * as parserVue from 'vue-eslint-parser'
import parserTs from '@typescript-eslint/parser'
import INLINE_ELEMENTS from 'eslint-plugin-vue/lib/utils/inline-non-void-elements.json' with { type: 'json' }

// @ts-expect-error missing types
import pluginVue from 'eslint-plugin-vue'
import type { FlatConfigItem } from 'eslint-flat-config-utils'
import type { NuxtESLintConfigOptions } from '../types'
import { removeUndefined, resolveOptions } from '../utils'

// imported from 'eslint-plugin-vue/lib/utils/inline-non-void-elements.json'
const INLINE_ELEMENTS = [
"a",

Check failure on line 12 in packages/eslint-config/src/flat/configs/vue.ts

View workflow job for this annotation

GitHub Actions / ci (20, ubuntu-latest)

Strings must use singlequote
"abbr",

Check failure on line 13 in packages/eslint-config/src/flat/configs/vue.ts

View workflow job for this annotation

GitHub Actions / ci (20, ubuntu-latest)

Strings must use singlequote
"audio",

Check failure on line 14 in packages/eslint-config/src/flat/configs/vue.ts

View workflow job for this annotation

GitHub Actions / ci (20, ubuntu-latest)

Strings must use singlequote
"b",

Check failure on line 15 in packages/eslint-config/src/flat/configs/vue.ts

View workflow job for this annotation

GitHub Actions / ci (20, ubuntu-latest)

Strings must use singlequote
"bdi",

Check failure on line 16 in packages/eslint-config/src/flat/configs/vue.ts

View workflow job for this annotation

GitHub Actions / ci (20, ubuntu-latest)

Strings must use singlequote
"bdo",

Check failure on line 17 in packages/eslint-config/src/flat/configs/vue.ts

View workflow job for this annotation

GitHub Actions / ci (20, ubuntu-latest)

Strings must use singlequote
"canvas",

Check failure on line 18 in packages/eslint-config/src/flat/configs/vue.ts

View workflow job for this annotation

GitHub Actions / ci (20, ubuntu-latest)

Strings must use singlequote
"cite",

Check failure on line 19 in packages/eslint-config/src/flat/configs/vue.ts

View workflow job for this annotation

GitHub Actions / ci (20, ubuntu-latest)

Strings must use singlequote
"code",

Check failure on line 20 in packages/eslint-config/src/flat/configs/vue.ts

View workflow job for this annotation

GitHub Actions / ci (20, ubuntu-latest)

Strings must use singlequote
"data",

Check failure on line 21 in packages/eslint-config/src/flat/configs/vue.ts

View workflow job for this annotation

GitHub Actions / ci (20, ubuntu-latest)

Strings must use singlequote
"del",
"dfn",
"em",
"i",
"iframe",
"ins",
"kbd",
"label",
"map",
"mark",
"noscript",
"object",
"output",
"picture",
"q",
"ruby",
"s",
"samp",
"small",
"span",
"strong",
"sub",
"sup",
"svg",
"time",
"u",
"var",
"video"
]

export default function vue(options: NuxtESLintConfigOptions): FlatConfigItem[] {
const resolved = resolveOptions(options)
const hasTs = resolved.features.typescript !== false
Expand Down

0 comments on commit ae7c088

Please sign in to comment.