Skip to content

Commit

Permalink
style: reformat source files
Browse files Browse the repository at this point in the history
  • Loading branch information
thetutlage committed Feb 16, 2021
1 parent bdf1020 commit 76b1e11
Show file tree
Hide file tree
Showing 31 changed files with 14,736 additions and 15,509 deletions.
16 changes: 8 additions & 8 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
@@ -1,40 +1,40 @@
version: 2
jobs:
build_12.18.2:
build_14.15.4:
docker:
- image: 'circleci/node:12.18.2'
- image: circleci/node:14.15.4
working_directory: ~/app
steps:
- checkout
- restore_cache:
keys:
- 'v1-dependencies-{{ checksum "package.json" }}'
- v1-dependencies-{{ checksum "package.json" }}
- v1-dependencies-
- run: npm install
- save_cache:
paths:
- node_modules
key: 'v1-dependencies-{{ checksum "package.json" }}'
key: v1-dependencies-{{ checksum "package.json" }}
- run: npm test
build_latest:
docker:
- image: 'circleci/node:latest'
- image: circleci/node:latest
working_directory: ~/app
steps:
- checkout
- restore_cache:
keys:
- 'v1-dependencies-{{ checksum "package.json" }}'
- v1-dependencies-{{ checksum "package.json" }}
- v1-dependencies-
- run: npm install
- save_cache:
paths:
- node_modules
key: 'v1-dependencies-{{ checksum "package.json" }}'
key: v1-dependencies-{{ checksum "package.json" }}
- run: npm test
workflows:
version: 2
workflow:
jobs:
- build_12.18.2
- build_14.15.4
- build_latest
4 changes: 2 additions & 2 deletions .editorconfig
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
root = true

[*]
indent_style = tab
indent_style = space
indent_size = 2
end_of_line = lf
charset = utf-8
Expand All @@ -23,4 +23,4 @@ indent_style = tab
trim_trailing_whitespace = false

[MakeFile]
indent_style = tab
indent_style = space
2 changes: 1 addition & 1 deletion .eslintrc.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
"prettier/prettier": [
"error",
{
"endOfLine": "auto"
"endOfLine": "auto"
}
]
}
Expand Down
10 changes: 3 additions & 7 deletions .github/COMMIT_CONVENTION.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,12 +4,11 @@
Using conventional commit messages, we can automate the process of generating the CHANGELOG file. All commits messages will automatically be validated against the following regex.

```js
;/^(revert: )?(feat|fix|docs|style|refactor|perf|test|workflow|ci|chore|types|build)((.+))?: .{1,50}/
``` js
/^(revert: )?(feat|fix|docs|style|refactor|perf|test|workflow|ci|chore|types|build|improvement)((.+))?: .{1,50}/
```

## Commit Message Format
A commit message consists of a **header**, **body** and **footer**. The header has a **type**, **scope** and **subject**:

> The **scope** is optional
Expand All @@ -27,7 +26,6 @@ Prefix makes it easier to append a path to a group of routes
5. The optional **footer** can be added after the body, followed by a blank line.

## Types

Only one type can be used at a time and only following types are allowed.

- feat
Expand All @@ -46,15 +44,12 @@ Only one type can be used at a time and only following types are allowed.
If a type is `feat`, `fix` or `perf`, then the commit will appear in the CHANGELOG.md file. However if there is any BREAKING CHANGE, the commit will always appear in the changelog.

### Revert

If the commit reverts a previous commit, it should begin with `revert:`, followed by the header of the reverted commit. In the body it should say: `This reverts commit <hash>`., where the hash is the SHA of the commit being reverted.

## Scope

The scope could be anything specifying place of the commit change. For example: `router`, `view`, `querybuilder`, `database`, `model` and so on.

## Subject

The subject contains succinct description of the change:

- use the imperative, present tense: "change" not "changed" nor "changes".
Expand All @@ -72,3 +67,4 @@ The footer should contain any information about **Breaking Changes** and is also
reference GitHub issues that this commit **Closes**.

**Breaking Changes** should start with the word `BREAKING CHANGE:` with a space or two newlines. The rest of the commit message is then used for this.

5 changes: 2 additions & 3 deletions .github/ISSUE_TEMPLATE.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,16 +7,15 @@ We do our best to reply to all the issues on time. If you will follow the given
- Ensure the issue isn't already reported.
- Ensure you are reporting the bug in the correct repo.

_Delete the above section and the instructions in the sections below before submitting_
*Delete the above section and the instructions in the sections below before submitting*

## Description

If this is a feature request, explain why it should be added. Specific use-cases are best.

For bug reports, please provide as much _relevant_ info as possible.
For bug reports, please provide as much *relevant* info as possible.

## Package version

<!-- YOUR ANSWER -->

## Error Message & Stack Trace
Expand Down
2 changes: 2 additions & 0 deletions .prettierignore
Original file line number Diff line number Diff line change
Expand Up @@ -4,3 +4,5 @@ config.json
.eslintrc.json
package.json
*.html
*.md
*.txt
24 changes: 8 additions & 16 deletions .prettierrc
Original file line number Diff line number Diff line change
@@ -1,18 +1,10 @@
{
"trailingComma": "es5",
"semi": false,
"singleQuote": true,
"useTabs": true,
"quoteProps": "consistent",
"bracketSpacing": true,
"arrowParens": "always",
"printWidth": 100,
"overrides": [
{
"files": "*.md",
"options": {
"useTabs": false
}
}
]
"trailingComma": "es5",
"semi": false,
"singleQuote": true,
"useTabs": false,
"quoteProps": "consistent",
"bracketSpacing": true,
"arrowParens": "always",
"printWidth": 100
}
6 changes: 3 additions & 3 deletions appveyor.yml
Original file line number Diff line number Diff line change
@@ -1,16 +1,16 @@
environment:
matrix:
- nodejs_version: Stable
- nodejs_version: 12.18.2
- nodejs_version: 14.15.4
init: git config --global core.autocrlf true
install:
- ps: 'Install-Product node $env:nodejs_version'
- ps: Install-Product node $env:nodejs_version
- npm install
test_script:
- node --version
- npm --version
- npm run test
build: 'off'
build: off
clone_depth: 1
matrix:
fast_finish: true
3 changes: 1 addition & 2 deletions config.json
Original file line number Diff line number Diff line change
@@ -1,13 +1,12 @@
{
"core": false,
"ts": true,
"license": "MIT",
"services": [
"appveyor",
"circleci"
],
"appveyorUsername": "thetutlage",
"minNodeVersion": "12.18.2",
"minNodeVersion": "14.15.4",
"probotApps": [
"stale",
"lock"
Expand Down
8 changes: 4 additions & 4 deletions example/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,10 +11,10 @@ const exampleCode = dedent`
@endif
`
const tagsDef = {
if: {
block: true,
seekable: true,
},
if: {
block: true,
seekable: true,
},
}

const tokenizer = new Tokenizer(exampleCode, tagsDef, { filename: 'eval.edge' })
Expand Down
Loading

0 comments on commit 76b1e11

Please sign in to comment.