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

This file was deleted.

177 changes: 0 additions & 177 deletions .eslintrc

This file was deleted.

14 changes: 0 additions & 14 deletions .flowconfig

This file was deleted.

12 changes: 6 additions & 6 deletions .github/workflows/validation.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
name: Flow check, Lint and Tests
name: Typescript check, Lint and Tests

on: push
on: [push, pull_request]

jobs:
validation:
Expand All @@ -17,13 +17,13 @@ jobs:
uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node-version }}
cache: 'yarn'
cache: 'npm'

- name: Install Dependencies using Yarn
run: yarn --ignore-engines
- name: Install Dependencies using NPM
run: npm install

- name: Tests
run: yarn test:ci
run: npm run test:ci

- name: Upload coverage to Codecov
uses: codecov/codecov-action@v4
Expand Down
5 changes: 0 additions & 5 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,3 @@ npm-debug.log
node_modules
coverage
dist

# Generated with release scripts
index.d.ts
index.js
index.js.flow
6 changes: 3 additions & 3 deletions CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,14 +17,14 @@ We actively welcome your pull requests for documentation and code.
4. Ensure the test suite passes.
5. Make sure your code lints.
6. If you haven't already, complete the Contributor License Agreement ("CLA").
7. Run `yarn changeset` and describe the change you're proposing. Commit the file it creates in `.changeset` to the repo. [You can read more about changeset here.](https://github.com/changesets/changesets)
7. Run `npx @changesets/cli` and describe the change you're proposing. Commit the file it creates in `.changeset` to the repo. [You can read more about changeset here.](https://github.com/changesets/changesets)
8. Open a Pull Request so we can review and incorporate your change.

## Releases

To release a new version:
1. Run `yarn changeset version` to bump the version of the package.
2. Run `yarn release` this will create a new release on GitHub and publish the package to NPM.
1. Run `npx @changesets/cli version` to bump the version of the package.
2. Run `npx @changesets/cli publish` this will create a new release on GitHub and publish the package to NPM.

## Issues

Expand Down
3 changes: 1 addition & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -653,9 +653,8 @@ DataLoader and how it works.
[graphql-js]: https://github.com/graphql/graphql-js
[cache algorithms]: https://en.wikipedia.org/wiki/Cache_algorithms
[express]: http://expressjs.com/
[babel/polyfill]: https://babeljs.io/docs/usage/polyfill/
[lru_map]: https://github.com/rsms/js-lru
[source code]: https://github.com/graphql/dataloader/blob/main/src/index.js
[source code]: https://github.com/graphql/dataloader/blob/main/src/index.ts

# Contributing to this repo

Expand Down
5 changes: 0 additions & 5 deletions babel.config.js

This file was deleted.

18 changes: 18 additions & 0 deletions eslint.config.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
import js from '@eslint/js';
import globals from 'globals';
import tseslint from 'typescript-eslint';
import eslintConfigPrettier from 'eslint-config-prettier';
import eslintPluginPrettierRecommended from 'eslint-plugin-prettier/recommended';
import { defineConfig } from 'eslint/config';

export default defineConfig([
{
files: ['**/*.{js,mjs,cjs,ts,mts,cts}'],
plugins: { js },
extends: ['js/recommended'],
languageOptions: { globals: { ...globals.browser, ...globals.node } },
},
tseslint.configs.recommended,
eslintConfigPrettier,
eslintPluginPrettierRecommended,
]);
Loading