-
Notifications
You must be signed in to change notification settings - Fork 116
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
ci(docs): linting and formatting (#1403)
* ci: eslint and prettier * fix: eslint issues * fix: prettier issues * ci: add workflow * ci: fix doc check * ci: update linter configs * docs: formatting fixes
- Loading branch information
Showing
71 changed files
with
4,268 additions
and
1,054 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
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 |
---|---|---|
|
@@ -8,6 +8,8 @@ on: | |
- opened | ||
- synchronize | ||
- reopened | ||
paths-ignore: | ||
- 'docs/**' | ||
permissions: | ||
contents: read | ||
jobs: | ||
|
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 |
---|---|---|
|
@@ -5,6 +5,8 @@ on: | |
- opened | ||
- synchronize | ||
- reopened | ||
paths-ignore: | ||
- 'docs/**' | ||
permissions: | ||
contents: read | ||
jobs: | ||
|
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,38 @@ | ||
name: Lint Docs | ||
on: | ||
pull_request: | ||
types: | ||
- opened | ||
- synchronize | ||
- reopened | ||
paths: | ||
- 'docs/**' | ||
permissions: | ||
contents: read | ||
jobs: | ||
lint: | ||
defaults: | ||
run: | ||
working-directory: docs | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v4 | ||
- name: Setup Node | ||
uses: actions/setup-node@v4 | ||
with: | ||
node-version: "16" | ||
- name: Cache dependencies | ||
uses: actions/cache@v3 | ||
with: | ||
path: ~/.npm | ||
key: ${{ runner.os }}-node-${{ hashFiles('**/package-lock.json') }} | ||
restore-keys: | | ||
${{ runner.os }}-node- | ||
- name: Install dependencies | ||
run: npm ci | ||
- name: eslint | ||
run: npm run lint | ||
- name: prettier | ||
run: npm run prettier | ||
|
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 |
---|---|---|
|
@@ -8,6 +8,8 @@ on: | |
- opened | ||
- synchronize | ||
- reopened | ||
paths-ignore: | ||
- 'docs/**' | ||
permissions: | ||
contents: read | ||
jobs: | ||
|
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 |
---|---|---|
@@ -0,0 +1,12 @@ | ||
module.exports = { | ||
env: { | ||
browser: true, | ||
commonjs: true, | ||
es2021: true, | ||
node: true, | ||
}, | ||
extends: ["standard", "prettier"], | ||
parserOptions: { | ||
ecmaVersion: "latest", | ||
}, | ||
} |
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,13 +1,13 @@ | ||
name: bearer | ||
options: | ||
- name: help | ||
shorthand: h | ||
default_value: "false" | ||
usage: help for bearer | ||
- name: help | ||
shorthand: h | ||
default_value: "false" | ||
usage: help for bearer | ||
see_also: | ||
- bearer completion - Generate the autocompletion script for the your shell. | ||
- bearer ignore - Manage ignored fingerprints | ||
- bearer init - Generates a default config to `bearer.yml` | ||
- bearer scan - Scan a directory or file | ||
- bearer version - Print the version | ||
aliases: | ||
- bearer completion - Generate the autocompletion script for the your shell. | ||
- bearer ignore - Manage ignored fingerprints | ||
- bearer init - Generates a default config to `bearer.yml` | ||
- bearer scan - Scan a directory or file | ||
- bearer version - Print the version | ||
aliases: |
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,20 +1,20 @@ | ||
const EleventyFetch = require("@11ty/eleventy-fetch"); | ||
const yaml = require("js-yaml"); | ||
const EleventyFetch = require("@11ty/eleventy-fetch") | ||
const yaml = require("js-yaml") | ||
module.exports = async function () { | ||
let action; | ||
let action | ||
try { | ||
const response = await EleventyFetch( | ||
"https://raw.githubusercontent.com/Bearer/bearer-action/main/action.yml", | ||
{ | ||
duration: "60m", | ||
type: "text", | ||
} | ||
); | ||
action = yaml.load(response); | ||
}, | ||
) | ||
action = yaml.load(response) | ||
} catch (err) { | ||
console.log("Could not fetch release"); | ||
console.log("Could not fetch release") | ||
} | ||
return { | ||
...action, | ||
}; | ||
}; | ||
} | ||
} |
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.