Skip to content

Commit

Permalink
Merge pull request #45 from sungik-choi/bump/packages
Browse files Browse the repository at this point in the history
  • Loading branch information
sungik-choi authored Nov 8, 2022
2 parents 6461569 + 8faa014 commit 18a5fb3
Show file tree
Hide file tree
Showing 21 changed files with 13,508 additions and 26,279 deletions.
85 changes: 41 additions & 44 deletions .eslintrc.js
Original file line number Diff line number Diff line change
@@ -1,49 +1,46 @@
module.exports = {
parser: "@typescript-eslint/parser",
plugins: ["jsx-a11y", "@typescript-eslint", "react"],
env: {
browser: true,
es6: true,
},
extends: [
"eslint:recommended",
"plugin:jsx-a11y/recommended",
"plugin:@typescript-eslint/recommended",
"plugin:@typescript-eslint/recommended-requiring-type-checking",
"plugin:react/recommended",
"plugin:react-hooks/recommended",
],
globals: {
Atomics: "readonly",
SharedArrayBuffer: "readonly",
},
parserOptions: {
ecmaFeatures: {
jsx: true,
root: true,
// NOTE: cf. https://stackoverflow.com/questions/63118405/how-to-fix-eslintrc-the-file-does-not-match-your-project-config
ignorePatterns: [".eslintrc.js", "**/build/*", "*.js"],
overrides: [
{
files: ["*.ts", "*.tsx"],
processor: "@graphql-eslint/graphql",
parser: "@typescript-eslint/parser",
plugins: ["react", "react-hooks", "jsx-a11y", "@typescript-eslint"],
extends: ["eslint:recommended", "plugin:@typescript-eslint/recommended"],
env: {
es6: true,
},
rules: {
"react-hooks/rules-of-hooks": "error",
"react-hooks/exhaustive-deps": "warn",
"@typescript-eslint/consistent-type-imports": "error",
"@typescript-eslint/no-unsafe-assignment": 0,
"@typescript-eslint/no-non-null-assertion": 0,
"@typescript-eslint/restrict-template-expressions": 0,
"@typescript-eslint/explicit-module-boundary-types": 0,
"@typescript-eslint/no-non-null-asserted-optional-chain": 0,
"react/prop-types": 0,
},
},
ecmaVersion: 2018,
sourceType: "module",
project: "./tsconfig.json",
},
settings: {
react: {
version: "detect",
{
files: ["*.graphql"],
parser: "@graphql-eslint/eslint-plugin",
plugins: ["@graphql-eslint"],
rules: {
"@graphql-eslint/no-anonymous-operations": "error",
"@graphql-eslint/naming-convention": [
"error",
{
OperationDefinition: {
style: "PascalCase",
forbiddenPrefixes: ["Query", "Mutation", "Subscription", "Get"],
forbiddenSuffixes: ["Query", "Mutation", "Subscription"],
},
},
],
},
},
},
// NOTE: cf. https://stackoverflow.com/questions/63118405/how-to-fix-eslintrc-the-file-does-not-match-your-project-config
ignorePatterns: [
".eslintrc.js",
"**/build/*",
"src/types/GraphQL.ts",
"*.js",
],
rules: {
"@typescript-eslint/consistent-type-imports": "error",
"@typescript-eslint/no-unsafe-assignment": 0,
"@typescript-eslint/no-non-null-assertion": 0,
"@typescript-eslint/restrict-template-expressions": 0,
"@typescript-eslint/explicit-module-boundary-types": 0,
"@typescript-eslint/no-non-null-asserted-optional-chain": 0,
"react/prop-types": 0,
},
}
44 changes: 2 additions & 42 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,69 +1,29 @@
# Logs
logs
*.log
npm-debug.log*
yarn-debug.log*
yarn-error.log*

# Runtime data
pids
*.pid
*.seed
*.pid.lock

# Directory for instrumented libs generated by jscoverage/JSCover
lib-cov

# Coverage directory used by tools like istanbul
coverage

# nyc test coverage
.nyc_output

# Grunt intermediate storage (http://gruntjs.com/creating-plugins#storing-task-files)
.grunt

# Bower dependency directory (https://bower.io/)
bower_components

# node-waf configuration
.lock-wscript

# Compiled binary addons (http://nodejs.org/api/addons.html)
build/Release

# Dependency directories
node_modules/
jspm_packages/

# Typescript v1 declaration files
typings/

# Optional npm cache directory
.npm

# Optional eslint cache
.eslintcache

# Optional REPL history
.node_repl_history

# Output of 'npm pack'
*.tgz

# dotenv environment variable files
.env*

# gatsby files
# Gatsby files
.cache/
public
src/gatsby-types.d.ts

# Mac files
.DS_Store

# Yarn
yarn-error.log
.pnp/
.pnp.js
# Yarn Integrity file
.yarn-integrity
4 changes: 2 additions & 2 deletions .releaserc
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"plugins": [
"@semantic-release/commit-analyzer",
"@semantic-release/release-notes-generator",
"@semantic-release/github",
"@semantic-release/github"
],
"branches": ["main"]
}
}
2 changes: 1 addition & 1 deletion LICENSE
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
MIT License

Copyright (c) 2020 Sungik Choi
Copyright (c) 2022 Sungik Choi

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
Expand Down
9 changes: 0 additions & 9 deletions codegen.yml

This file was deleted.

3 changes: 2 additions & 1 deletion gatsby-config.js
Original file line number Diff line number Diff line change
Expand Up @@ -146,7 +146,7 @@ const searchPlugins = [
{
allMarkdownRemark(
filter: { fileAbsolutePath: { regex: "/(posts/blog)/" } }
sort: { order: DESC, fields: [frontmatter___date] },
sort: { frontmatter: { date: DESC } }
) {
edges {
node {
Expand Down Expand Up @@ -192,6 +192,7 @@ const pwaPlugins = [
]

module.exports = {
graphqlTypegen: true,
siteMetadata,
plugins: [
...corePlugins,
Expand Down
4 changes: 2 additions & 2 deletions gatsby-node.js
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ exports.createPages = async ({ graphql, actions }) => {
{
postsRemark: allMarkdownRemark(
filter: { fileAbsolutePath: { regex: "/(posts/blog)/" } }
sort: { fields: frontmatter___date, order: DESC }
sort: { frontmatter: { date: DESC } }
limit: 2000
) {
edges {
Expand All @@ -36,7 +36,7 @@ exports.createPages = async ({ graphql, actions }) => {
}
}
categoriesGroup: allMarkdownRemark(limit: 2000) {
group(field: frontmatter___category) {
group(field: { frontmatter: { category: SELECT } }) {
fieldValue
totalCount
}
Expand Down
1 change: 1 addition & 0 deletions graphql.config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
module.exports = require("./.cache/typegen/graphql.config.json")
Loading

0 comments on commit 18a5fb3

Please sign in to comment.