Skip to content

Commit

Permalink
chore: use recommended lint (#3072)
Browse files Browse the repository at this point in the history
  • Loading branch information
Shinigami92 committed Apr 25, 2021
1 parent bcf29ce commit 50362d4
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 0 deletions.
1 change: 1 addition & 0 deletions package.json
Expand Up @@ -25,6 +25,7 @@
"@types/jest": "^26.0.19",
"@types/node": "^14.14.10",
"@types/semver": "^7.3.4",
"@typescript-eslint/eslint-plugin": "^4.22.0",
"@typescript-eslint/parser": "^4.22.0",
"chalk": "^4.1.0",
"conventional-changelog-cli": "^2.1.1",
Expand Down
1 change: 1 addition & 0 deletions packages/plugin-vue/src/main.ts
Expand Up @@ -14,6 +14,7 @@ import { isOnlyTemplateChanged, isEqualBlock } from './handleHotUpdate'
import { RawSourceMap, SourceMapConsumer, SourceMapGenerator } from 'source-map'
import { createRollupError } from './utils/error'

// eslint-disable-next-line @typescript-eslint/explicit-module-boundary-types
export async function transformMain(
code: string,
filename: string,
Expand Down
1 change: 1 addition & 0 deletions packages/plugin-vue/src/style.ts
Expand Up @@ -2,6 +2,7 @@ import { compileStyleAsync, SFCDescriptor } from '@vue/compiler-sfc'
import { TransformPluginContext } from 'rollup'
import { ResolvedOptions } from '.'

// eslint-disable-next-line @typescript-eslint/explicit-module-boundary-types
export async function transformStyle(
code: string,
descriptor: SFCDescriptor,
Expand Down
3 changes: 3 additions & 0 deletions packages/plugin-vue/src/template.ts
Expand Up @@ -10,6 +10,7 @@ import { ResolvedOptions } from '.'
import { getResolvedScript } from './script'
import { createRollupError } from './utils/error'

// eslint-disable-next-line @typescript-eslint/explicit-module-boundary-types
export function transformTemplateAsModule(
code: string,
descriptor: SFCDescriptor,
Expand Down Expand Up @@ -40,6 +41,7 @@ export function transformTemplateAsModule(
/**
* transform the template directly in the main SFC module
*/
// eslint-disable-next-line @typescript-eslint/explicit-module-boundary-types
export function transformTemplateInMain(
code: string,
descriptor: SFCDescriptor,
Expand All @@ -57,6 +59,7 @@ export function transformTemplateInMain(
}
}

// eslint-disable-next-line @typescript-eslint/explicit-module-boundary-types
export function compile(
code: string,
descriptor: SFCDescriptor,
Expand Down

0 comments on commit 50362d4

Please sign in to comment.