-
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
f8ed18b
commit 1a08b9e
Showing
47 changed files
with
3,132 additions
and
1,195 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
type Post { | ||
id: Int! | ||
text: String! | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
import gql from "graphql-tag" | ||
|
||
export const typeDefs = gql` | ||
type Post { | ||
id: Int! | ||
text: String! | ||
text: Int! | ||
} | ||
` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,24 +1,52 @@ | ||
import eslint from "@eslint/js" | ||
import eslintPluginPrettierRecommended from "eslint-plugin-prettier/recommended" | ||
import simpleImportSort from "eslint-plugin-simple-import-sort" | ||
import tseslint from "typescript-eslint" | ||
import config from "@antfu/eslint-config" | ||
import * as graphqlPlugin from "@graphql-eslint/eslint-plugin" | ||
|
||
export default tseslint.config( | ||
eslint.configs.recommended, | ||
...tseslint.configs.recommended, | ||
export default config( | ||
{ | ||
plugins: { | ||
"simple-import-sort": simpleImportSort, | ||
formatters: { | ||
graphql: true, | ||
}, | ||
stylistic: { | ||
quotes: "double", | ||
}, | ||
rules: { | ||
// Always use { } after if/for. | ||
"curly": ["error", "all"], | ||
"import/order": [ | ||
"error", | ||
{ | ||
// At least one new line between each group will be enforced, and new lines inside a group will be forbidden. | ||
"newlines-between": "always", | ||
"alphabetize": { | ||
order: "asc", | ||
orderImportKind: "asc", | ||
}, | ||
}, | ||
], | ||
"no-console": "warn", | ||
// Don't replace "a" + b to `a${b}` | ||
"prefer-template": "off", | ||
"test/consistent-test-it": "off", | ||
// Allow types similar to interfaces | ||
"ts/consistent-type-definitions": "off", | ||
// Allow shorthand method type signature | ||
"ts/method-signature-style": "off", | ||
// One true brace style. | ||
"style/brace-style": ["error", "1tbs"], | ||
"unicorn/template-indent": [ | ||
"error", | ||
], | ||
}, | ||
}, | ||
{ | ||
files: ["**/*.md/*.ts", "**/readme.sample.ts"], | ||
rules: { | ||
"simple-import-sort/imports": "warn", | ||
"simple-import-sort/exports": "warn", | ||
"@typescript-eslint/no-explicit-any": "off", | ||
"@typescript-eslint/no-empty-interface": "off", | ||
"no-console": "off", | ||
}, | ||
}, | ||
).prepend( | ||
{ | ||
ignores: ["packages/*/dist/"], | ||
files: ["**/*.ts"], | ||
processor: graphqlPlugin.processors.graphql, | ||
}, | ||
eslintPluginPrettierRecommended, | ||
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,24 +1,22 @@ | ||
{ | ||
"description": "graphql-orm monorepo root", | ||
"private": true, | ||
"type": "module", | ||
"version": "0.0.0", | ||
"private": true, | ||
"description": "graphql-orm monorepo root", | ||
"author": "Ilya Semenov", | ||
"license": "MIT", | ||
"type": "module", | ||
"scripts": { | ||
"lint": "eslint --fix . && prettier --write '**/*.{json,md}'", | ||
"lint": "eslint --fix .", | ||
"prepare": "husky" | ||
}, | ||
"devDependencies": { | ||
"@changesets/cli": "~2.27.1", | ||
"eslint": "~8.56.0", | ||
"eslint-config-prettier": "^9.1.0", | ||
"eslint-plugin-prettier": "~5.1.3", | ||
"eslint-plugin-simple-import-sort": "~12.0.0", | ||
"husky": "~9.0.11", | ||
"lint-staged": "~15.2.2", | ||
"prettier": "^3.2.5", | ||
"typescript": "~5.3.3", | ||
"typescript-eslint": "~7.0.2" | ||
"@antfu/eslint-config": "^2.21.1", | ||
"@changesets/cli": "^2.27.1", | ||
"@graphql-eslint/eslint-plugin": "^3.20.1", | ||
"eslint": "^9.5.0", | ||
"eslint-plugin-format": "^0.1.2", | ||
"husky": "^9.0.11", | ||
"lint-staged": "^15.2.2", | ||
"typescript": "^5.3.3" | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.