From 27bd8d0224e081d35275c5ad54a817e38f1ab19e Mon Sep 17 00:00:00 2001 From: Ivan Goncharov Date: Thu, 18 Jun 2020 17:09:46 +0300 Subject: [PATCH] Run ESLint on the entire repo --- .eslintignore | 13 +++++++++++++ .eslintrc.yml | 1 - package.json | 2 +- 3 files changed, 14 insertions(+), 2 deletions(-) create mode 100644 .eslintignore diff --git a/.eslintignore b/.eslintignore new file mode 100644 index 0000000000..d073f18597 --- /dev/null +++ b/.eslintignore @@ -0,0 +1,13 @@ +# Copied from '.gitignore', please keep it in sync. +.eslintcache +node_modules +coverage +npmDist +denoDist +benchmarkDist +integrationTmp +npm +deno + +# Ignore TS files inside integration test +integrationTests/ts/*.ts diff --git a/.eslintrc.yml b/.eslintrc.yml index 119c588bfd..7fc40105b5 100644 --- a/.eslintrc.yml +++ b/.eslintrc.yml @@ -488,7 +488,6 @@ rules: wrap-regex: off yield-star-spacing: off -ignorePatterns: 'integrationTests/ts/*.ts' overrides: - files: '**/*.ts' parser: '@typescript-eslint/parser' diff --git a/package.json b/package.json index f8016760c6..3904808528 100644 --- a/package.json +++ b/package.json @@ -33,7 +33,7 @@ "changelog": "node resources/gen-changelog.js", "benchmark": "node --noconcurrent_sweeping --expose-gc --predictable ./resources/benchmark.js", "test": "npm run lint && npm run check && npm run testonly && npm run prettier:check && npm run check:spelling && npm run build:npm && npm run build:deno && npm run check:integrations", - "lint": "eslint --cache --ext .js,.ts src resources integrationTests", + "lint": "eslint --cache .", "check": "flow check", "check:cover": "node resources/check-cover.js && nyc report --nycrc-path .nycflowrc.yml", "testonly": "mocha --full-trace src/**/__tests__/**/*-test.js",