Skip to content

Commit

Permalink
(format): format all files, not just src/ and test/ (#648)
Browse files Browse the repository at this point in the history
- fix jest.config.js formatting errors
- ignore dist/ (and the default of node_modules)
  • Loading branch information
agilgur5 authored Mar 27, 2020
1 parent 477a6dd commit 3cb3841
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 7 deletions.
2 changes: 2 additions & 0 deletions .eslintignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
/node_modules/
dist/
10 changes: 4 additions & 6 deletions jest.config.js
Original file line number Diff line number Diff line change
@@ -1,10 +1,8 @@
module.exports = {
testEnvironment: 'node',
testMatch: [
'<rootDir>/**/*(*.)@(test).[tj]s?(x)'
],
testMatch: ['<rootDir>/**/*(*.)@(test).[tj]s?(x)'],
testPathIgnorePatterns: [
'/node_modules/', // default
'<rootDir>/templates/' // don't run tests in the templates
]
}
'<rootDir>/templates/', // don't run tests in the templates
],
};
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down

0 comments on commit 3cb3841

Please sign in to comment.