Skip to content

Commit

Permalink
fix: fix lint issues
Browse files Browse the repository at this point in the history
  • Loading branch information
arianrhodsandlot committed May 17, 2024
1 parent 06da113 commit 539d959
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
8 changes: 7 additions & 1 deletion src/flat-configs/custom/custom-rules/vue.ts
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,13 @@ const vueCommonRules: FlatConfigRules = {
'vue/no-undef-components': [
'error',
{
ignorePatterns: ['client-only', 'el(\\-\\w+)+', 'router(\\-\\w+)+', 'svg-icon', 'van(\\-\\w+)+'],
ignorePatterns: [
'client-only',
String.raw`el(\-\w+)+`,
String.raw`router(\-\w+)+`,
'svg-icon',
String.raw`van(\-\w+)+`,
],
},
],
'vue/no-undef-properties': 'error',
Expand Down
1 change: 1 addition & 0 deletions src/lib/utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ import path from 'node:path'
import _ from 'lodash'
import { findSync } from 'new-find-package-json'
import type { CreateConfigOptions } from '../types/config.js'

export const isProduction = process.env.NODE_ENV === 'production'

const { castArray, compact, mergeWith } = _
Expand Down

0 comments on commit 539d959

Please sign in to comment.