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 aa6724b commit 10831d5
Show file tree
Hide file tree
Showing 147 changed files with 6,272 additions and 6,237 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
@@ -1,7 +1,7 @@
# http://editorconfig.org

[*]
indent_style = tab
indent_style = space
indent_size = 2
end_of_line = lf
charset = utf-8
Expand All @@ -16,7 +16,7 @@ indent_style = ignore
insert_final_newline = ignore

[MakeFile]
indent_style = tab
indent_style = space

[*.md]
trim_trailing_whitespace = false
Expand Down
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 @@ -6,3 +6,5 @@ package.json
*.html
fixtures/*
newline-fixtures/*
*.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
25 changes: 19 additions & 6 deletions async-fixtures/components-advanced-props/compiled.js
Original file line number Diff line number Diff line change
@@ -1,9 +1,22 @@
let out = "";
let $lineNumber = 1;
let $filename = "{{__dirname}}index.edge";
let out = ''
let $lineNumber = 1
let $filename = '{{__dirname}}index.edge'
try {
out += await template.compileComponent("components-advanced-props/button")(template, template.getComponentState({ class: 'mb-4 px-4', id: 'foo-bar', title: 'Click me' }, { $context: Object.assign({}, $context), main: function () { return "" } }, { filename: $filename, line: $lineNumber, col: 0 }), $context);
out += await template.compileComponent('components-advanced-props/button')(
template,
template.getComponentState(
{ class: 'mb-4 px-4', id: 'foo-bar', title: 'Click me' },
{
$context: Object.assign({}, $context),
main: function () {
return ''
},
},
{ filename: $filename, line: $lineNumber, col: 0 }
),
$context
)
} catch (error) {
template.reThrow(error, $filename, $lineNumber);
template.reThrow(error, $filename, $lineNumber)
}
return out;
return out
2 changes: 1 addition & 1 deletion async-fixtures/components-advanced-props/index.json
Original file line number Diff line number Diff line change
@@ -1 +1 @@
{}
{}
25 changes: 19 additions & 6 deletions async-fixtures/components-falsy-args/compiled.js
Original file line number Diff line number Diff line change
@@ -1,9 +1,22 @@
let out = "";
let $lineNumber = 1;
let $filename = "{{__dirname}}index.edge";
let out = ''
let $lineNumber = 1
let $filename = '{{__dirname}}index.edge'
try {
out += await template.compileComponent("components-falsy-args/alert")(template, template.getComponentState({ index: 0 }, { $context: Object.assign({}, $context), main: function () { return "" } }, { filename: $filename, line: $lineNumber, col: 0 }), $context);
out += await template.compileComponent('components-falsy-args/alert')(
template,
template.getComponentState(
{ index: 0 },
{
$context: Object.assign({}, $context),
main: function () {
return ''
},
},
{ filename: $filename, line: $lineNumber, col: 0 }
),
$context
)
} catch (error) {
template.reThrow(error, $filename, $lineNumber);
template.reThrow(error, $filename, $lineNumber)
}
return out;
return out
3 changes: 1 addition & 2 deletions async-fixtures/components-falsy-args/index.json
Original file line number Diff line number Diff line change
@@ -1,2 +1 @@
{
}
{}
25 changes: 19 additions & 6 deletions async-fixtures/components-isolated-state/compiled.js
Original file line number Diff line number Diff line change
@@ -1,9 +1,22 @@
let out = "";
let $lineNumber = 1;
let $filename = "{{__dirname}}index.edge";
let out = ''
let $lineNumber = 1
let $filename = '{{__dirname}}index.edge'
try {
out += await template.compileComponent("components-isolated-state/alert")(template, template.getComponentState({}, { $context: Object.assign({}, $context), main: function () { return "" } }, { filename: $filename, line: $lineNumber, col: 0 }), $context);
out += await template.compileComponent('components-isolated-state/alert')(
template,
template.getComponentState(
{},
{
$context: Object.assign({}, $context),
main: function () {
return ''
},
},
{ filename: $filename, line: $lineNumber, col: 0 }
),
$context
)
} catch (error) {
template.reThrow(error, $filename, $lineNumber);
template.reThrow(error, $filename, $lineNumber)
}
return out;
return out
2 changes: 1 addition & 1 deletion async-fixtures/components-isolated-state/index.json
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
{
"username": "virk"
}
}
74 changes: 44 additions & 30 deletions async-fixtures/components-named-slots/compiled.js
Original file line number Diff line number Diff line change
@@ -1,33 +1,47 @@
let out = "";
let $lineNumber = 1;
let $filename = "{{__dirname}}index.edge";
let out = ''
let $lineNumber = 1
let $filename = '{{__dirname}}index.edge'
try {
out += await template.compileComponent("components-named-slots/alert")(template, template.getComponentState({}, { $context: Object.assign({}, $context), main: async function () { const $context = this.$context;
let slot_main = "";
try {
slot_main += " Hello ";
$lineNumber = 2;
slot_main += `${template.escape(state.name)}`;
slot_main += " line 1";
slot_main += "\n";
slot_main += " Hello ";
$lineNumber = 6;
slot_main += `${template.escape(state.name)}`;
slot_main += " line 2";
} catch (error) {
template.reThrow(error, $filename, $lineNumber);
}
return slot_main;
}, "heading": async function () { const $context = this.$context;
let slot_1 = "";
try {
slot_1 += " This is title";
} catch (error) {
template.reThrow(error, $filename, $lineNumber);
}
return slot_1;
} }, { filename: $filename, line: $lineNumber, col: 0 }), $context);
out += await template.compileComponent('components-named-slots/alert')(
template,
template.getComponentState(
{},
{
$context: Object.assign({}, $context),
main: async function () {
const $context = this.$context
let slot_main = ''
try {
slot_main += ' Hello '
$lineNumber = 2
slot_main += `${template.escape(state.name)}`
slot_main += ' line 1'
slot_main += '\n'
slot_main += ' Hello '
$lineNumber = 6
slot_main += `${template.escape(state.name)}`
slot_main += ' line 2'
} catch (error) {
template.reThrow(error, $filename, $lineNumber)
}
return slot_main
},
heading: async function () {
const $context = this.$context
let slot_1 = ''
try {
slot_1 += ' This is title'
} catch (error) {
template.reThrow(error, $filename, $lineNumber)
}
return slot_1
},
},
{ filename: $filename, line: $lineNumber, col: 0 }
),
$context
)
} catch (error) {
template.reThrow(error, $filename, $lineNumber);
template.reThrow(error, $filename, $lineNumber)
}
return out;
return out
2 changes: 1 addition & 1 deletion async-fixtures/components-named-slots/index.json
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
{
"name": "virk"
}
}
Loading

0 comments on commit 10831d5

Please sign in to comment.