Skip to content

feat(infra): migrate to next.js infrastructure #4981

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

Closed
wants to merge 20 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
20 commits
Select commit Hold shift + click to select a range
3a66d1d
chore(2018-survey): removed codebase from deprecated 2018 survey
ovflowd Dec 23, 2022
b63d4d1
chore(scripts): removed metalsmith specific plugins
ovflowd Dec 23, 2022
609974d
chore(source): updated source metadatas
ovflowd Dec 23, 2022
74d9919
chore(meta): updated meta files such as eslint with new configs
ovflowd Dec 23, 2022
5da2b7b
chore(server): removed old server file
ovflowd Dec 23, 2022
a7910b1
chore(packages): updated list of packages and scripts
ovflowd Dec 23, 2022
6509029
chore(tests): removed tests for now
ovflowd Dec 23, 2022
8fa26c4
chore(styles): moved styles
ovflowd Dec 23, 2022
dbcee64
chore(static): moved static files
ovflowd Dec 23, 2022
1ac0780
chore(layouts): removed unused layouts
ovflowd Dec 23, 2022
e0fc2c1
chore(source): moved data files
ovflowd Dec 23, 2022
d572a25
chore(meta): updated packages and linting files
ovflowd Dec 23, 2022
fed0a2b
chore(files): moved files from `src` to the root
ovflowd Dec 23, 2022
116ea26
chore(static): updated scripts and static files (relinted)
ovflowd Dec 23, 2022
b055cd9
chore(eslint): updated eslint rules for markdown
ovflowd Dec 23, 2022
14331d3
chore(config): updated more config entries
ovflowd Dec 23, 2022
89c9437
chore(legacy): moved legacy files to a legacy folder (temporary)
ovflowd Dec 23, 2022
d24983a
chore(layouts): moved layouts folder
ovflowd Dec 23, 2022
8562322
feat(i18n): started to add i18n locales and translations
ovflowd Dec 23, 2022
1234aad
feat(pages): started to add the pages
ovflowd Dec 23, 2022
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
  •  
  •  
  •  
8 changes: 2 additions & 6 deletions .editorconfig
Original file line number Diff line number Diff line change
@@ -1,13 +1,9 @@
# https://editorconfig.org/

root = true

[*]
indent_style = space
indent_size = 2
end_of_line = lf
insert_final_newline = true
charset = utf-8
trim_trailing_whitespace = true

[*.svg]
insert_final_newline = false
insert_final_newline = true
4 changes: 0 additions & 4 deletions .eslintignore

This file was deleted.

