-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #14 from rikhall1515/feat/turborepo
Feat/turborepo
- Loading branch information
Showing
54 changed files
with
11,199 additions
and
1,488 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
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 |
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,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" | ||
} | ||
] | ||
} | ||
} | ||
] | ||
} |
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,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 |
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,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 |
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 @@ | ||
blank_issues_enabled: false |
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 was deleted.
Oops, something went wrong.
Oops, something went wrong.