-
Notifications
You must be signed in to change notification settings - Fork 23
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Integration of Prettier with Updated Configuration (#128)
* added prettier package ans script * fix prettier to all files * change prettier config * added semocolon to end of the line using prettier
- Loading branch information
1 parent
44bbb22
commit 0ef2ab3
Showing
133 changed files
with
11,622 additions
and
8,578 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 |
---|---|---|
|
@@ -34,3 +34,7 @@ yarn-error.log* | |
# typescript | ||
*.tsbuildinfo | ||
next-env.d.ts | ||
|
||
# yarn | ||
.yarnrc.yml | ||
.yarn/* |
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,8 @@ | ||
# Ignore all files in the "node_modules" directory | ||
node_modules/ | ||
|
||
# Ignore all files in the coverage directory | ||
/coverage/* | ||
|
||
# Ignore all files in the .next directory | ||
/.next/* |
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,11 @@ | ||
{ | ||
"semi": true, | ||
"singleQuote": true, | ||
"tabWidth": 2, | ||
"useTabs": false, | ||
"printWidth": 80, | ||
"arrowParens": "always", | ||
"trailingComma": "all", | ||
"bracketSpacing": true, | ||
"endOfLine": "lf" | ||
} |
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,40 +1,40 @@ | ||
interface NavObject{ | ||
id: Number, | ||
name: String, | ||
link: String | ||
interface NavObject { | ||
id: Number; | ||
name: String; | ||
link: String; | ||
} | ||
|
||
const navItems: Array<NavObject> = [ | ||
{ | ||
id: 0, | ||
name: 'Home', | ||
link: 'https://realdevsquad.com/', | ||
}, | ||
{ | ||
id: 1, | ||
name: 'Welcome', | ||
link: 'https://welcome.realdevsquad.com/', | ||
}, | ||
{ | ||
id: 0, | ||
name: 'Events', | ||
link: 'https://www.realdevsquad.com/events', | ||
}, | ||
{ | ||
id: 0, | ||
name: 'Members', | ||
link: 'https://members.realdevsquad.com/', | ||
}, | ||
{ | ||
id: 0, | ||
name: 'Crypto', | ||
link: 'https://crypto.realdevsquad.com/', | ||
}, | ||
{ | ||
id: 0, | ||
name: 'Status', | ||
link: 'https://status.realdevsquad.com/', | ||
}, | ||
] | ||
{ | ||
id: 0, | ||
name: 'Home', | ||
link: 'https://realdevsquad.com/', | ||
}, | ||
{ | ||
id: 1, | ||
name: 'Welcome', | ||
link: 'https://welcome.realdevsquad.com/', | ||
}, | ||
{ | ||
id: 0, | ||
name: 'Events', | ||
link: 'https://www.realdevsquad.com/events', | ||
}, | ||
{ | ||
id: 0, | ||
name: 'Members', | ||
link: 'https://members.realdevsquad.com/', | ||
}, | ||
{ | ||
id: 0, | ||
name: 'Crypto', | ||
link: 'https://crypto.realdevsquad.com/', | ||
}, | ||
{ | ||
id: 0, | ||
name: 'Status', | ||
link: 'https://status.realdevsquad.com/', | ||
}, | ||
]; | ||
|
||
export default navItems | ||
export default navItems; |
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,4 @@ | ||
export const NOT_FOUND_CONSTANT = { | ||
PAGE_NOT_FOUND: "The page you're trying to find doesn't exist, please go to members page to see all the members of RDS", | ||
} | ||
PAGE_NOT_FOUND: | ||
"The page you're trying to find doesn't exist, please go to members page to see all the members of RDS", | ||
}; |
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,13 +1,13 @@ | ||
const nextJest = require("next/jest"); | ||
|
||
const createJestConfig = nextJest({ | ||
dir: "./", | ||
}); | ||
|
||
const customJestConfig = { | ||
setupFilesAfterEnv: ["<rootDir>/jest.setup.js"], | ||
moduleDirectories: ["node_modules", "<rootDir>/"], | ||
testEnvironment: "jest-environment-jsdom", | ||
}; | ||
|
||
module.exports = createJestConfig(customJestConfig); | ||
const nextJest = require('next/jest'); | ||
|
||
const createJestConfig = nextJest({ | ||
dir: './', | ||
}); | ||
|
||
const customJestConfig = { | ||
setupFilesAfterEnv: ['<rootDir>/jest.setup.js'], | ||
moduleDirectories: ['node_modules', '<rootDir>/'], | ||
testEnvironment: 'jest-environment-jsdom', | ||
}; | ||
|
||
module.exports = createJestConfig(customJestConfig); |
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,8 +1,8 @@ | ||
import "@testing-library/jest-dom"; | ||
import "./setupTests"; | ||
import "whatwg-fetch"; | ||
|
||
// jest.config.js | ||
module.exports = { | ||
setupFilesAfterEnv: ["@testing-library/jest-dom", "./jest.setup.ts"], | ||
}; | ||
import '@testing-library/jest-dom'; | ||
import './setupTests'; | ||
import 'whatwg-fetch'; | ||
|
||
// jest.config.js | ||
module.exports = { | ||
setupFilesAfterEnv: ['@testing-library/jest-dom', './jest.setup.ts'], | ||
}; |
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 |
---|---|---|
|
@@ -10,4 +10,4 @@ const nextConfig = { | |
}, | ||
}; | ||
|
||
module.exports = nextConfig | ||
module.exports = nextConfig; |
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.