Skip to content

Commit

Permalink
Merge pull request #17 from artichoke/lopopolo/lock-prettier
Browse files Browse the repository at this point in the history
Lock prettier version for dev and CI
  • Loading branch information
lopopolo authored Feb 24, 2024
2 parents bed7be9 + 7dcad38 commit 13d5a6d
Show file tree
Hide file tree
Showing 4 changed files with 41 additions and 22 deletions.
21 changes: 8 additions & 13 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -10,27 +10,22 @@ name: CI
schedule:
- cron: "0 0 * * TUE"
jobs:
js:
name: Lint JavaScript
text:
name: Lint and format text
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/[email protected]

- name: Setup Node.js runtime
uses: actions/[email protected]
with:
node-version: "lts/*"

- name: Install toolchain
run: npm ci

- name: Lint with eslint
run: npm run lint

text:
name: Lint and format text
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/[email protected]

- name: Lint and check formatting with prettier
- name: Format with prettier
run: npx prettier --check '**/*'

- name: Lint YAML sources with yamllint
Expand Down
1 change: 1 addition & 0 deletions .node-version
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
lts/*
27 changes: 26 additions & 1 deletion package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

14 changes: 6 additions & 8 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,24 +2,25 @@
"name": "@artichokeruby/spec-state",
"version": "0.1.0",
"private": true,
"description": "Artichoke project website",
"description": "Artichoke ruby/spec tracler",
"keywords": [
"programming language",
"scripting",
"ruby",
"rust",
"wasm"
],
"homepage": "https://artichoke.github.io/spec-state/",
"homepage": "https://www.artichokeruby.org",
"bugs": "https://github.com/artichoke/spec-state/issues",
"license": "MIT",
"author": "Ryan Lopopolo <[email protected]> (https://hyperbo.la/)",
"contributors": [
"Ryan Lopopolo <[email protected]> (https://hyperbo.la/)"
],
"repository": "github:artichoke/spec-state",
"dependencies": {},
"devDependencies": {},
"devDependencies": {
"prettier": "^3.2.5"
},
"eslintConfig": {
"env": {
"browser": true,
Expand All @@ -33,9 +34,6 @@
}
},
"scripts": {
"fmt": "npx prettier --write \"**/*\"",
"lint": "npx eslint . --ext .js,.jsx,.mjs,.ts,.tsx --no-error-on-unmatched-pattern",
"lint:fix": "npx eslint . --ext .js,.jsx,.mjs,.ts,.tsx --fix --no-error-on-unmatched-pattern",
"release:markdown_link_check": "find . -name '*.md' -and -not -path '*/node_modules/*' | sort | xargs -n1 npx markdown-link-check --config .github/markdown-link-check.json"
"fmt": "prettier --write \"**/*\""
}
}

0 comments on commit 13d5a6d

Please sign in to comment.