Skip to content
This repository was archived by the owner on May 13, 2025. It is now read-only.

Commit 906cc09

Browse files
authored
Merge branch 'master' into snyk-fix-4323eeb306a1585c618f5c463ab28483
Signed-off-by: HardFizz <[email protected]>
2 parents 9ddbdd4 + dbe8ff8 commit 906cc09

File tree

2,378 files changed

+115212
-104124
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

2,378 files changed

+115212
-104124
lines changed

.browserslistrc

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,13 @@
11
# https://github.com/browserslist/browserslist#readme
22

3+
defaults and supports es6-module
4+
maintained node versions
5+
6+
[production]
7+
8+
cover 95%
9+
not dead
10+
11+
[development]
12+
313
defaults
4-
Explorer >= 10

.editorconfig

Lines changed: 2 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,9 @@
1-
# https://editorconfig.org/
2-
31
root = true
42

53
[*]
64
indent_style = space
75
indent_size = 2
86
end_of_line = lf
9-
insert_final_newline = true
7+
charset = utf-8
108
trim_trailing_whitespace = true
11-
12-
[*.md]
13-
trim_trailing_whitespace = false
14-
15-
[*.svg]
16-
insert_final_newline = false
9+
insert_final_newline = true

.eslintignore

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
node_modules
2+
3+
# Next.js & Vercel Directories
4+
.next
5+
.turbo
6+
.swc
7+
build
8+
9+
# Files that should not be parsed
10+
CODEOWNERS
11+
12+
# Legacy Public Files
13+
public/en/user-survey-report
14+
public/static/documents
15+
public/static/legacy
16+
17+
# We don't want to lint/prettify the Coverage Results
18+
coverage
19+
20+
# MDX Plugin enforces Prettier formatting which should
21+
# be done in the future as we don't want to update the Markdown file
22+
# contents right now
23+
pages/**/*.md
24+
25+
# We shouldn't lint statically generated Storybook files
26+
storybook-static
27+
28+
# This file naturally might break conventional rules
29+
global.d.ts

.eslintrc

Lines changed: 0 additions & 3 deletions
This file was deleted.

.eslintrc.json

Lines changed: 53 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,53 @@
1+
{
2+
"extends": [
3+
"next",
4+
"next/core-web-vitals",
5+
"prettier",
6+
"plugin:storybook/recommended"
7+
],
8+
"overrides": [
9+
{
10+
"files": ["**/*.ts?(x)"],
11+
"plugins": ["@typescript-eslint", "no-relative-import-paths"],
12+
"rules": {
13+
"@typescript-eslint/consistent-type-imports": "error",
14+
"no-relative-import-paths/no-relative-import-paths": [
15+
"warn",
16+
{
17+
"allowSameFolder": true,
18+
"prefix": "@"
19+
}
20+
]
21+
}
22+
},
23+
{
24+
"files": ["**/*.md?(x)"],
25+
"extends": ["plugin:mdx/recommended"]
26+
},
27+
{
28+
"files": ["**/*.{mdx,tsx}"],
29+
"rules": {
30+
"react/jsx-no-undef": "off",
31+
"react/function-component-definition": [
32+
"error",
33+
{
34+
"namedComponents": "arrow-function",
35+
"unnamedComponents": "arrow-function"
36+
}
37+
],
38+
"no-restricted-syntax": [
39+
"error",
40+
{
41+
"selector": "ImportDeclaration[source.value='react'][specifiers.0.type='ImportDefaultSpecifier']",
42+
"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`"
43+
},
44+
{
45+
"selector": "ImportDeclaration[source.value='react'] :matches(ImportNamespaceSpecifier)",
46+
"message": "Named * React import is not allowed. Please import what you need from React with Named Imports"
47+
}
48+
],
49+
"@typescript-eslint/consistent-type-definitions": ["error", "type"]
50+
}
51+
}
52+
]
53+
}

.github/ISSUE_TEMPLATE.md

Lines changed: 0 additions & 6 deletions
This file was deleted.
Lines changed: 50 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,50 @@
1+
name: Report a Technical/Visual Issue on the Node.js Website
2+
description: 'Is something not working as expected? Did you encounter a glitch or a bug with the Website?'
3+
labels: [bug]
4+
body:
5+
- type: markdown
6+
attributes:
7+
value: |
8+
Thanks for reporting an issue you've found on the nodejs.org website.
9+
Please fill in the template below. If unsure about something, just do as best
10+
as you're able. If you are reporting a visual glitch, it will be much easier
11+
for us to fix it when you attach a screenshot as well.
12+
- type: input
13+
attributes:
14+
label: 'URL:'
15+
description: The URL of the page you are reporting an issue on.
16+
placeholder: https://nodejs.org/en/
17+
validations:
18+
required: true
19+
- type: input
20+
attributes:
21+
label: 'Browser Name:'
22+
description: What kind of browser are you using?
23+
placeholder: Chrome
24+
validations:
25+
required: true
26+
- type: input
27+
attributes:
28+
label: 'Browser Version:'
29+
description: What version of browser are you using?
30+
placeholder: '103.0.5060.134'
31+
validations:
32+
required: true
33+
- type: input
34+
attributes:
35+
label: 'Operating System:'
36+
description: What kind of operation system are you using
37+
(Write it in full, with version number)?
38+
placeholder: 'Windows 10, 21H2, 19044.1826'
39+
validations:
40+
required: true
41+
- type: textarea
42+
attributes:
43+
label: 'How to reproduce the issue:'
44+
placeholder: |
45+
1. What I did.
46+
2. What I expected to happen.
47+
3. What I actually got.
48+
4. If possible, images or videos are welcome.
49+
validations:
50+
required: true

.github/ISSUE_TEMPLATE/01-bug_report.md

Lines changed: 0 additions & 18 deletions
This file was deleted.
Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
name: Suggest a new feature or improvement for the Node.js Website
2+
description: 'Do you have an idea or a suggestion and you want to share?'
3+
labels: [feature request]
4+
body:
5+
- type: markdown
6+
attributes:
7+
value: |
8+
You have an idea how to improve the site? That's awesome!
9+
Before submitting, please have a look at the existing issues if there's already
10+
something related to your suggestion.
11+
- type: textarea
12+
attributes:
13+
label: 'Enter your suggestions in details:'
14+
placeholder: |
15+
1. What I expected to happen.
16+
2. Your reason (if possible, images or videos are welcome).
17+
3. What I plan to do (Optional but better).
18+
validations:
19+
required: true

.github/ISSUE_TEMPLATE/02-feature_request.md

Lines changed: 0 additions & 16 deletions
This file was deleted.

0 commit comments

Comments
 (0)