Skip to content

Commit 3cb3841

Browse files
authored
(format): format all files, not just src/ and test/ (#648)
- fix jest.config.js formatting errors - ignore dist/ (and the default of node_modules)
1 parent 477a6dd commit 3cb3841

File tree

3 files changed

+7
-7
lines changed

3 files changed

+7
-7
lines changed

.eslintignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
/node_modules/
2+
dist/

jest.config.js

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,8 @@
11
module.exports = {
22
testEnvironment: 'node',
3-
testMatch: [
4-
'<rootDir>/**/*(*.)@(test).[tj]s?(x)'
5-
],
3+
testMatch: ['<rootDir>/**/*(*.)@(test).[tj]s?(x)'],
64
testPathIgnorePatterns: [
75
'/node_modules/', // default
8-
'<rootDir>/templates/' // don't run tests in the templates
9-
]
10-
}
6+
'<rootDir>/templates/', // don't run tests in the templates
7+
],
8+
};

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@
2424
"prepare": "tsc -p tsconfig.json",
2525
"build": "tsc -p tsconfig.json",
2626
"lint": "yarn build && yarn lint:post-build",
27-
"lint:post-build": "node dist/index.js lint src test --ignore-pattern 'test/e2e/fixtures/lint'",
27+
"lint:post-build": "node dist/index.js lint ./ --ignore-pattern 'test/e2e/fixtures/lint'",
2828
"test": "yarn build && yarn test:post-build",
2929
"test:post-build": "node dist/index.js test",
3030
"start": "tsc -p tsconfig.json --watch",

0 commit comments

Comments
 (0)