Skip to content

Commit

Permalink
⚡ [ci release] Maybe fix astro and vue issues
Browse files Browse the repository at this point in the history
  • Loading branch information
DaniFoldi committed Sep 14, 2024
1 parent 952b1d8 commit d798873
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 4 deletions.
8 changes: 6 additions & 2 deletions packages/bundled-eslint-config/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,8 @@ import { vitestRules, vitestPlugins, vitestLanguageOptions, vitestSettings } fro
import { vueLanguageOptions, vuePlugins, vueRules, vueSettings } from './setup/for-vue'
import { workersLanguageOptions, workersPlugins, workersRules, workersSettings } from './setup/for-workers'
import { linterOptions, hasFile } from './util'
import { processors as vueProcessors } from 'eslint-plugin-vue'
import { processors as astroProcessors } from 'eslint-plugin-astro'


const ignores = {
Expand Down Expand Up @@ -41,7 +43,8 @@ const astroPreset = {
rules: { ...jsRules, ...tsRules, ...astroRules },
plugins: { ...jsPlugins, ...tsPlugins, ...astroPlugins },
languageOptions: astroLanguageOptions,
settings: { ...jsSettings, ...tsSettings, ...astroSettings }
settings: { ...jsSettings, ...tsSettings, ...astroSettings },
processor: astroProcessors.astro
} satisfies FlatESLintConfig

const vuePreset = {
Expand All @@ -50,7 +53,8 @@ const vuePreset = {
rules: { ...jsRules, ...tsRules, ...vueRules },
plugins: { ...jsPlugins, ...tsPlugins, ...vuePlugins },
languageOptions: vueLanguageOptions,
settings: { ...jsSettings, ...tsSettings, ...vueSettings }
settings: { ...jsSettings, ...tsSettings, ...vueSettings },
processor: vueProcessors.vue
} satisfies FlatESLintConfig

const workersPreset = {
Expand Down
2 changes: 1 addition & 1 deletion packages/bundled-eslint-config/src/setup/for-vue.ts
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ export const vueRules: Rules = {
'vue/brace-style': [ 'warn', '1tbs' ],
'vue/comma-dangle': [ 'warn', 'never' ],
'vue/comma-spacing': [ 'warn', { after: true, before: false }],
'vue/comment-directive': [ 'error', { reportUnusedDisableDirectives: false }],
'vue/comment-directive': [ 'error', { reportUnusedDisableDirectives: true }],
'vue/component-api-style': [ 'error', [ 'script-setup', 'composition' ]],
'vue/component-name-in-template-casing': [ 'warn', 'PascalCase' ],
'vue/block-order': [ 'warn', { order: [ 'template', 'script[setup]', 'script:not([setup])', 'style:not([scoped])', 'style[scoped]' ] }],
Expand Down
2 changes: 1 addition & 1 deletion prepublish.js
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ const packageJsonJobs = {
},
'packages/bundled-eslint-config': {
type: 'module',
version: '0.4.14',
version: '0.4.15',
description: 'A preset for ESLint',
keywords: [
'eslint',
Expand Down

0 comments on commit d798873

Please sign in to comment.