Skip to content

Commit

Permalink
change prettier rules
Browse files Browse the repository at this point in the history
  • Loading branch information
mshima committed Nov 29, 2022
1 parent 5df15af commit 97a044a
Show file tree
Hide file tree
Showing 48 changed files with 654 additions and 501 deletions.
1 change: 0 additions & 1 deletion .github/ISSUE_TEMPLATE/bug_report.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,5 +4,4 @@ about: Create a report to help us improve
title: ''
labels: needs triage
assignees: ''

---
1 change: 0 additions & 1 deletion .github/ISSUE_TEMPLATE/feature_request.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,5 +4,4 @@ about: Suggest an idea for this project
title: ''
labels: needs triage, enhancement
assignees: ''

---
27 changes: 14 additions & 13 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
@@ -1,16 +1,17 @@
version: 2
updates:
- package-ecosystem: "npm"
directory: "/"
schedule:
interval: daily
open-pull-requests-limit: 5
ignore:
- dependency-name: '*'
update-types: ["version-update:semver-minor", "version-update:semver-patch"]
- package-ecosystem: 'npm'
directory: '/'
schedule:
interval: daily
open-pull-requests-limit: 5
ignore:
- dependency-name: '*'
update-types:
['version-update:semver-minor', 'version-update:semver-patch']

- package-ecosystem: "github-actions"
directory: "/"
schedule:
interval: "weekly"
open-pull-requests-limit: 5
- package-ecosystem: 'github-actions'
directory: '/'
schedule:
interval: 'weekly'
open-pull-requests-limit: 5
13 changes: 6 additions & 7 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@ permissions:

jobs:
build:

runs-on: ${{ matrix.os }}

strategy:
Expand All @@ -23,9 +22,9 @@ jobs:
node-version: [14.x, 16.x, 18.x]

steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node-version }}
- run: npm ci
- run: npm test
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node-version }}
- run: npm ci
- run: npm test
4 changes: 2 additions & 2 deletions .github/workflows/gh_pages.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,8 @@ permissions:
jobs:
build:
permissions:
contents: write # for peter-evans/create-pull-request to create branch
pull-requests: write # for peter-evans/create-pull-request to create a PR
contents: write # for peter-evans/create-pull-request to create branch
pull-requests: write # for peter-evans/create-pull-request to create a PR
name: Update api docs
runs-on: ubuntu-latest
steps:
Expand Down
83 changes: 41 additions & 42 deletions .github/workflows/integration.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@ permissions:

jobs:
build:

runs-on: ${{ matrix.os }}

strategy:
Expand All @@ -22,50 +21,50 @@ jobs:
node-version: [14.x]

steps:
- name: Checkout yeoman-test
uses: actions/checkout@v3
with:
repository: yeoman/yeoman-test
path: yeoman-test
- name: Checkout yeoman-test
uses: actions/checkout@v3
with:
repository: yeoman/yeoman-test
path: yeoman-test

- name: Checkout yeoman-generator
uses: actions/checkout@v3
with:
path: yeoman-generator
- name: Checkout yeoman-generator
uses: actions/checkout@v3
with:
path: yeoman-generator

- name: Checkout yeoman-environment
uses: actions/checkout@v3
with:
repository: mshima/environment
path: yeoman-environment
- name: Checkout yeoman-environment
uses: actions/checkout@v3
with:
repository: mshima/environment
path: yeoman-environment

- uses: actions/[email protected]
with:
node-version: ${{ matrix.node-version }}
- run: npm install -g [email protected]
- uses: actions/[email protected]
with:
node-version: ${{ matrix.node-version }}
- run: npm install -g [email protected]

