Skip to content

Commit

Permalink
Update dependency prettier to v2.3.1 (#241)
Browse files Browse the repository at this point in the history
Co-authored-by: Renovate Bot <[email protected]>
Co-authored-by: Gustav Utterheim <[email protected]>
  • Loading branch information
3 people authored Jun 23, 2021
1 parent 8641253 commit ad1df0f
Show file tree
Hide file tree
Showing 9 changed files with 50 additions and 55 deletions.
2 changes: 1 addition & 1 deletion .github/ISSUE_TEMPLATE/bug_report.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,14 +4,14 @@ about: Create a report to help us improve
title: ''
labels: bug
assignees: ''

---

**Describe the bug**
A clear and concise description of what the bug is.

**To Reproduce**
Steps to reproduce the behavior:

1. Go to '...'
2. Click on '....'
3. Scroll down to '....'
Expand Down
3 changes: 1 addition & 2 deletions .github/ISSUE_TEMPLATE/feature_request.md
Original file line number Diff line number Diff line change
@@ -1,10 +1,9 @@
---
name: Feature request
about: Suggest an idea for this project
title: "[FEATURE]"
title: '[FEATURE]'
labels: enhancement
assignees: ''

---

**Is your feature request related to a problem? Please describe.**
Expand Down
4 changes: 2 additions & 2 deletions __mocks__/ora.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,6 @@ const ora = {
start: jest.fn(() => ({
stopAndPersist,
fail,
}))
}
})),
};
export default (): typeof ora => ora;
6 changes: 3 additions & 3 deletions __tests__/generate.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,9 @@ jest.mock('cosmiconfig');

const { readFileSync } = jest.requireActual('fs');
const sync = fg.sync as jest.Mock<unknown>;
const readFile = (fs.readFile as unknown) as jest.Mock<unknown>;
const writeFile = (fs.writeFileSync as unknown) as jest.Mock<unknown>;
const existsSync = (fs.existsSync as unknown) as jest.Mock<unknown>;
const readFile = fs.readFile as unknown as jest.Mock<unknown>;
const writeFile = fs.writeFileSync as unknown as jest.Mock<unknown>;
const existsSync = fs.existsSync as unknown as jest.Mock<unknown>;

const files = {
'dir1/CODEOWNERS': '../__mocks__/CODEOWNERS1',
Expand Down
41 changes: 22 additions & 19 deletions index.html
Original file line number Diff line number Diff line change
@@ -1,22 +1,25 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Documentation | codeowners-generator</title>
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1" />
<meta name="description" content="Documentation for codeowners-generator - use codeowners anywhere in your monorepo!">
<meta name="viewport" content="width=device-width, initial-scale=1.0, minimum-scale=1.0">
<link rel="stylesheet" href="//cdn.jsdelivr.net/npm/docsify@4/lib/themes/vue.css">
</head>
<body>
<div id="app"></div>
<script>
window.$docsify = {
name: '',
repo: ''
}
</script>
<!-- Docsify v4 -->
<script src="//cdn.jsdelivr.net/npm/docsify@4"></script>
</body>
<head>
<meta charset="UTF-8" />
<title>Documentation | codeowners-generator</title>
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1" />
<meta
name="description"
content="Documentation for codeowners-generator - use codeowners anywhere in your monorepo!"
/>
<meta name="viewport" content="width=device-width, initial-scale=1.0, minimum-scale=1.0" />
<link rel="stylesheet" href="//cdn.jsdelivr.net/npm/docsify@4/lib/themes/vue.css" />
</head>
<body>
<div id="app"></div>
<script>
window.$docsify = {
name: '',
repo: '',
};
</script>
<!-- Docsify v4 -->
<script src="//cdn.jsdelivr.net/npm/docsify@4"></script>
</body>
</html>
29 changes: 12 additions & 17 deletions jest.config.js
Original file line number Diff line number Diff line change
@@ -1,26 +1,21 @@
process.env.TZ = "UTC";
process.env.TZ = 'UTC';

module.exports = {
globals: {
"ts-jest": {
disableSourceMapSupport: true
}
'ts-jest': {
disableSourceMapSupport: true,
},
},
verbose: true,
transform: {
"^.+\\.tsx?$": "ts-jest"
'^.+\\.tsx?$': 'ts-jest',
},
preset: "ts-jest",
moduleFileExtensions: ["ts", "tsx", "js", "jsx", "json", "node"],
testURL: "http://localhost",
transformIgnorePatterns: ["[/\\\\]node_modules[/\\\\].+\\.(js|jsx)$"],
testMatch: ["**/*.(spec|test).{ts,tsx}"],
preset: 'ts-jest',
moduleFileExtensions: ['ts', 'tsx', 'js', 'jsx', 'json', 'node'],
testURL: 'http://localhost',
transformIgnorePatterns: ['[/\\\\]node_modules[/\\\\].+\\.(js|jsx)$'],
testMatch: ['**/*.(spec|test).{ts,tsx}'],
collectCoverage: true,
collectCoverageFrom: [
"config/**/*.{ts,tsx}",
"src/**/*.{ts,tsx}",
"!src/utils/guards.ts",
"!src/bin/cli.ts"
],
coverageDirectory: "./coverage/"
collectCoverageFrom: ['config/**/*.{ts,tsx}', 'src/**/*.{ts,tsx}', '!src/utils/guards.ts', '!src/bin/cli.ts'],
coverageDirectory: './coverage/',
};
14 changes: 7 additions & 7 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,7 @@
"jest": "26.6.3",
"jest-mock-process": "1.4.0",
"lint-staged": "10.5.4",
"prettier": "2.2.1",
"prettier": "2.3.1",
"prettier-eslint": "12.0.0",
"prettier-eslint-cli": "5.0.1",
"ts-jest": "26.5.1",
Expand Down
4 changes: 1 addition & 3 deletions renovate.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
{
"extends": [
"config:base"
]
"extends": ["config:base"]
}

0 comments on commit ad1df0f

Please sign in to comment.