Skip to content

Commit 3a9fd9d

Browse files
raifdmuellerclaude
andcommitted
feat: Add Prettier for scripts/ directory
- Add prettier and eslint-config-prettier devDependencies to scripts/package.json - Add scripts/.prettierrc (same settings as website: no semicolons, single quotes) - Integrate eslint-config-prettier into scripts/eslint.config.mjs - Add format and format:check scripts to scripts/package.json - Extend CI lint job with Prettier check for scripts/ - Format all scripts/ files with Prettier Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
1 parent ad2de47 commit 3a9fd9d

10 files changed

Lines changed: 363 additions & 287 deletions

.github/workflows/test.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,10 @@ jobs:
4242
working-directory: ./scripts
4343
run: npm run lint
4444

45+
- name: Check Prettier formatting (scripts)
46+
working-directory: ./scripts
47+
run: npm run format:check
48+
4549
e2e-tests:
4650
name: E2E Tests
4751
runs-on: ubuntu-latest

scripts/.prettierrc

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
{
2+
"semi": false,
3+
"singleQuote": true,
4+
"tabWidth": 2,
5+
"trailingComma": "es5",
6+
"printWidth": 100
7+
}

scripts/eslint.config.mjs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
import js from '@eslint/js'
2+
import prettierConfig from 'eslint-config-prettier'
23

34
const nodeGlobals = {
45
require: 'readonly',
@@ -13,6 +14,7 @@ const nodeGlobals = {
1314

1415
export default [
1516
js.configs.recommended,
17+
prettierConfig,
1618
{
1719
files: ['**/*.js'],
1820
languageOptions: {

0 commit comments

Comments
 (0)