packages/graphql: add eslint
This commit is contained in:
parent
f2f7138c67
commit
fda1a0a531
@ -7,7 +7,8 @@
|
||||
"./base": "./base.js",
|
||||
"./next-js": "./next.js",
|
||||
"./react-internal": "./react-internal.js",
|
||||
"./tailwind": "./tailwind.js"
|
||||
"./tailwind": "./tailwind.js",
|
||||
"./typescript": "./typescript.js"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@vchikalkin/eslint-config-awesome": "catalog:",
|
||||
|
||||
12
packages/eslint-config/typescript.js
Normal file
12
packages/eslint-config/typescript.js
Normal file
@ -0,0 +1,12 @@
|
||||
import { config as baseConfig } from './base.js';
|
||||
import awesome from '@vchikalkin/eslint-config-awesome';
|
||||
|
||||
/**
|
||||
* A custom ESLint configuration for libraries that use TypeScript.
|
||||
*
|
||||
* @type {import("eslint").Linter.Config}
|
||||
* */
|
||||
export const typescript = [
|
||||
...baseConfig,
|
||||
...awesome['typescript'],
|
||||
];
|
||||
9
packages/graphql/eslint.config.js
Normal file
9
packages/graphql/eslint.config.js
Normal file
@ -0,0 +1,9 @@
|
||||
import { typescript } from '@repo/eslint-config/typescript';
|
||||
|
||||
/** @type {import("eslint").Linter.Config} */
|
||||
export default [
|
||||
...typescript,
|
||||
{
|
||||
ignores: ['**/graphql/types.ts', '**/schema.graphql'],
|
||||
},
|
||||
];
|
||||
@ -14,6 +14,7 @@
|
||||
},
|
||||
"devDependencies": {
|
||||
"graphql": "catalog:",
|
||||
"@repo/eslint-config": "workspace:*",
|
||||
"@repo/typescript-config": "workspace:*",
|
||||
"@types/jsonwebtoken": "^9.0.7",
|
||||
"@graphql-codegen/cli": "^5.0.3",
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user