mirror of
https://github.com/nuxt/nuxt.git
synced 2024-11-22 05:35:13 +00:00
chore(lint): enable eslint on mjs (#1804)
This commit is contained in:
parent
bf716f3978
commit
6ec518ff24
@ -17,7 +17,7 @@
|
||||
"play": "yarn run nuxi dev playground",
|
||||
"example": "yarn workspace example-$0 dev",
|
||||
"example:build": "yarn workspace example-$0 build",
|
||||
"lint": "eslint --ext .vue,.ts,.js .",
|
||||
"lint": "eslint --ext .vue,.ts,.js,.mjs .",
|
||||
"lint:docs": "./node_modules/.bin/markdownlint ./",
|
||||
"test": "yarn lint && yarn test:presets",
|
||||
"test:presets": "mocha test/presets/*.mjs",
|
||||
|
@ -4,5 +4,4 @@ export { EffectScope, computed, createApp, createRef, customRef, defineAsyncComp
|
||||
|
||||
export const isFunction = fn => fn instanceof Function
|
||||
|
||||
|
||||
export { Vue as default }
|
||||
|
@ -9,11 +9,11 @@ import { fixtureDir, resolveWorkspace } from '../utils.mjs'
|
||||
|
||||
const isBridge = Boolean(process.env.TEST_BRIDGE)
|
||||
|
||||
export function importModule(path) {
|
||||
export function importModule (path) {
|
||||
return import(pathToFileURL(path).href)
|
||||
}
|
||||
|
||||
export function setupTest(preset) {
|
||||
export function setupTest (preset) {
|
||||
const fixture = isBridge ? 'bridge' : 'basic'
|
||||
const rootDir = fixtureDir(fixture)
|
||||
const buildDir = resolve(rootDir, '.nuxt-' + preset)
|
||||
@ -49,11 +49,11 @@ export function setupTest(preset) {
|
||||
return ctx
|
||||
}
|
||||
|
||||
export async function startServer(ctx, handle) {
|
||||
export async function startServer (ctx, handle) {
|
||||
ctx.server = await listen(handle)
|
||||
}
|
||||
|
||||
export function testNitroBehavior(_ctx, getHandler) {
|
||||
export function testNitroBehavior (_ctx, getHandler) {
|
||||
let handler
|
||||
|
||||
it('setup handler', async () => {
|
||||
|
Loading…
Reference in New Issue
Block a user