108 changes: 73 additions & 35 deletions .eslintrc
Original file line number Diff line number Diff line change
@@ -1,51 +1,89 @@
{
"extends": [
"eslint:recommended",
"standard",
"prettier"
],
"plugins": [
"prettier"
],
"rules": {
"prettier/prettier": "error"
},
"overrides": [
{
"files": [
"**/*.md"
"files": ["**/*.{js,jsx}"],
"extends": ["airbnb", "prettier"],
"env": { "node": true }
},
{
"files": ["**/*.{ts,tsx}"],
"extends": [
"airbnb",
"prettier",
"plugin:@typescript-eslint/recommended"
],
"plugins": [
"markdown"
"plugins": ["@typescript-eslint"],
"env": { "browser": true, "node": true },
"parser": "@typescript-eslint/parser",
"settings": { "import/resolver": { "typescript": {} } },
"rules": {
"no-use-before-define": "off",
"@typescript-eslint/no-use-before-define": "warn",
"import/prefer-default-export": "off",
"import/extensions": "off"
}
},
{
"files": ["**/*.tsx"],
"extends": [
"airbnb/hooks",
"plugin:react/recommended",
"plugin:jsx-a11y/recommended"
],
"processor": "markdown/markdown"
"plugins": ["@typescript-eslint", "react-hooks"],
"parserOptions": { "ecmaFeatures": { "jsx": true } },
"settings": { "react": { "version": "detect" } },
"rules": {
"react/no-unused-prop-types": "off",
"react/require-default-props": "off",
"react/jsx-filename-extension": "off",
"react-hooks/rules-of-hooks": "error",
"react-hooks/exhaustive-deps": "warn",
"consistent-return": "off",
"react/function-component-definition": [
"error",
{
"namedComponents": "arrow-function",
"unnamedComponents": "arrow-function"
}
]
}
},
{
"files": ["pages/**/*.{md,mdx}"],
"extends": ["plugin:mdx/recommended"],
"settings": { "mdx/code-blocks": false },
"rules": { "react/jsx-no-undef": "off" }
},
{
"files": [
"**/*.md/*.js"
"pages/about/*.{md,mdx}",
"pages/download/*.{md,mdx}",
"pages/get-involved/*.{md,mdx}",
"pages/homepage/*.{md,mdx}",
"pages/learn/*.m{md,mdx}"
],
"parserOptions": {
"ecmaVersion": "latest"
},
"settings": { "mdx/code-blocks": true }
},
{
"files": ["pages/**/*.{md,mdx}/*.{js,jsx,cjs,mjs,ts,tsx}"],
"rules": {
"eqeqeq": "off",
"n/no-deprecated-api": "off",
"n/handle-callback-err": "off",
"no-const-assign": "off",
"camelcase": "off",
"@typescript-eslint/no-unused-vars": "off",
"consistent-return": "off",
"func-names": "off",
"import/extensions": "off",
"import/no-extraneous-dependencies": "off",
"import/no-unresolved": "off",
"no-console": "off",
"no-empty": "off",
"no-restricted-globals": "off",
"no-restricted-syntax": "off",
"no-undef": "off",
"no-underscore-dangle": "off",
"no-unused-expressions": "off",
"no-unused-vars": "off",
"node/handle-callback-err": "off",
"node/no-deprecated-api": "off",
"prefer-const": "off",
"prettier/prettier": [
"error",
{
"singleQuote": true,
"trailingComma": "none"
}
],
"semi": ["error", "always"]
"prefer-promise-reject-errors": "off"
}
}
]
Expand Down
7 changes: 0 additions & 7 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
# Generated HTML and other static files
build/
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Claudio does not forget the .next (it is not a priority)

# Commonly ignored Node.js files
node_modules/
npm-debug.log
Expand All @@ -9,8 +7,3 @@ npm-debug.log
.DS_Store
.AppleDouble
.LSOverride

# Netlify
.netlify

.cache/
1 change: 0 additions & 1 deletion .mailmap

This file was deleted.

1 change: 1 addition & 0 deletions .nvmrc
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
lts/*
12 changes: 12 additions & 0 deletions .prettierrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
{
"printWidth": 80,
"tabWidth": 2,
"useTabs": false,
"semi": true,
"singleQuote": true,
"jsxSingleQuote": false,
"trailingComma": "es5",
"bracketSpacing": true,
"bracketSameLine": false,
"arrowParens": "avoid"
}
13 changes: 0 additions & 13 deletions .prettierrc.json

This file was deleted.

4 changes: 0 additions & 4 deletions .remarkignore

This file was deleted.

14 changes: 0 additions & 14 deletions .remarkrc

This file was deleted.

2 changes: 0 additions & 2 deletions .stylelintignore

This file was deleted.

18 changes: 10 additions & 8 deletions .stylelintrc
Original file line number Diff line number Diff line change
@@ -1,12 +1,14 @@
{
"extends": [
"stylelint-config-twbs-bootstrap"
],
"extends": ["stylelint-config-recommended-scss"],
"plugins": ["stylelint-order", "stylelint-selector-bem-pattern"],
"rules": {
"declaration-no-important": null,
"order/properties-order": null,
"selector-max-id": 1,
"selector-max-type": null,
"selector-no-qualifying-type": null
"order/properties-alphabetical-order": true,
"no-descending-specificity": null,
"scss/at-extend-no-missing-placeholder": null,
"scss/at-import-partial-extension": "always",
"selector-pseudo-class-no-unknown": [
true,
{ "ignorePseudoClasses": ["global"] }
]
}
}
Loading