Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: new setup of website with Next js + Typescript #2710

Merged
merged 62 commits into from
May 27, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
62 commits
Select commit Hold shift + click to select a range
b316c43
refactor: removed unnecessary packages and components (#2649)
sambhavgupta0705 Feb 17, 2024
9c0a350
feat: add new next setup with package.json (#2664)
akshatnema Feb 17, 2024
3cac6a7
feat: add eslint configuration and netlify functions (#2670)
akshatnema Feb 20, 2024
6bc0815
Merge branch 'master' into migrate-ts
akshatnema Feb 22, 2024
d9d1cd1
feat: setup Tailwind configurations (#2697)
akshatnema Feb 26, 2024
e825be7
Merge branch 'master' into migrate-ts
akshatnema Feb 27, 2024
b2d9496
feat: migrate buttons folder (#2672)
Shurtu-gal Feb 29, 2024
b19eab1
feat: migrate typography (#2677)
vishvamsinh28 Feb 29, 2024
a760106
feat: migrate context (#2701)
vishvamsinh28 Mar 2, 2024
32ecd60
Merge branch 'master' into migrate-ts
akshatnema Mar 3, 2024
2214e60
feat: migrate `lib/*.js` to `utils/*.ts` (#2688)
anshgoyalevil Mar 4, 2024
e4ece93
Merge branch 'master' into migrate-ts
akshatnema Mar 7, 2024
4e91da6
feat: migrate newsroom components (#2734)
anshgoyalevil Mar 9, 2024
0fcd985
feat: migrate algolia search (#2752)
Shurtu-gal Mar 9, 2024
f0c2014
feat: migrate sponsors and support us components to typescript (#2757)
devilkiller-ag Mar 13, 2024
c5328a1
fix: changed the button props type to enum (#2760)
devilkiller-ag Mar 13, 2024
2bb7a0c
fix: fix type error of the migrate-ts branch (#2776)
anshgoyalevil Mar 14, 2024
eca41b7
Merge branch 'master' into migrate-ts
akshatnema Mar 14, 2024
be9e29c
feat: migrate logos, slack and roadmap components to typescript (#2763)
anshgoyalevil Mar 16, 2024
133eaa3
Merge branch 'master' into migrate-ts
akshatnema Mar 16, 2024
f7c6ea6
feat: migrate finance components (#2747)
vishvamsinh28 Mar 18, 2024
ad2d507
feat: migrate community components to typescript (#2759)
devilkiller-ag Mar 19, 2024
a2e4cce
feat: migrate docs, data, and editor components to typescript (#2735)
devilkiller-ag Mar 19, 2024
8255b32
feat: migrate leftover components (#2799)
Shurtu-gal Mar 23, 2024
4c71bef
feat: add prettier rules in eslint (#2807)
akshatnema Mar 26, 2024
39a73bb
feat: migrate asyncapi3comparison and tabs (#2769)
vishvamsinh28 Mar 27, 2024
217653d
feat: migrating remaining components to typescript (#2801)
devilkiller-ag Mar 27, 2024
6760c9d
feat: migrate open api comparison (#2785)
vishvamsinh28 Mar 27, 2024
ce3446d
feat: migrate layout and campaigns (#2743)
Shurtu-gal Mar 28, 2024
769d4ef
feat: migrate navigation (#2765)
vishvamsinh28 Mar 29, 2024
13f4989
feat: migrate tools components to typescript (#2774)
devilkiller-ag Mar 29, 2024
801b69c
Merge branch 'master' into migrate-ts
akshatnema Mar 29, 2024
da45062
chore(migrate): migrate docs layout (#2832)
Shurtu-gal Apr 2, 2024
4792c11
Merge branch 'master' into migrate-ts
akshatnema Apr 6, 2024
d01560f
feat: migrate leftover components to typescript (#2825)
devilkiller-ag Apr 7, 2024
8e3b87c
feat: migrated footer and finance page (#2844)
akshatnema Apr 9, 2024
5b616d7
Merge branch 'master' into migrate-ts
akshatnema Apr 19, 2024
2467a3a
feat: migrate community page folder and their related components to t…
devilkiller-ag Apr 21, 2024
99f9c0c
Merge branch 'master' into migrate-ts
akshatnema Apr 23, 2024
bd230d2
feat: fixed mermaid configuration for docs (#2867)
akshatnema Apr 24, 2024
727dfb4
feat: migrate case studies (#2861)
vishvamsinh28 Apr 24, 2024
bb012a9
Merge branch 'master' into migrate-ts
akshatnema Apr 26, 2024
2b32ecd
feat: migrated index pages of website (#2905)
akshatnema Apr 26, 2024
1a0f970
chore(migrate): migrate tools pages (#2876)
Shurtu-gal Apr 27, 2024
0fdf4eb
feat: migrated roadmap page to typescript (#2913)
akshatnema Apr 27, 2024
ccfa922
Fixed CSS bugs
akshatnema May 1, 2024
8bd182a
Merge branch 'master' into migrate-ts
akshatnema May 1, 2024
f6b3fd7
Merge branch 'master' into migrate-ts
akshatnema May 10, 2024
335f4d8
Merge branch 'master' into migrate-ts
akshatnema May 13, 2024
5543592
feat: add script to convert md to mdx (#2938)
akshatnema May 14, 2024
0c7200a
Merge branch 'master' into migrate-ts
akshatnema May 14, 2024
3279baf
Merge branch 'master' into migrate-ts
akshatnema May 14, 2024
64fbe44
feat: removed aria-label from span tag to fix lighthouse (#2963)
akshatnema May 14, 2024
09325a3
chore: update readme (#2942)
devilkiller-ag May 18, 2024
6c01b34
Merge branch 'master' into migrate-ts
akshatnema May 18, 2024
c5042eb
fix: fixed /docs/concepts/consumer page (#2976)
akshatnema May 19, 2024
de99b10
Merge branch 'master' into migrate-ts
akshatnema May 19, 2024
6a3c681
fix: added more whiteList tags in build-pages (#2986)
akshatnema May 22, 2024
74a3b58
fix: successStories component in finance page (#2994)
akshatnema May 25, 2024
3c3436c
Merge branch 'master' into migrate-ts
akshatnema May 25, 2024
1353536
Merge branch 'master' into migrate-ts
akshatnema May 27, 2024
6dfa8a2
Merge branch 'master' into migrate-ts
akshatnema May 27, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
303 changes: 303 additions & 0 deletions .eslintrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,303 @@
{
"extends": [
"airbnb-base",
"next/core-web-vitals",
"eslint:recommended",
"plugin:prettier/recommended"
],
"env": {
"browser": true,
"es2021": true,
"node": true
},
"plugins": [
"react",
"jsx-a11y"
],
"rules": {
"prettier/prettier": [
"error",
{
"singleQuote": true,
"endOfLine": "auto",
"semi": true,
"tabWidth": 2,
"trailingComma": "none",
"arrowParens": "always",
"bracketSpacing": true,
"jsxBracketSameLine": false,
"useTabs": false,
"quoteProps": "as-needed",
"insertPragma": false,
"requirePragma": false,
"jsxSingleQuote": true,
"printWidth": 120
}
],
"max-len": [
"error",
{
"code": 120,
"ignoreUrls": true,
"ignorePattern": "(className=\\{[\\s\\S]*\\}|.*\\}|'.*'|className='.*')" // Ignore classnames
}
]
},
"globals": {
"React": true,
"expect": true,
"jsdom": true,
"JSX": true
},
"overrides": [
// Configuration for TypeScript files
{
"files": ["**/*.ts", "**/*.tsx", "netlify/*.ts"],
"plugins": [
"@typescript-eslint",
"tailwindcss",
"unused-imports",
"simple-import-sort"
],
"extends": [
"plugin:tailwindcss/recommended",
"airbnb-typescript",
"next/core-web-vitals",
"plugin:prettier/recommended"
],
"parserOptions": {
"project": "./tsconfig.json"
},
"rules": {
"react/destructuring-assignment": "off", // Vscode doesn't support automatically destructuring, it's a pain to add a new variable
"react/require-default-props": "off", // Allow non-defined react props as undefined
"react/jsx-props-no-spreading": "off", // _app.tsx uses spread operator and also, react-hook-form
"react-hooks/exhaustive-deps": "off", // Incorrectly report needed dependency with Next.js router
"@next/next/no-img-element": "off", // We currently not using next/image because it isn't supported with SSG mode
"@next/next/link-passhref": "off", // Only needed when the child of Link wraps an <a> tag
"@typescript-eslint/comma-dangle": "off", // Avoid conflict rule between Eslint and Prettier
"@typescript-eslint/indent": "off", // Avoid conflict rule between Eslint and Prettier
"@typescript-eslint/consistent-type-imports": "error", // Ensure `import type` is used when it's necessary
"no-restricted-syntax": [
"error",
"ForInStatement",
"LabeledStatement",
"WithStatement"
], // Overrides Airbnb configuration and enable no-restricted-syntax
"import/prefer-default-export": "off", // Named export is easier to refactor automatically
"tailwindcss/no-custom-classname": "off", // Disabled otherwise nightmare to allow each custom tailwind classes
"simple-import-sort/imports": "error", // Import configuration for `eslint-plugin-simple-import-sort`
"simple-import-sort/exports": "error", // Export configuration for `eslint-plugin-simple-import-sort`
"@typescript-eslint/no-unused-vars": "off",
"class-methods-use-this": "off",
"unused-imports/no-unused-imports": "error",
"unused-imports/no-unused-vars": [
"error",
{ "argsIgnorePattern": "^_" }
],
// Variables
"init-declarations": "off",
"no-catch-shadow": "off",
"no-delete-var": "error",
"no-label-var": "error",
"no-restricted-globals": "error",
"no-shadow": "off",
"no-shadow-restricted-names": "error",
"no-undef": "error",
"no-undef-init": "error",
"no-undefined": "off",
"no-unused-vars": "error",
"no-use-before-define": "error",
// Styling
"array-bracket-newline": "off",
"array-bracket-spacing": "error",
"array-element-newline": "off",
"block-spacing": "error",
"brace-style": [
"off",
"stroustrup",
{
"allowSingleLine": true
}
],
"camelcase": "off",
"capitalized-comments": "off",
"comma-dangle": [
"error",
"never"
],
"comma-spacing": [
2,
{
"before": false,
"after": true
}
],
"comma-style": [
"error",
"last"
],
"eol-last": "error",
"func-call-spacing": "error",
"func-name-matching": "error",
"func-names": "off",
"func-style": "off",
"jsx-quotes": [
"error",
"prefer-single"
],
"key-spacing": "error",
"keyword-spacing": "error",
"line-comment-position": "off",
"linebreak-style": [
"error",
"unix"
],
"lines-around-comment": [
"error",
{
"beforeBlockComment": true,
"afterBlockComment": false,
"beforeLineComment": false,
"afterLineComment": false,
"allowBlockStart": true,
"allowBlockEnd": false,
"allowObjectStart": true,
"allowObjectEnd": false,
"allowArrayStart": true,
"allowArrayEnd": false
}
],
"max-depth": "error",
"max-lines": [
"error",
{
"max": 2000
}
],
"max-nested-callbacks": "error",
"max-statements-per-line": [
"error",
{
"max": 2
}
],
"multiline-comment-style": "off",
"multiline-ternary": "off",
"new-cap": "off",
"new-parens": "error",
"newline-per-chained-call": [
"error",
{
"ignoreChainWithDepth": 4
}
],
"newline-after-var": ["error", "always"],
"no-array-constructor": "error",
"no-lonely-if": "error",
"no-mixed-operators": "off",
"no-mixed-spaces-and-tabs": "error",
"no-multi-assign": "off",
"no-multiple-empty-lines": [
"error",
{
"max": 1
}
],
"no-negated-condition": "error",
"no-nested-ternary": "error",
"no-new-object": "error",
"no-plusplus": "off",
"no-tabs": "error",
"no-ternary": "off",
"no-trailing-spaces": "error",
"no-unneeded-ternary": "error",
"no-whitespace-before-property": "error",
"nonblock-statement-body-position": "error",
"object-curly-newline": "off",
"object-curly-spacing": [
"error",
"always"
],
"object-property-newline": "off",
"padded-blocks": [
"error",
"never"
],
"padding-line-between-statements": [
"error",
{
"blankLine": "always",
"prev": "*",
"next": "return"
},
{
"blankLine": "always",
"prev": [
"const",
"let",
"var"
],
"next": "*"
},
{
"blankLine": "any",
"prev": [
"const",
"let",
"var"
],
"next": [
"const",
"let",
"var"
]
}
],
"quote-props": [
"error",
"as-needed"
],
"quotes": [
"error",
"single",
{
"avoidEscape": true
}
],
"require-jsdoc": "warn",
"semi": "error",
"semi-spacing": "error",
"semi-style": [
"error",
"last"
],
"sort-keys": "off",
"sort-vars": "off",
"space-before-blocks": "error",
"space-before-function-paren": "error",
"space-in-parens": "error",
"space-infix-ops": "error",
"space-unary-ops": "error",
"spaced-comment": [
"error",
"always",
{
"block": {
"exceptions": [
"!"
]
}
}
],
"switch-colon-spacing": "error"
}
},
{
"files": ["components/logos/*"],
"rules": {
"max-len": "off"
}
}
]
}
6 changes: 0 additions & 6 deletions .eslintrc.js

This file was deleted.

35 changes: 0 additions & 35 deletions .github/workflows/cypress-tests.yml

This file was deleted.

3 changes: 2 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -16,4 +16,5 @@ meetings.json
.env
cypress/screenshots
cypress/videos
/config/finance/json-data/*
/config/finance/json-data/*
*.mdx
1 change: 0 additions & 1 deletion .prettierignore

This file was deleted.

11 changes: 11 additions & 0 deletions .remarkrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
{
"plugins": [
"lint",
"mdx"
],
"settings": {
"mdx": {
"acornInjectPlugins": []
}
}
}
Loading
Loading