This repository was archived by the owner on Jun 11, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
refactor: remove 'format' vs 'lint' differentiation
unifies into one name, 'fix'. the differentiation was done in the first place because formatters typically need less configuration and don't output errors. but if that is so, we can include them with 'lint' since they won't output errors. and since formatters aren't linters, we can create a new 'fix' name
- Loading branch information
1 parent
abac4be
commit 76be159
Showing
28 changed files
with
210 additions
and
177 deletions.
There are no files selected for viewing
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,12 +1,12 @@ | ||
import { bootstrapFunction, lintFunction } from "./"; | ||
import * as foxUtils from "fox-utils"; | ||
import { bootstrapFunction, fixFunction } from "./"; | ||
import { info } from './info' | ||
|
||
export async function bin() { | ||
await foxUtils.buildCli(process.argv, { | ||
pluginName: info.name, | ||
pluginDescription: info.description, | ||
bootstrapFunction, | ||
actionFunction: lintFunction | ||
fixFunction | ||
}); | ||
} |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,12 +1,12 @@ | ||
import { bootstrapFunction, lintFunction } from "."; | ||
import { info } from './info' | ||
import * as foxUtils from "fox-utils"; | ||
import { bootstrapFunction, fixFunction } from "."; | ||
import { info } from './info' | ||
|
||
export async function bin() { | ||
await foxUtils.buildCli(process.argv, { | ||
pluginName: info.name, | ||
pluginDescription: info.description, | ||
bootstrapFunction, | ||
actionFunction: lintFunction | ||
fixFunction | ||
}); | ||
} |
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
5 changes: 3 additions & 2 deletions
5
packages/fox-plugin-markdown-lint/bin/fox-plugin-markdown-lint.js
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,5 +1,6 @@ | ||
#!/usr/bin/env node | ||
|
||
const { bin } = require('../build/bin'); | ||
require = require('fox-esm')(module) | ||
|
||
bin() | ||
const { bin } = require("../build/bin"); | ||
bin(); |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,12 @@ | ||
import { runMarkdownLint } from '.' | ||
import * as foxUtils from "fox-utils"; | ||
import { bootstrapFunction, fixFunction } from "./"; | ||
import { info } from './info' | ||
|
||
export async function bin() { | ||
try { | ||
await runMarkdownLint() | ||
} catch (err) { | ||
console.error(err) | ||
process.exitCode = 1 | ||
} | ||
await foxUtils.buildCli(process.argv, { | ||
pluginName: info.name, | ||
pluginDescription: info.description, | ||
bootstrapFunction, | ||
fixFunction | ||
}); | ||
} |
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
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
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
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
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,12 +1,12 @@ | ||
import { bootstrapFunction, lintFunction } from "./"; | ||
import * as foxUtils from "fox-utils"; | ||
import { bootstrapFunction, fixFunction } from "./"; | ||
import { info } from './info' | ||
|
||
export async function bin() { | ||
await foxUtils.buildCli(process.argv, { | ||
pluginName: info.name, | ||
pluginDescription: info.description, | ||
bootstrapFunction, | ||
actionFunction: lintFunction | ||
fixFunction | ||
}); | ||
} |
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 was deleted.
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
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.