Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions .distignore
Original file line number Diff line number Diff line change
Expand Up @@ -29,3 +29,6 @@
/phpunit.coverage.xml
/phpunit.report.xml
/README.md
/js/dashboard
/js/**.ts
/tsconfig.json
1 change: 1 addition & 0 deletions .gitattributes
Original file line number Diff line number Diff line change
Expand Up @@ -29,3 +29,4 @@
/phpunit.coverage.xml export-ignore
/phpunit.report.xml export-ignore
/README.md export-ignore
/tsconfig.json export-ignore
2 changes: 2 additions & 0 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,8 @@ jobs:
run: composer test
- name: PHP unit tests (multisite)
run: composer test-multisite
- name: Check TypeScript
run: npm run check
- name: JS unit tests
run: npm run test
quality:
Expand Down
7 changes: 5 additions & 2 deletions eslint.config.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,11 @@ import globals from 'globals';
export default [
...wordpress.configs.recommended.map((config) => ({
...config,
files: ['js/**.js', 'tests/js/*.test.js'],
ignores: ['js/snippet.js'],
files: ['js/*.ts', 'js/**/*.ts', 'tests/js/*.test.ts'],
})),
...wordpress.configs.recommended.map((config) => ({
...config,
files: ['tests/js/*.test.js'],
})),
...wordpress.configs.es5.map((config) => ({
...config,
Expand Down
Loading
Loading