Skip to content

Commit

Permalink
migrate
Browse files Browse the repository at this point in the history
  • Loading branch information
lynxtaa committed Nov 3, 2024
1 parent b32fcbf commit 090609f
Show file tree
Hide file tree
Showing 16 changed files with 99 additions and 74 deletions.
8 changes: 0 additions & 8 deletions examples/auth-with-jwt/.eslintrc.js

This file was deleted.

19 changes: 19 additions & 0 deletions examples/auth-with-jwt/eslint.config.mjs
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
import eslintConfig from '@lynxtaa/eslint-config'
import requiresTypechecking from '@lynxtaa/eslint-config/requires-typechecking'

// TODO: add jest
export default [
...eslintConfig,
...requiresTypechecking,
{
languageOptions: {
parserOptions: {
projectService: {
allowDefaultProject: ['eslint.config.mjs'],
},
// eslint-disable-next-line @typescript-eslint/no-unsafe-assignment
tsconfigRootDir: import.meta.dirname,
},
},
},
]
2 changes: 1 addition & 1 deletion examples/auth-with-jwt/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
"check-format": "pnpm run prettier --check",
"check-types": "tsc",
"format": "pnpm run prettier --write",
"lint": "eslint --max-warnings 0 --ext js,ts .",
"lint": "eslint --max-warnings 0 .",
"prettier": "prettier ."
},
"prettier": "@lynxtaa/prettier-config",
Expand Down
1 change: 0 additions & 1 deletion examples/next-js/.eslintignore

This file was deleted.

14 changes: 0 additions & 14 deletions examples/next-js/.eslintrc.js

This file was deleted.

23 changes: 23 additions & 0 deletions examples/next-js/eslint.config.mjs
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
import eslintConfig from '@lynxtaa/eslint-config'
import requiresTypechecking from '@lynxtaa/eslint-config/requires-typechecking'
import jest from 'eslint-plugin-jest'

// TODO: add ...compat.extends('next/core-web-vitals'),
export default [
...eslintConfig,
...requiresTypechecking,
jest.configs['flat/recommended'],
{
languageOptions: {
parserOptions: {
projectService: {
allowDefaultProject: ['eslint.config.mjs'],
},
tsconfigRootDir: import.meta.dirname,
},
},
},
{
ignores: ['lib/graphql-queries.ts'],
},
]
3 changes: 2 additions & 1 deletion examples/next-js/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
"dev": "next dev",
"format": "pnpm run prettier --write",
"gql-codegen": "graphql-codegen --config graphql-codegen.ts",
"lint": "eslint --max-warnings 0 --ext js,ts,tsx jest lib pages tests",
"lint": "eslint --max-warnings 0 jest lib pages tests",
"prettier": "prettier \"{lib,pages,tests}/**\" *.{js,ts,json,md}",
"start": "next start",
"test": "jest",
Expand Down Expand Up @@ -37,6 +37,7 @@
"@types/react": "18.3.3",
"eslint": "9.14.0",
"eslint-config-next": "14.2.5",
"eslint-plugin-jest": "28.8.3",
"graphql": "16.9.0",
"jest": "29.7.0",
"msw": "1.3.3",
Expand Down
1 change: 0 additions & 1 deletion examples/typed-document-node/.eslintignore

This file was deleted.

8 changes: 0 additions & 8 deletions examples/typed-document-node/.eslintrc.js

This file was deleted.

22 changes: 22 additions & 0 deletions examples/typed-document-node/eslint.config.mjs
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
import eslintConfig from '@lynxtaa/eslint-config'
import requiresTypechecking from '@lynxtaa/eslint-config/requires-typechecking'

// TODO: add jest
export default [
...eslintConfig,
...requiresTypechecking,
{
languageOptions: {
parserOptions: {
projectService: {
allowDefaultProject: ['eslint.config.mjs'],
},
// eslint-disable-next-line @typescript-eslint/no-unsafe-assignment
tsconfigRootDir: import.meta.dirname,
},
},
},
{
ignores: ['src/gql-documents.ts'],
},
]
2 changes: 1 addition & 1 deletion examples/typed-document-node/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
"check-types": "tsc",
"format": "pnpm run prettier --write",
"gql-codegen": "graphql-codegen --config graphql-codegen.yml",
"lint": "eslint --max-warnings 0 --ext js,ts src",
"lint": "eslint --max-warnings 0 src",
"prettier": "prettier src",
"start": "pnpm run build && node build/index.js"
},
Expand Down
8 changes: 0 additions & 8 deletions examples/with-undici/.eslintrc.js

This file was deleted.

18 changes: 18 additions & 0 deletions examples/with-undici/eslint.config.mjs
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
import eslintConfig from '@lynxtaa/eslint-config'
import requiresTypechecking from '@lynxtaa/eslint-config/requires-typechecking'

// TODO: add jest
export default [
...eslintConfig,
...requiresTypechecking,
{
languageOptions: {
parserOptions: {
projectService: {
allowDefaultProject: ['eslint.config.mjs'],
},
tsconfigRootDir: import.meta.dirname,
},
},
},
]
2 changes: 1 addition & 1 deletion examples/with-undici/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
"check-format": "pnpm run prettier --check",
"check-types": "tsc",
"format": "pnpm run prettier --write",
"lint": "eslint --max-warnings 0 --ext js,ts src",
"lint": "eslint --max-warnings 0 src",
"prettier": "prettier src"
},
"prettier": "@lynxtaa/prettier-config",
Expand Down
1 change: 0 additions & 1 deletion packages/awesome-graphql-client/eslint.config.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@ import eslintConfig from '@lynxtaa/eslint-config'
import requiresTypechecking from '@lynxtaa/eslint-config/requires-typechecking'
import jest from 'eslint-plugin-jest'

// TODO: add jest
export default [
...eslintConfig,
...requiresTypechecking,
Expand Down
41 changes: 12 additions & 29 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 090609f

Please sign in to comment.