From 3cb384174954ebf7c59a103f6475c3f8c8bc691e Mon Sep 17 00:00:00 2001 From: Anton Gilgur Date: Fri, 27 Mar 2020 16:12:03 -0400 Subject: [PATCH] (format): format all files, not just src/ and test/ (#648) - fix jest.config.js formatting errors - ignore dist/ (and the default of node_modules) --- .eslintignore | 2 ++ jest.config.js | 10 ++++------ package.json | 2 +- 3 files changed, 7 insertions(+), 7 deletions(-) create mode 100644 .eslintignore diff --git a/.eslintignore b/.eslintignore new file mode 100644 index 000000000..23d99f204 --- /dev/null +++ b/.eslintignore @@ -0,0 +1,2 @@ +/node_modules/ +dist/ diff --git a/jest.config.js b/jest.config.js index 45abe6753..8a1e80a66 100644 --- a/jest.config.js +++ b/jest.config.js @@ -1,10 +1,8 @@ module.exports = { testEnvironment: 'node', - testMatch: [ - '/**/*(*.)@(test).[tj]s?(x)' - ], + testMatch: ['/**/*(*.)@(test).[tj]s?(x)'], testPathIgnorePatterns: [ '/node_modules/', // default - '/templates/' // don't run tests in the templates - ] -} + '/templates/', // don't run tests in the templates + ], +}; diff --git a/package.json b/package.json index d731ada44..ea4e4016a 100644 --- a/package.json +++ b/package.json @@ -24,7 +24,7 @@ "prepare": "tsc -p tsconfig.json", "build": "tsc -p tsconfig.json", "lint": "yarn build && yarn lint:post-build", - "lint:post-build": "node dist/index.js lint src test --ignore-pattern 'test/e2e/fixtures/lint'", + "lint:post-build": "node dist/index.js lint ./ --ignore-pattern 'test/e2e/fixtures/lint'", "test": "yarn build && yarn test:post-build", "test:post-build": "node dist/index.js test", "start": "tsc -p tsconfig.json --watch",