Skip to content
Merged
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
2 changes: 0 additions & 2 deletions .eslintignore

This file was deleted.

36 changes: 0 additions & 36 deletions .eslintrc.cjs

This file was deleted.

8 changes: 8 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -54,4 +54,12 @@ jobs:
node-version: ${{ matrix.node }}
cache: 'npm'
- run: npm install
- name: Get installed Playwright version
id: playwright-version
run: echo "version=$(cat node_modules/playwright/package.json | jq -r .version)" >> "$GITHUB_OUTPUT"
- uses: actions/cache@v4
with:
path: ~/.cache/ms-playwright
key: ${{ runner.os }}-playwright-${{ steps.playwright-version.outputs.version }}
restore-keys: ${{ runner.os }}-playwright-
- run: npm run e2e
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -482,6 +482,7 @@ type: `boolean`, default: `true`
Does not add `__is<AbstractType>` to the fields that can be passed to factory. `__is<AbstractType>` is a field that relay-compiler automatically adds to the query[^1][^2]. It is recommended for Relay users to set this option to `false`.

[^1]: https://github.com/facebook/relay/issues/3129#issuecomment-659439154

[^2]: https://github.com/search?q=repo%3Afacebook%2Frelay%20%2F__is%3CAbstractType%3E%2F&type=code

```ts
Expand Down
4 changes: 1 addition & 3 deletions e2e/01-esm/vite.config.ts
Original file line number Diff line number Diff line change
@@ -1,10 +1,8 @@
import { defineConfig } from 'vitest/config';
import GithubActionsReporter from 'vitest-github-actions-reporter';

// eslint-disable-next-line import/no-default-export
export default defineConfig({
test: {
include: ['**/*.e2e.ts'],
reporters: process.env['GITHUB_ACTIONS'] ? ['default', new GithubActionsReporter()] : 'default',
reporters: process.env['GITHUB_ACTIONS'] ? ['default', 'github-actions'] : 'default',
},
});
7 changes: 3 additions & 4 deletions e2e/03-browser/vite.config.ts
Original file line number Diff line number Diff line change
@@ -1,14 +1,13 @@
import { defineConfig } from 'vitest/config';
import GithubActionsReporter from 'vitest-github-actions-reporter';

// eslint-disable-next-line import/no-default-export
export default defineConfig({
test: {
include: ['**/*.e2e.ts'],
reporters: process.env['GITHUB_ACTIONS'] ? ['default', new GithubActionsReporter()] : 'default',
reporters: process.env['GITHUB_ACTIONS'] ? ['default', 'github-actions'] : 'default',
browser: {
enabled: true,
name: 'chrome',
provider: 'playwright',
name: 'chromium',
headless: true,
},
},
Expand Down
23 changes: 23 additions & 0 deletions eslint.config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
// @ts-check
import mizdra from '@mizdra/eslint-config-mizdra';

/** @type {import('eslint').Linter.Config[]} */
export default [
{ ignores: ['dist', 'e2e'] },
...mizdra.baseConfigs,
...mizdra.typescriptConfigs,
...mizdra.nodeConfigs,
{
files: ['**/*.{js,jsx,mjs,cjs}', '**/*.{ts,tsx,cts,mts}'],
rules: {
'n/no-extraneous-dependencies': 'off', // false positive
},
},
{
files: ['**/*.{ts,tsx,cts,mts}'],
rules: {
'@typescript-eslint/no-empty-object-type': 'off',
},
},
mizdra.prettierConfig,
];
Loading
Loading