Skip to content

Commit

Permalink
⚒ upgrade dependencies
Browse files Browse the repository at this point in the history
  • Loading branch information
mysticatea committed Apr 21, 2019
1 parent 7d72969 commit 34a3b4e
Show file tree
Hide file tree
Showing 11 changed files with 48 additions and 22 deletions.
7 changes: 7 additions & 0 deletions .eslintrc.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,3 +9,10 @@ overrides:
- error
- allowModules:
- estree

settings:
node:
tryExtensions:
- .ts
- .js
- .json
19 changes: 19 additions & 0 deletions .nycrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
{
"include": [
"src/**/*.ts"
],
"exclude": [
"src/external/**/*.ts"
],
"extension": [
".ts"
],
"require": [
"ts-node/register"
],
"reporter": [
"lcov",
"text-summary"
],
"sourceMap": true
}
21 changes: 10 additions & 11 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -35,40 +35,39 @@
"dts-bundle": "^0.7.3",
"eslint": "^5.13.0",
"fs-extra": "^7.0.1",
"mocha": "^5.2.0",
"mocha": "^6.1.4",
"npm-run-all": "^4.1.5",
"nyc": "^13.2.0",
"nyc": "^14.0.0",
"opener": "^1.5.1",
"rimraf": "^2.6.3",
"rollup": "^1.1.2",
"rollup-plugin-node-resolve": "^4.0.0",
"rollup-plugin-sourcemaps": "^0.4.2",
"rollup-watch": "^4.3.1",
"typescript": "~3.3.1",
"ts-node": "^8.1.0",
"typescript": "~3.4.4",
"wait-on": "^3.2.0",
"warun": "^1.0.0"
},
"scripts": {
"_mocha": "_mocha \"test/*.js\" --reporter dot --timeout 10000",
"prebuild": "npm run -s clean",
"build": "tsc && rollup -c -o index.js && dts-bundle --name vue-eslint-parser --main .temp/index.d.ts --out ../index.d.ts",
"build": "tsc --module es2015 && rollup -c -o index.js && dts-bundle --name vue-eslint-parser --main .temp/index.d.ts --out ../index.d.ts",
"clean": "rimraf .nyc_output .temp coverage index.*",
"codecov": "nyc report --reporter lcovonly && codecov",
"coverage": "nyc report --reporter lcov && opener ./coverage/lcov-report/index.html",
"codecov": "codecov",
"coverage": "opener ./coverage/lcov-report/index.html",
"lint": "eslint src test --ext .js,.ts",
"setup": "git submodule update --init && cd test/fixtures/eslint && npm install",
"pretest": "run-s build lint",
"test": "nyc npm run _mocha",
"test": "nyc mocha \"test/*.js\" --reporter dot --timeout 10000",
"preupdate-fixtures": "npm run -s build",
"update-fixtures": "node scripts/update-fixtures-ast.js",
"preversion": "npm test",
"version": "npm run -s build",
"postversion": "git push && git push --tags",
"prewatch": "npm run -s clean",
"watch": "run-p watch:*",
"watch:tsc": "tsc --watch",
"watch:tsc": "tsc --module es2015 --watch",
"watch:rollup": "wait-on .temp/index.js && rollup -c -o index.js --watch",
"watch:test": "wait-on index.js && warun index.js \"test/*.js\" \"test/fixtures/ast/*/*.json\" \"test/fixtures/*\" --debounce 1000 --no-initial -- nyc -r lcov npm run -s _mocha",
"watch:test": "wait-on index.js && warun index.js \"test/*.js\" \"test/fixtures/ast/*/*.json\" \"test/fixtures/*\" --debounce 1000 --no-initial -- nyc mocha \"test/*.js\" --reporter dot --timeout 10000",
"watch:update-ast": "wait-on index.js && warun index.js \"test/fixtures/ast/*/*.vue\" -- node scripts/update-fixtures-ast.js",
"watch:coverage-report": "wait-on coverage/lcov-report/index.html && opener coverage/lcov-report/index.html"
},
Expand Down
4 changes: 2 additions & 2 deletions test/ast.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,14 +13,14 @@ const assert = require("assert")
const fs = require("fs")
const path = require("path")
const lodash = require("lodash")
const parser = require("..")
const parser = require("../src")
const Linter = require("./fixtures/eslint").Linter

//------------------------------------------------------------------------------
// Helpers
//------------------------------------------------------------------------------

const PARSER = path.resolve(__dirname, "..")
const PARSER = path.resolve(__dirname, "../src/index.ts")
const ROOT = path.join(__dirname, "fixtures/ast")
const TARGETS = fs.readdirSync(ROOT)
const PARSER_OPTIONS = {
Expand Down
2 changes: 1 addition & 1 deletion test/core-rules.js
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ const RuleTester = require("./fixtures/eslint/lib/testers/rule-tester")

const RULE_DEFS_ROOT = path.join(__dirname, "fixtures/eslint/lib/rules")
const RULE_TESTS_ROOT = path.join(__dirname, "fixtures/eslint/tests/lib/rules")
const PARSER_PATH = path.resolve(__dirname, "../index.js")
const PARSER_PATH = path.resolve(__dirname, "../src/index.ts")
const EXCEPTIONS = new Set([
// Those rules check outside `<script>` tag as well.
// It cannot fix the behavior in vue-eslint-parser side.
Expand Down
2 changes: 1 addition & 1 deletion test/fixtures/eslint
Submodule eslint updated 268 files
6 changes: 3 additions & 3 deletions test/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,8 @@
const assert = require("assert")
const path = require("path")
const fs = require("fs-extra")
const parse = require("..").parse
const parseForESLint = require("..").parseForESLint
const parse = require("../src").parse
const parseForESLint = require("../src").parseForESLint
const eslint = require("./fixtures/eslint")
const CLIEngine = eslint.CLIEngine
const Linter = eslint.Linter
Expand All @@ -24,7 +24,7 @@ const Linter = eslint.Linter

const ORIGINAL_FIXTURE_DIR = path.join(__dirname, "fixtures")
const FIXTURE_DIR = path.join(__dirname, "temp")
const PARSER_PATH = path.resolve(__dirname, "../index.js")
const PARSER_PATH = path.resolve(__dirname, "../src/index.ts")

//------------------------------------------------------------------------------
// Tests
Expand Down
2 changes: 1 addition & 1 deletion test/parser-options.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@

const assert = require("assert")
const { rules } = require("@mysticatea/eslint-plugin")
const parseForESLint = require("..").parseForESLint
const { parseForESLint } = require("../src")
const eslint = require("./fixtures/eslint")
const Linter = eslint.Linter

Expand Down
2 changes: 1 addition & 1 deletion test/tokens.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
//------------------------------------------------------------------------------

const assert = require("assert")
const parse = require("..").parseForESLint
const parse = require("../src").parseForESLint

//------------------------------------------------------------------------------
// Helpers
Expand Down
2 changes: 1 addition & 1 deletion test/variables-references.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
//------------------------------------------------------------------------------

const assert = require("assert")
const parse = require("..").parseForESLint
const parse = require("../src").parseForESLint

//------------------------------------------------------------------------------
// Helpers
Expand Down
3 changes: 2 additions & 1 deletion tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,12 +9,13 @@
"baseUrl": ".",
"checkJs": false,
"declaration": true,
"esModuleInterop": true,
"forceConsistentCasingInFileNames": true,
"inlineSources": true,
"lib": [
"es2015"
],
"module": "es2015",
"module": "commonjs",
"moduleResolution": "node",
"newLine": "LF",
"noEmitOnError": true,
Expand Down

0 comments on commit 34a3b4e

Please sign in to comment.