Skip to content

Commit d25e949

Browse files
authored
Merge pull request #3684 from projectblacklight/prettier
Add prettier and Eslint and use them to format javascript
2 parents 6fb71ea + 345aed7 commit d25e949

67 files changed

Lines changed: 6549 additions & 4320 deletions

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.github/workflows/ruby.yml

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -61,3 +61,20 @@ jobs:
6161
context: .
6262
file: ./Dockerfile
6363
push: false
64+
65+
javascript:
66+
runs-on: ubuntu-latest
67+
name: javascript (prettier & eslint)
68+
steps:
69+
- uses: actions/checkout@v4
70+
- name: Set up Node
71+
uses: actions/setup-node@v4
72+
with:
73+
node-version: "lts/*"
74+
cache: "npm"
75+
- name: Install dependencies
76+
run: npm ci
77+
- name: Check formatting
78+
run: npm run format:check
79+
- name: Lint
80+
run: npm run lint

.prettierignore

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
node_modules/
2+
vendor/
3+
coverage/
4+
.internal_test_app/
5+
pkg/
6+
**/*.min.js

.prettierrc.json

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
{
2+
"semi": false,
3+
"singleQuote": false
4+
}

0 commit comments

Comments
 (0)