Skip to content

Commit b4a8a9d

Browse files
committed
Chore: upgrade deps
1 parent c498e55 commit b4a8a9d

File tree

6 files changed

+26
-22
lines changed

6 files changed

+26
-22
lines changed

package.json

+11-11
Original file line numberDiff line numberDiff line change
@@ -11,22 +11,22 @@
1111
],
1212
"dependencies": {},
1313
"devDependencies": {
14-
"@types/eslint": "^4.16.0",
15-
"@types/mocha": "^2.2.48",
16-
"@types/node": "^9.4.6",
14+
"@types/eslint": "^4.16.2",
15+
"@types/mocha": "^5.2.2",
16+
"@types/node": "^10.3.3",
1717
"dts-bundle": "^0.7.3",
18-
"eslint": "^4.18.0",
18+
"eslint": "^4.19.1",
1919
"eslint-plugin-mysticatea": "^5.0.0-beta.15",
20-
"mocha": "^5.0.1",
21-
"npm-run-all": "^4.1.2",
20+
"mocha": "^5.2.0",
21+
"npm-run-all": "^4.1.3",
2222
"rimraf": "^2.6.2",
23-
"rollup": "^0.56.1",
24-
"rollup-plugin-node-resolve": "^3.0.3",
23+
"rollup": "^0.60.7",
24+
"rollup-plugin-node-resolve": "^3.3.0",
2525
"rollup-plugin-sourcemaps": "^0.4.2",
2626
"rollup-watch": "^4.3.1",
27-
"ts-node": "^5.0.0",
28-
"typescript": "^2.7.2",
29-
"typescript-eslint-parser": "^14.0.0"
27+
"ts-node": "^6.1.1",
28+
"typescript": "^2.9.2",
29+
"typescript-eslint-parser": "^16.0.0"
3030
},
3131
"scripts": {
3232
"prebuild": "npm run -s clean",

scripts/clone-without-circular.ts

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
const relative = require("path").posix.relative
22

33
function resolveLocation(
4-
obj: object,
4+
obj: any,
55
path: string[],
66
pathMap: Map<object, string>,
77
): void {
@@ -38,7 +38,7 @@ function cloneWithoutCircularRec(x: any, pathMap: Map<object, string>): any {
3838
return x.map(el => cloneWithoutCircularRec(el, pathMap))
3939
}
4040

41-
const y = {}
41+
const y = {} as any
4242
for (const key of Object.keys(x)) {
4343
if (key === "parent" || key === "resolved" || key === "references") {
4444
y[key] = getRelativePath(x, x[key], pathMap)

test/fixtures/visitor/index.ts

+9-6
Original file line numberDiff line numberDiff line change
@@ -17,12 +17,15 @@ const fixturesRoot = __dirname
1717
export const Fixtures: FixtureData = fs
1818
.readdirSync(fixturesRoot)
1919
.filter(filename => path.extname(filename) === ".json")
20-
.reduce((fixtures, filename) => {
21-
fixtures[filename] = JSON.parse(
22-
fs.readFileSync(path.join(fixturesRoot, filename), "utf8"),
23-
)
24-
return fixtures
25-
}, {})
20+
.reduce(
21+
(fixtures, filename) => {
22+
fixtures[filename] = JSON.parse(
23+
fs.readFileSync(path.join(fixturesRoot, filename), "utf8"),
24+
)
25+
return fixtures
26+
},
27+
{} as FixtureData,
28+
)
2629
export function save(): void {
2730
for (const filename of Object.keys(Fixtures)) {
2831
fs.writeFileSync(

test/parser.ts

-1
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,6 @@ describe("parseRegExpLiteral function:", () => {
5454

5555
for (const filename of Object.keys(Fixtures)) {
5656
const fixture = Fixtures[filename]
57-
const options = fixture.options
5857

5958
if (filename.indexOf("-valid") !== -1) {
6059
describe(filename, () => {

test/visitor.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ describe("visitRegExpAST function:", () => {
2828
it(`${source} should succeed to visit.`, () => {
2929
const expected = fixture.patterns[source]
3030
const ast = generateAST(source, options)
31-
const history = []
31+
const history = [] as string[]
3232
const enter = (node: AST.Node): void => {
3333
history.push(`enter:${node.type}:${node.raw}`)
3434
}

tsconfig.json

+3-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
"compileOnSave": true,
33
"compilerOptions": {
44
"allowJs": false,
5-
"allowSyntheticDefaultImports": false,
5+
"allowSyntheticDefaultImports": true,
66
"allowUnreachableCode": false,
77
"allowUnusedLabels": false,
88
"alwaysStrict": true,
@@ -30,7 +30,9 @@
3030
"removeComments": true,
3131
"sourceMap": true,
3232
"sourceRoot": "src",
33+
"strictFunctionTypes": true,
3334
"strictNullChecks": true,
35+
"strictPropertyInitialization": true,
3436
"target": "es2015"
3537
},
3638
"include": [

0 commit comments

Comments
 (0)