-
Notifications
You must be signed in to change notification settings - Fork 27
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Prettier config & prettify everything; change last-coverage-summary.j…
…son identation level to match prettier default
- Loading branch information
1 parent
e1eae63
commit 75c3564
Showing
76 changed files
with
5,248 additions
and
4,360 deletions.
There are no files selected for viewing
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,55 +1,65 @@ | ||
repos: | ||
- repo: https://github.com/pre-commit/pre-commit-hooks | ||
rev: v4.0.1 | ||
hooks: | ||
- id: trailing-whitespace | ||
- id: end-of-file-fixer | ||
- id: check-yaml | ||
- id: check-json | ||
- id: check-added-large-files | ||
- repo: https://github.com/jumanjihouse/pre-commit-hooks.git | ||
rev: 2.1.5 | ||
hooks: | ||
- id: shellcheck | ||
args: ['--shell=bash', '--color=always', '--external-sources'] | ||
additional_dependencies: [] | ||
- repo: https://github.com/pre-commit/mirrors-eslint | ||
rev: v8.0.0-beta.0 | ||
hooks: | ||
- id: eslint | ||
- repo: local | ||
hooks: | ||
- id: tests | ||
name: Mocha tests | ||
language: system | ||
entry: npm test | ||
always_run: true | ||
pass_filenames: false | ||
require_serial: true | ||
- repo: local | ||
hooks: | ||
- id: coverage | ||
name: Ensure that coverage hasn't decreased per-file | ||
language: system | ||
entry: ./check-coverage last-coverage-summary.json | ||
always_run: true | ||
pass_filenames: false | ||
require_serial: true | ||
- repo: local | ||
hooks: | ||
- id: svelte-check | ||
name: Svelte check | ||
language: system | ||
entry: npx svelte-check --fail-on-warnings | ||
always_run: true | ||
pass_filenames: false | ||
require_serial: true | ||
- repo: local | ||
hooks: | ||
- id: rollup | ||
name: Rollup dry run | ||
language: system | ||
entry: sh -c 'ADDON_DIST_DIR="$(mktemp -d)"; export ADDON_DIST_DIR; npm run build; EXITCODE=$?; rm -r "${ADDON_DIST_DIR}"; exit "${EXITCODE}"' | ||
always_run: true | ||
pass_filenames: false | ||
require_serial: true | ||
- repo: https://github.com/pre-commit/pre-commit-hooks | ||
rev: v4.0.1 | ||
hooks: | ||
- id: trailing-whitespace | ||
- id: end-of-file-fixer | ||
- id: check-yaml | ||
- id: check-json | ||
- id: check-added-large-files | ||
- repo: https://github.com/jumanjihouse/pre-commit-hooks.git | ||
rev: 2.1.5 | ||
hooks: | ||
- id: shellcheck | ||
args: ['--shell=bash', '--color=always', '--external-sources'] | ||
additional_dependencies: [] | ||
- repo: local | ||
hooks: | ||
- id: prettier | ||
name: prettier | ||
entry: npx prettier --write --list-different --ignore-unknown | ||
language: system | ||
pass_filenames: true | ||
types: [text] | ||
args: [] | ||
require_serial: false | ||
- repo: https://github.com/pre-commit/mirrors-eslint | ||
rev: v8.0.0-beta.0 | ||
hooks: | ||
- id: eslint | ||
- repo: local | ||
hooks: | ||
- id: tests | ||
name: Mocha tests | ||
language: system | ||
entry: npm test | ||
always_run: true | ||
pass_filenames: false | ||
require_serial: true | ||
- repo: local | ||
hooks: | ||
- id: coverage | ||
name: Ensure that coverage hasn't decreased per-file | ||
language: system | ||
entry: ./check-coverage last-coverage-summary.json | ||
always_run: true | ||
pass_filenames: false | ||
require_serial: true | ||
- repo: local | ||
hooks: | ||
- id: svelte-check | ||
name: Svelte check | ||
language: system | ||
entry: npx svelte-check --fail-on-warnings | ||
always_run: true | ||
pass_filenames: false | ||
require_serial: true | ||
- repo: local | ||
hooks: | ||
- id: rollup | ||
name: Rollup dry run | ||
language: system | ||
entry: sh -c 'ADDON_DIST_DIR="$(mktemp -d)"; export ADDON_DIST_DIR; npm run build; EXITCODE=$?; rm -r "${ADDON_DIST_DIR}"; exit "${EXITCODE}"' | ||
always_run: true | ||
pass_filenames: false | ||
require_serial: true |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
trailingComma: all | ||
singleQuote: true |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.