Skip to content

Commit

Permalink
style(prettier): rerun prettier
Browse files Browse the repository at this point in the history
  • Loading branch information
spiltcoffee committed Jan 24, 2021
1 parent 734fd5e commit 03e36e6
Show file tree
Hide file tree
Showing 75 changed files with 3,548 additions and 3,549 deletions.
2 changes: 1 addition & 1 deletion .eslintrc.js
Original file line number Diff line number Diff line change
@@ -1 +1 @@
module.exports = require("./eslint.config")();
module.exports = require("./eslint.config")();
50 changes: 25 additions & 25 deletions .github/ISSUE_TEMPLATE/bug_report.md
Original file line number Diff line number Diff line change
@@ -1,25 +1,25 @@
---
name: Bug report
about: Create a report to help us improve
title: "[Bug] "
labels: "bug"
assignees: ""
---

### What versions am I using of...

- `nodejs`: x.x.x
- `npm`/`yarn`: x.x.x
- `postdfm`: x.x.x

### What did I do?

### What was I expecting?

### What happened instead?

### What do I think is the problem?

### Am I willing to make a pull request with failing tests to help speed up the fix?

### Am I willing to make a pull request with the fix as well?
---
name: Bug report
about: Create a report to help us improve
title: "[Bug] "
labels: "bug"
assignees: ""
---

### What versions am I using of...

- `nodejs`: x.x.x
- `npm`/`yarn`: x.x.x
- `postdfm`: x.x.x

### What did I do?

### What was I expecting?

### What happened instead?

### What do I think is the problem?

### Am I willing to make a pull request with failing tests to help speed up the fix?

### Am I willing to make a pull request with the fix as well?
22 changes: 11 additions & 11 deletions .github/ISSUE_TEMPLATE/feature_request.md
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
---
name: Feature request
about: Suggest an idea for this project
title: "[Feature] "
labels: "feature"
assignees: ""
---

### What doesn't `postdfm` do that I would like it to?

### Am I willing to make a pull request with an implementation of the feature?
---
name: Feature request
about: Suggest an idea for this project
title: "[Feature] "
labels: "feature"
assignees: ""
---

### What doesn't `postdfm` do that I would like it to?

### Am I willing to make a pull request with an implementation of the feature?
8 changes: 4 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -51,16 +51,16 @@ const cisDfm = fs.readFileSync(

const runner = postdfm({
transformers: [
function(ast) {
function (ast) {
//transform and return the ast
return transformedAst;
}
]
},
],
});

const transDfm = runner.processSync(dfm, {
//filename used for reporting errors
from: "cis.dfm"
from: "cis.dfm",
});

fs.writeFileSync("trans.dfm", transDfm);
Expand Down
134 changes: 67 additions & 67 deletions __test__/__fixtures__/parse/boundary-keyword/ast.json
Original file line number Diff line number Diff line change
@@ -1,67 +1,67 @@
{
"astType": "root",
"child": {
"astType": "object",
"kind": "object",
"name": "Outer",
"type": "TOuter",
"properties": [],
"children": [
{
"astType": "object",
"kind": "object",
"name": "Problem",
"type": "TProblem",
"properties": [
{
"astType": "property",
"name": "ProblemProperty",
"value": {
"astType": "identifier",
"value": "ErrorEnd"
},
"raws": {
"afterName": " ",
"beforeValue": " "
}
}
],
"children": [
{
"astType": "object",
"kind": "object",
"name": "Inner",
"type": "TInner",
"properties": [],
"children": [],
"raws": {
"afterName": "",
"beforeType": " ",
"beforeName": " ",
"beforeEnd": "\r\n "
}
}
],
"raws": {
"afterName": "",
"beforeType": " ",
"beforeName": " ",
"beforeProperties": "\r\n ",
"beforeChildren": "\r\n ",
"beforeEnd": "\r\n "
}
}
],
"raws": {
"afterName": "",
"beforeType": " ",
"beforeName": " ",
"beforeChildren": "\r\n ",
"beforeEnd": "\r\n"
}
},
"raws": {
"before": "",
"after": ""
}
}
{
"astType": "root",
"child": {
"astType": "object",
"kind": "object",
"name": "Outer",
"type": "TOuter",
"properties": [],
"children": [
{
"astType": "object",
"kind": "object",
"name": "Problem",
"type": "TProblem",
"properties": [
{
"astType": "property",
"name": "ProblemProperty",
"value": {
"astType": "identifier",
"value": "ErrorEnd"
},
"raws": {
"afterName": " ",
"beforeValue": " "
}
}
],
"children": [
{
"astType": "object",
"kind": "object",
"name": "Inner",
"type": "TInner",
"properties": [],
"children": [],
"raws": {
"afterName": "",
"beforeType": " ",
"beforeName": " ",
"beforeEnd": "\r\n "
}
}
],
"raws": {
"afterName": "",
"beforeType": " ",
"beforeName": " ",
"beforeProperties": "\r\n ",
"beforeChildren": "\r\n ",
"beforeEnd": "\r\n "
}
}
],
"raws": {
"afterName": "",
"beforeType": " ",
"beforeName": " ",
"beforeChildren": "\r\n ",
"beforeEnd": "\r\n"
}
},
"raws": {
"before": "",
"after": ""
}
}
12 changes: 6 additions & 6 deletions __test__/__fixtures__/parse/empty-file/ast.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"astType": "root",
"raws": {
"before": ""
}
}
{
"astType": "root",
"raws": {
"before": ""
}
}
42 changes: 21 additions & 21 deletions __test__/__fixtures__/parse/empty-object/ast.json
Original file line number Diff line number Diff line change
@@ -1,21 +1,21 @@
{
"astType": "root",
"child": {
"astType": "object",
"children": [],
"kind": "object",
"name": "Empty",
"properties": [],
"raws": {
"afterName": "",
"beforeEnd": "\r\n",
"beforeName": " ",
"beforeType": " "
},
"type": "TEmpty"
},
"raws": {
"after": "",
"before": ""
}
}
{
"astType": "root",
"child": {
"astType": "object",
"children": [],
"kind": "object",
"name": "Empty",
"properties": [],
"raws": {
"afterName": "",
"beforeEnd": "\r\n",
"beforeName": " ",
"beforeType": " "
},
"type": "TEmpty"
},
"raws": {
"after": "",
"before": ""
}
}
Loading

0 comments on commit 03e36e6

Please sign in to comment.