Skip to content

Commit b045aab

Browse files
committed
chore: upgrade dependencies (includes lint fixes)
1 parent def9650 commit b045aab

File tree

14 files changed

+428
-365
lines changed

14 files changed

+428
-365
lines changed

package.json

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -18,18 +18,10 @@
1818
"@types/jest": "latest",
1919
"@typescript-eslint/eslint-plugin": "latest",
2020
"@typescript-eslint/parser": "latest",
21-
"babel-eslint": "latest",
2221
"babel-jest": "latest",
2322
"codecov": "latest",
2423
"core-js": "2",
2524
"eslint": "latest",
26-
"eslint-config-standard": "latest",
27-
"eslint-plugin-import": "latest",
28-
"eslint-plugin-jest": "latest",
29-
"eslint-plugin-node": "latest",
30-
"eslint-plugin-promise": "latest",
31-
"eslint-plugin-standard": "latest",
32-
"eslint-plugin-vue": "latest",
3325
"fs-extra": "latest",
3426
"jest": "latest",
3527
"lerna": "latest",

packages/types/package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
{
22
"name": "@nuxt/types",
33
"version": "0.0.1",
4+
"description": "Nuxt.js types",
45
"repository": "nuxt/typescript",
56
"license": "MIT",
67
"files": [

packages/types/test/vue.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -97,10 +97,10 @@ options.watchQuery = ['foo', 'bar']
9797

9898
const vm = new Vue(options)
9999

100-
if (vm.$nuxt.$loading.fail) vm.$nuxt.$loading.fail()
100+
if (vm.$nuxt.$loading.fail) { vm.$nuxt.$loading.fail() }
101101
vm.$nuxt.$loading.finish()
102-
if (vm.$nuxt.$loading.increase) vm.$nuxt.$loading.increase(1)
103-
if (vm.$nuxt.$loading.pause) vm.$nuxt.$loading.pause()
102+
if (vm.$nuxt.$loading.increase) { vm.$nuxt.$loading.increase(1) }
103+
if (vm.$nuxt.$loading.pause) { vm.$nuxt.$loading.pause() }
104104
vm.$nuxt.$loading.start()
105105

106106
vm.$nuxt.isOffline = true

packages/typescript-build/lib/module.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ const defaults = {
77
ignoreNotFoundWarnings: false
88
}
99

10-
function tsModule(_moduleOptions) {
10+
function tsModule (_moduleOptions) {
1111
// Combine options
1212
const moduleOptions = Object.assign(
1313
defaults,

packages/typescript-build/package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
{
22
"name": "@nuxt/typescript-build",
33
"version": "0.0.1",
4+
"description": "Nuxt.js TypeScript support",
45
"repository": "nuxt/typescript",
56
"license": "MIT",
67
"files": [

packages/typescript-build/test/fixture/pages/about.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ import Vue from 'vue'
22

33
export default Vue.extend({
44
name: 'About',
5-
render(h) {
5+
render (h) {
66
const text: string = 'About Page'
77
return h('div', text)
88
}

packages/typescript-build/test/fixture/pages/contact.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,11 +2,11 @@ import Vue from 'vue'
22

33
export default Vue.extend({
44
name: 'Contact',
5-
data() {
5+
data () {
66
const text: string = 'Contact Page'
77
return { text }
88
},
9-
render() {
9+
render () {
1010
return <div>{ this.text }</div>
1111
}
1212
})

packages/typescript-runtime/bin/nuxt-ts.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
const path = require('path')
44
const { resolveNuxtBin, getRootdirFromArgv, registerTSNode, setupTSConfig } = require('..')
55

6-
async function main() {
6+
async function main () {
77
const rootDir = getRootdirFromArgv()
88
const tsConfigPath = path.resolve(rootDir, 'tsconfig.json')
99

packages/typescript-runtime/lib/args.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ const optionsWithValue = [
99
'--unix-socket', '-n'
1010
]
1111

12-
function getRootdirFromArgv() {
12+
function getRootdirFromArgv () {
1313
const args = process.argv.slice(2)
1414

1515
let rootDir = '.'

packages/typescript-runtime/lib/register.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
const { register } = require('ts-node')
22

3-
function registerTSNode(tsconfigPath) {
3+
function registerTSNode (tsconfigPath) {
44
// https://github.com/TypeStrong/ts-node
55
register({
66
project: tsconfigPath,

0 commit comments

Comments
 (0)