Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore: adds prettier and linting (#11)
* adds lint command and eslintrc.json * adds prettier * makes formatting changes from prettier Co-authored-by: Tara Z Manicsic <tzmanics@MacBook-Pro.local>
- Loading branch information
Showing
19 changed files
with
1,733 additions
and
1,807 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,3 @@ | ||
{ | ||
"extends": ["next/core-web-vitals", "prettier"] | ||
} |
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,7 @@ | ||
module.exports = { | ||
printWidth: 80, | ||
semi: true, | ||
singleQuote: true, | ||
tabWidth: 2, | ||
useTabs: 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 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 |
---|---|---|
@@ -1,4 +1,4 @@ | ||
import Link from "next/link"; | ||
import Link from 'next/link'; | ||
|
||
export default function Header({ name }) { | ||
return ( | ||
|
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,9 @@ | ||
module.exports = { | ||
mode: "jit", | ||
mode: 'jit', | ||
content: [ | ||
"./pages/**/*.{js,ts,jsx,tsx}", | ||
"./components/**/*.{js,ts,jsx,tsx}", | ||
'./pages/**/*.{js,ts,jsx,tsx}', | ||
'./components/**/*.{js,ts,jsx,tsx}', | ||
], | ||
darkMode: "class", // or 'media' or 'class' | ||
presets: [require("./utils/tailwind-preset")], | ||
darkMode: 'class', // or 'media' or 'class' | ||
presets: [require('./utils/tailwind-preset')], | ||
}; |
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,53 +1,53 @@ | ||
exports.COLOR_THEMES = { | ||
default: { | ||
colors: { | ||
primary: "#7D7AFF", | ||
"gradient-1": "#7d7aff", | ||
"gradient-2": "#2121e2", | ||
"gradient-3": "#00fff0", | ||
"gradient-4": "#8785FF", | ||
primary: '#7D7AFF', | ||
'gradient-1': '#7d7aff', | ||
'gradient-2': '#2121e2', | ||
'gradient-3': '#00fff0', | ||
'gradient-4': '#8785FF', | ||
}, | ||
}, | ||
bejamas: { | ||
colors: { | ||
primary: "#FF8585", | ||
"gradient-1": "#7d7aff", | ||
"gradient-2": "#2121E2", | ||
"gradient-3": "#FF76B8", | ||
"gradient-4": "#001AFF", | ||
primary: '#FF8585', | ||
'gradient-1': '#7d7aff', | ||
'gradient-2': '#2121E2', | ||
'gradient-3': '#FF76B8', | ||
'gradient-4': '#001AFF', | ||
}, | ||
}, | ||
netlify: { | ||
colors: { | ||
primary: "#00A354", | ||
"gradient-1": "#00F0FF", | ||
"gradient-2": "#00F0FF", | ||
"gradient-3": "#FAFF00", | ||
"gradient-4": "#00F0FF", | ||
primary: '#00A354', | ||
'gradient-1': '#00F0FF', | ||
'gradient-2': '#00F0FF', | ||
'gradient-3': '#FAFF00', | ||
'gradient-4': '#00F0FF', | ||
}, | ||
}, | ||
reddie: { | ||
colors: { | ||
primary: "#FF4D4D", | ||
"gradient-1": "#FFC700", | ||
"gradient-2": "#FF85DD", | ||
"gradient-3": "#FF85DD", | ||
"gradient-4": "#FF8585", | ||
primary: '#FF4D4D', | ||
'gradient-1': '#FFC700', | ||
'gradient-2': '#FF85DD', | ||
'gradient-3': '#FF85DD', | ||
'gradient-4': '#FF8585', | ||
}, | ||
}, | ||
greenie: { | ||
colors: { | ||
primary: "#C78500", | ||
"gradient-1": "#FFCC81", | ||
"gradient-2": "#00F37F", | ||
"gradient-3": "#00F37F", | ||
"gradient-4": "#FFCC81", | ||
primary: '#C78500', | ||
'gradient-1': '#FFCC81', | ||
'gradient-2': '#00F37F', | ||
'gradient-3': '#00F37F', | ||
'gradient-4': '#FFCC81', | ||
}, | ||
}, | ||
}; | ||
|
||
exports.FONT_THEMES = { | ||
"sans-serif": `ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji"`, | ||
'sans-serif': `ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji"`, | ||
serif: `ui-serif, Georgia, Cambria, "Times New Roman", Times, serif`, | ||
monospace: `ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace`, | ||
}; |
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,12 +1,17 @@ | ||
export const getGlobalData = () => { | ||
|
||
const name = process.env.BLOG_NAME ? decodeURI(process.env.BLOG_NAME) : "Jay Doe"; | ||
const blogTitle = process.env.BLOG_TITLE ? decodeURI(process.env.BLOG_TITLE) : "Next.js Blog Theme"; | ||
const footerText = process.env.BLOG_FOOTER_TEXT ? decodeURI(process.env.BLOG_FOOTER_TEXT) : "All rights reserved."; | ||
const name = process.env.BLOG_NAME | ||
? decodeURI(process.env.BLOG_NAME) | ||
: 'Jay Doe'; | ||
const blogTitle = process.env.BLOG_TITLE | ||
? decodeURI(process.env.BLOG_TITLE) | ||
: 'Next.js Blog Theme'; | ||
const footerText = process.env.BLOG_FOOTER_TEXT | ||
? decodeURI(process.env.BLOG_FOOTER_TEXT) | ||
: 'All rights reserved.'; | ||
|
||
return { | ||
name, | ||
blogTitle, | ||
footerText | ||
footerText, | ||
}; | ||
}; |
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.