diff --git a/.eslintrc.js b/.eslintrc.js index 084b5e4..2be963a 100644 --- a/.eslintrc.js +++ b/.eslintrc.js @@ -7,6 +7,10 @@ module.exports = { "globals": { "expect": true }, + "parser": "typescript-eslint-parser", + "plugins": [ + "typescript" + ], "rules": { "no-use-before-define": ["error", "nofunc"], "no-unused-expressions": 0, diff --git a/.gitignore b/.gitignore index 7d45656..0a1645f 100644 --- a/.gitignore +++ b/.gitignore @@ -1,6 +1,5 @@ node_modules coverage -tsc-out *.log lib .idea diff --git a/package.json b/package.json index fc8faf6..f07bfc7 100644 --- a/package.json +++ b/package.json @@ -48,9 +48,11 @@ "typescript": "^2.0.10" }, "dependencies": { + "eslint-plugin-typescript": "^0.1.0", "lodash.isplainobject": "^4.0.6", "lodash.isstring": "^4.0.1", - "lodash.issymbol": "^4.0.1" + "lodash.issymbol": "^4.0.1", + "typescript-eslint-parser": "^1.0.2" }, "nyc": { "all": true, diff --git a/tsconfig.json b/tsconfig.json index 3989eef..42d3e8f 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -1,6 +1,6 @@ { "compilerOptions": { - "outDir": "tsc-out", + "noEmit": true, "strictNullChecks": true, "target": "es5" }, diff --git a/yarn.lock b/yarn.lock index 5d745ca..eba2c9f 100644 --- a/yarn.lock +++ b/yarn.lock @@ -1258,6 +1258,12 @@ eslint-plugin-import@^2.2.0: minimatch "^3.0.3" pkg-up "^1.0.0" +eslint-plugin-typescript@^0.1.0: + version "0.1.0" + resolved "https://registry.yarnpkg.com/eslint-plugin-typescript/-/eslint-plugin-typescript-0.1.0.tgz#6d82b7960f3ff21a499e8b157b304453be5a5700" + dependencies: + requireindex "~1.1.0" + eslint@^3.10.2: version "3.13.0" resolved "https://registry.yarnpkg.com/eslint/-/eslint-3.13.0.tgz#636925fd163c9babe2e8be7ae43caf518d469577" @@ -2079,6 +2085,16 @@ lodash.pickby@^4.6.0: version "4.6.0" resolved "https://registry.yarnpkg.com/lodash.pickby/-/lodash.pickby-4.6.0.tgz#7dea21d8c18d7703a27c704c15d3b84a67e33aff" +lodash.tostring@^4.0.0: + version "4.1.4" + resolved "https://registry.yarnpkg.com/lodash.tostring/-/lodash.tostring-4.1.4.tgz#560c27d1f8eadde03c2cce198fef5c031d8298fb" + +lodash.unescape@4.0.0: + version "4.0.0" + resolved "https://registry.yarnpkg.com/lodash.unescape/-/lodash.unescape-4.0.0.tgz#36debfc492b81478471ef974cd3783e202eb6cef" + dependencies: + lodash.tostring "^4.0.0" + lodash@^4.0.0, lodash@^4.2.0, lodash@^4.3.0: version "4.17.4" resolved "https://registry.yarnpkg.com/lodash/-/lodash-4.17.4.tgz#78203a4d1c328ae1d86dca6460e369b57f4055ae" @@ -2674,6 +2690,10 @@ require-uncached@^1.0.2: caller-path "^0.1.0" resolve-from "^1.0.0" +requireindex@~1.1.0: + version "1.1.0" + resolved "https://registry.yarnpkg.com/requireindex/-/requireindex-1.1.0.tgz#e5404b81557ef75db6e49c5a72004893fe03e162" + resolve-from@^1.0.0: version "1.0.1" resolved "https://registry.yarnpkg.com/resolve-from/-/resolve-from-1.0.1.tgz#26cbfe935d1aeeeabb29bc3fe5aeb01e93d44226" @@ -2972,6 +2992,17 @@ typedarray@^0.0.6: version "0.0.6" resolved "https://registry.yarnpkg.com/typedarray/-/typedarray-0.0.6.tgz#867ac74e3864187b1d3d47d996a78ec5c8830777" +typescript-eslint-parser@^1.0.2: + version "1.0.2" + resolved "https://registry.yarnpkg.com/typescript-eslint-parser/-/typescript-eslint-parser-1.0.2.tgz#fd2abacf2ee3d9382ab3e449c8762b6beae4d0d7" + dependencies: + lodash.unescape "4.0.0" + object-assign "^4.0.1" + +typescript@^2.0.10: + version "2.1.5" + resolved "https://registry.yarnpkg.com/typescript/-/typescript-2.1.5.tgz#6fe9479e00e01855247cea216e7561bafcdbcd4a" + uglify-js@^2.6: version "2.7.5" resolved "https://registry.yarnpkg.com/uglify-js/-/uglify-js-2.7.5.tgz#4612c0c7baaee2ba7c487de4904ae122079f2ca8"