This file contains hidden or 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
// closure | |
function foo(initial = 0) { | |
let counter = initial | |
return { | |
get counter() { return counter }, | |
increment() { counter += 1 }, | |
} | |
} | |
const f1 = foo() | |
f1.counter //=> 0 |
This file contains hidden or 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
rules: | |
- id: github.actions.disallow-set-env-and-add-path | |
pattern: | |
- "set-env" | |
- "add-path" | |
glob: | |
- ".github/workflows/*.yml" | |
message: | | |
Disallow `set-env` and `add-path` commands in workflows of GitHub Actions. |
This file contains hidden or 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
- id: sample.sub.bar | |
pattern: bar | |
message: Disallo `bar` method |
This file contains hidden or 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
2.7.1 |
This file contains hidden or 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
{ | |
"problemMatcher": [ | |
{ | |
"owner": "stylelint-compact", | |
"pattern": [ | |
{ | |
"regexp": "^(.+): line (\\d+), col (\\d+), (\\S+) - (.+) (\\(\\S+\\))$", | |
"file": 1, | |
"line": 2, | |
"column": 3, |
This file contains hidden or 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
# https://help.github.com/en/actions/reference/workflow-commands-for-github-actions#setting-an-error-message | |
# https://help.github.com/en/actions/reference/workflow-syntax-for-github-actions#using-a-specific-shell | |
# | |
# https://docs.rubocop.org/rubocop/configuration.html#severity | |
name: RuboCop | |
on: pull_request | |
jobs: |
This file contains hidden or 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
# https://help.github.com/en/actions/reference/workflow-commands-for-github-actions#setting-an-error-message | |
# https://help.github.com/en/actions/reference/workflow-syntax-for-github-actions#using-a-specific-shell | |
name: Steep | |
on: pull_request | |
jobs: | |
check: | |
runs-on: ubuntu-latest |
This file contains hidden or 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
# https://github.com/secretlint/secretlint | |
name: secretlint | |
on: | |
push: | |
branches: ['main'] | |
pull_request: | |
branches: ['**'] | |
jobs: |
This file contains hidden or 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
# See also: | |
# - https://github.com/actions/runner/issues/774 | |
# - https://help.github.com/en/actions/reference/events-that-trigger-workflows#push-event-push | |
# - https://help.github.com/en/actions/reference/events-that-trigger-workflows#pull-request-event-pull_request | |
# - https://help.github.com/en/actions/reference/context-and-expression-syntax-for-github-actions | |
name: "[skip ci]" on Actions | |
on: [push, pull_request] |
This file contains hidden or 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
name: Release | |
on: | |
push: | |
tags: ["**"] | |
jobs: | |
run: | |
runs-on: ubuntu-latest | |
steps: |