Skip to content

Commit

Permalink
Merge pull request #14 from rikhall1515/feat/turborepo
Browse files Browse the repository at this point in the history
Feat/turborepo
  • Loading branch information
rikhall1515 authored Apr 12, 2024
2 parents 7d9fa30 + e6447f6 commit 1349ef3
Show file tree
Hide file tree
Showing 54 changed files with 11,199 additions and 1,488 deletions.
13 changes: 13 additions & 0 deletions .browserslistrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
# https://github.com/browserslist/browserslist#readme

defaults and supports es6-module
maintained node versions

[production]

cover 95%
not dead

[development]

defaults
85 changes: 84 additions & 1 deletion .eslintrc.json
Original file line number Diff line number Diff line change
@@ -1,3 +1,86 @@
{
"extends": ["next/core-web-vitals", "prettier"]
"extends": "prettier",
"overrides": [
{
"files": ["public/**/*.js"],
"env": { "browser": true }
},
{
"files": ["components/**/*.stories.tsx"],
"extends": "plugin:storybook/recommended"
},
{
"files": ["**/{__tests__,__mocks__}/*.mjs"],
"env": { "jest": true }
},
{
"files": ["**/*.{js,mjs,ts,tsx}"],
"env": { "es6": true, "node": true },
"plugins": ["import"],
"extends": ["eslint:recommended", "next", "next/core-web-vitals"],
"rules": {
"import/order": [
"error",
{
"groups": [
"builtin",
"external",
"internal",
["sibling", "parent"],
"index",
"unknown"
],
"newlines-between": "always",
"alphabetize": {
"order": "asc",
"caseInsensitive": true
}
}
]
}
},
{
"files": ["**/*.ts?(x)"],
"plugins": ["@typescript-eslint", "no-relative-import-paths"],
"extends": [
"plugin:@typescript-eslint/recommended",
"plugin:import/recommended",
"plugin:import/typescript"
],
"parser": "@typescript-eslint/parser",
"rules": {
"@typescript-eslint/consistent-type-imports": "error",
"@typescript-eslint/array-type": ["error", { "default": "generic" }],
"no-relative-import-paths/no-relative-import-paths": [
"warn",
{ "allowSameFolder": true, "prefix": "@" }
]
}
},
{
"files": ["**/*.{tsx}"],
"rules": {
"@typescript-eslint/consistent-type-definitions": ["error", "type"],
"react/no-unescaped-entities": "off",
"react/function-component-definition": [
"error",
{
"namedComponents": "arrow-function",
"unnamedComponents": "arrow-function"
}
],
"no-restricted-syntax": [
"error",
{
"selector": "ImportDeclaration[source.value='react'][specifiers.0.type='ImportDefaultSpecifier']",
"message": "Default React import not allowed since we use the TypeScript jsx-transform. If you need a global type that collides with a React named export (such as `MouseEvent`), try using `globalThis.MouseHandler`"
},
{
"selector": "ImportDeclaration[source.value='react'] :matches(ImportNamespaceSpecifier)",
"message": "Named * React import is not allowed. Please import what you need from React with Named Imports"
}
]
}
}
]
}
50 changes: 50 additions & 0 deletions .github/ISSUE_TEMPLATE/01-bug-report.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,50 @@
name: Report a Technical/Visual Issue on the Next.js Template
description: "Is something not working as expected? Did you encounter a glitch or a bug with the Website?"
labels: [bug]
body:
- type: markdown
attributes:
value: |
Thanks for reporting an issue you've found on the nextjs template website.
Please fill in the template below. If unsure about something, just do as best
as you're able. If you are reporting a visual glitch, it will be much easier
to fix it when you attach a screenshot as well.
- type: input
attributes:
label: "URL:"
description: The URL of the page you are reporting an issue on.
placeholder: https://nextjs-project-template-rosy.vercel.app/
validations:
required: true
- type: input
attributes:
label: "Browser Name:"
description: What kind of browser are you using?
placeholder: Chrome
validations:
required: true
- type: input
attributes:
label: "Browser Version:"
description: What version of browser are you using?
placeholder: "103.0.5060.134"
validations:
required: true
- type: input
attributes:
label: "Operating System:"
description: What kind of operation system are you using
(Write it in full, with version number)?
placeholder: "Windows 10, 21H2, 19044.1826"
validations:
required: true
- type: textarea
attributes:
label: "How to reproduce the issue:"
placeholder: |
1. What I did.
2. What I expected to happen.
3. What I actually got.
4. If possible, images or videos are welcome.
validations:
required: true
19 changes: 19 additions & 0 deletions .github/ISSUE_TEMPLATE/02-feature-request.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
name: Suggest a new feature or improvement for the Nextjs Template
description: "Do you have an idea or a suggestion and you want to share?"
labels: [feature request]
body:
- type: markdown
attributes:
value: |
You have an idea how to improve the template? That's awesome!
Before submitting, please have a look at the existing issues if there's already
something related to your suggestion.
- type: textarea
attributes:
label: "Enter your suggestions in details:"
placeholder: |
1. What I expected to happen.
2. Your reason (if possible, images or videos are welcome).
3. What I plan to do (Optional but better).
validations:
required: true
1 change: 1 addition & 0 deletions .github/ISSUE_TEMPLATE/config.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
blank_issues_enabled: false
26 changes: 16 additions & 10 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
@@ -1,8 +1,3 @@
# To get started with Dependabot version updates, you'll need to specify which
# package ecosystems to update and where the package manifests are located.
# Please see the documentation for all configuration options:
# https://docs.github.com/code-security/dependabot/dependabot-version-updates/configuration-options-for-the-dependabot.yml-file

version: 2
updates:
- package-ecosystem: github-actions
Expand All @@ -14,11 +9,11 @@ updates:
commit-message:
prefix: meta
open-pull-requests-limit: 10
- package-ecosystem: npm # See documentation for possible values
directory: "/" # Location of package manifests
schedule:
interval: "monthly"
- package-ecosystem: npm
directory: "/"
versioning-strategy: increase
schedule:
interval: monthly
labels:
- "github_actions:pull-request"
commit-message:
Expand All @@ -33,11 +28,22 @@ updates:
- "stylelint-*"
exclude-patterns:
- "eslint-plugin-storybook"
storybook:
patterns:
- "storybook"
- "@storybook/*"
- "eslint-plugin-storybook"
testing:
patterns:
- "@testing-library/*"
- "@types/testing-library*"
- "@types/jest"
- "jest"
- "jest-*"
next-js:
patterns:
- "next"
- "turbo"
- "next-mdx-remote"
- "next-sitemap"
- "next-themes"
- "@vercel/*"
Expand Down
65 changes: 0 additions & 65 deletions .github/workflows/CI.yml

This file was deleted.

Loading

0 comments on commit 1349ef3

Please sign in to comment.