- name: Run yeoman-test test
run: |
cd $GITHUB_WORKSPACE/yeoman-test
npm ci
npm install ${{ github.repository }}#$GITHUB_SHA
npm install yeoman/environment#main
npm test
- name: Run yeoman-test test
run: |
cd $GITHUB_WORKSPACE/yeoman-test
npm ci
npm install ${{ github.repository }}#$GITHUB_SHA
npm install yeoman/environment#main
npm test
- name: Run yeoman-generator test
if: always()
run: |
cd $GITHUB_WORKSPACE/yeoman-generator
npm ci
npm install yeoman/yeoman-test#main
npm install yeoman/environment#main
npm test
- name: Run yeoman-generator test
if: always()
run: |
cd $GITHUB_WORKSPACE/yeoman-generator
npm ci
npm install yeoman/yeoman-test#main
npm install yeoman/environment#main
npm test
- name: Run yeoman-environment test
if: always()
run: |
cd $GITHUB_WORKSPACE/yeoman-environment
npm ci
npm install ${{ github.repository }}#$GITHUB_SHA
npm install yeoman/yeoman-test#main
npm test
- name: Run yeoman-environment test
if: always()
run: |
cd $GITHUB_WORKSPACE/yeoman-environment
npm ci
npm install ${{ github.repository }}#$GITHUB_SHA
npm install yeoman/yeoman-test#main
npm test
4 changes: 2 additions & 2 deletions .github/workflows/lock-maintenance.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,8 @@ permissions:
jobs:
build:
permissions:
contents: write # for peter-evans/create-pull-request to create branch
pull-requests: write # for peter-evans/create-pull-request to create a PR
contents: write # for peter-evans/create-pull-request to create branch
pull-requests: write # for peter-evans/create-pull-request to create a PR
name: Bump transitional dependencies
runs-on: ubuntu-latest
steps:
Expand Down
24 changes: 12 additions & 12 deletions .github/workflows/stale.yml
Original file line number Diff line number Diff line change
@@ -1,23 +1,23 @@
name: "Close stale issues"
name: 'Close stale issues'
on:
schedule:
- cron: "0 0 * * *"
- cron: '0 0 * * *'

permissions:
contents: read

jobs:
stale:
permissions:
issues: write # for actions/stale to close stale issues
pull-requests: write # for actions/stale to close stale PRs
issues: write # for actions/stale to close stale issues
pull-requests: write # for actions/stale to close stale PRs
runs-on: ubuntu-latest
steps:
- uses: actions/[email protected]
with:
repo-token: ${{ secrets.GITHUB_TOKEN }}
stale-issue-message: 'This issue is stale because it has been open with no activity. Remove stale label or comment or this will be closed'
days-before-stale: 30
days-before-close: 5
stale-issue-label: 'stale'
exempt-issue-labels: 'not stale'
- uses: actions/[email protected]
with:
repo-token: ${{ secrets.GITHUB_TOKEN }}
stale-issue-message: 'This issue is stale because it has been open with no activity. Remove stale label or comment or this will be closed'
days-before-stale: 30
days-before-close: 5
stale-issue-label: 'stale'
exempt-issue-labels: 'not stale'
4 changes: 4 additions & 0 deletions .prettierignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
dist
coverage
.nyc_output
**/fixtures/**
17 changes: 14 additions & 3 deletions .prettierrc
Original file line number Diff line number Diff line change
@@ -1,3 +1,14 @@
{
"singleQuote": true
}
# Prettier configuration

printWidth: 80
singleQuote: true
tabWidth: 2
useTabs: false
trailingComma: all

# js and ts rules:
arrowParens: avoid

# jsx and tsx rules:
bracketSameLine: false
bracketSpacing: true
9 changes: 2 additions & 7 deletions .xo-config.json
Original file line number Diff line number Diff line change
@@ -1,12 +1,8 @@
{
"space": true,
"envs": ["es2020", "node", "mocha"],
"prettier": {
"printWidth": 120
},
"ignores": [
"test/fixtures"
],
"prettier": true,
"ignores": ["test/fixtures"],
"rules": {
"no-await-in-loop": "off",
"prefer-rest-params": "off",
Expand All @@ -25,4 +21,3 @@
}
]
}

Loading

0 comments on commit 97a044a

Please sign in to comment.