Skip to content

Commit c319b30

Browse files
authored
Use Typescript for config schemas (duckduckgo#2439)
* Define config output schema in TS and validate with JSONSchema * Add more feature types and validate against full spec in tests * Remove schema generator npm command * Better key name * Remove validation script - superseded by test * Webcompat settings in TS * Install ts-json-schema-generator * Remove JSONSchema definitions in favor of TS * Move webcompat tests to TS schema * Add missing webcompat property * Fix autoconsent schema * Add filters to android experimentalVariants * Add duckplayer schema * Complete Duckplayer schema * Remove duckplayer JSONSchema * Make things prettier * Validate v3 config files * Use node 20 for tests * Narrow webcompat patchSettings * Add test for feature name matching expected regex
1 parent d4c0fa3 commit c319b30

22 files changed

+1005
-594
lines changed

.github/workflows/tests.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,10 +18,10 @@ jobs:
1818
runs-on: ubuntu-20.04
1919
steps:
2020
- uses: actions/checkout@v4
21-
- name: Use Node.js 16
21+
- name: Use Node.js 20
2222
uses: actions/setup-node@v4
2323
with:
24-
node-version: 16.x
24+
node-version: 20.x
2525
- name: Install dependencies
2626
run: npm install
2727
- uses: ./

.prettierrc

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
{
2+
"singleQuote": true,
3+
"printWidth": 140,
4+
"tabWidth": 4
5+
}

0 commit comments

Comments
 (0)