Skip to content

Commit f6b6fcb

Browse files
committed
init
1 parent 478f95f commit f6b6fcb

File tree

25,707 files changed

+5984403
-2
lines changed

Some content is hidden

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

25,707 files changed

+5984403
-2
lines changed

Diff for: .editorconfig

+40
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,40 @@
1+
root = true
2+
3+
[*]
4+
end_of_line = lf
5+
charset = utf-8
6+
trim_trailing_whitespace = true
7+
insert_final_newline = true
8+
9+
[vcbuild.bat]
10+
end_of_line = crlf
11+
12+
[{lib,src,test}/**.js]
13+
indent_style = space
14+
indent_size = 2
15+
16+
[src/**.{h,cc}]
17+
indent_style = space
18+
indent_size = 2
19+
20+
[test/*.py]
21+
indent_style = space
22+
indent_size = 2
23+
24+
[configure]
25+
indent_style = space
26+
indent_size = 2
27+
28+
[Makefile]
29+
indent_style = tab
30+
indent_size = 8
31+
32+
[{deps,tools}/**]
33+
indent_style = ignore
34+
indent_size = ignore
35+
end_of_line = ignore
36+
trim_trailing_whitespace = ignore
37+
charset = ignore
38+
39+
[{test/fixtures,deps,tools/node_modules,tools/gyp,tools/icu,tools/msvs}/**]
40+
insert_final_newline = false

Diff for: .eslintignore

+13
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
lib/internal/v8.js
2+
lib/internal/v8_prof_polyfill.js
3+
lib/punycode.js
4+
test/addons/??_*
5+
test/es-module/test-esm-dynamic-import.js
6+
test/fixtures
7+
test/message/esm_display_syntax_error.mjs
8+
tools/node_modules
9+
tools/icu
10+
tools/remark-*
11+
node_modules
12+
benchmark/tmp
13+
doc/**/*.js

Diff for: .eslintrc.yaml

+211
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,211 @@
1+
root: true
2+
3+
plugins:
4+
- markdown
5+
6+
env:
7+
node: true
8+
es6: true
9+
10+
parser: babel-eslint
11+
12+
parserOptions:
13+
sourceType: script
14+
15+
overrides:
16+
- files: ["doc/api/esm.md", "*.mjs", "test/es-module/test-esm-example-loader.js"]
17+
parserOptions:
18+
sourceType: module
19+
20+
rules:
21+
# Possible Errors
22+
# http://eslint.org/docs/rules/#possible-errors
23+
for-direction: error
24+
no-control-regex: error
25+
no-debugger: error
26+
no-dupe-args: error
27+
no-dupe-keys: error
28+
no-duplicate-case: error
29+
no-empty-character-class: error
30+
no-ex-assign: error
31+
no-extra-boolean-cast: error
32+
no-extra-parens: [error, functions]
33+
no-extra-semi: error
34+
no-func-assign: error
35+
no-invalid-regexp: error
36+
no-irregular-whitespace: error
37+
no-obj-calls: error
38+
no-template-curly-in-string: error
39+
no-unexpected-multiline: error
40+
no-unreachable: error
41+
no-unsafe-negation: error
42+
use-isnan: error
43+
valid-typeof: error
44+
45+
# Best Practices
46+
# http://eslint.org/docs/rules/#best-practices
47+
accessor-pairs: error
48+
array-callback-return: error
49+
dot-location: [error, property]
50+
eqeqeq: [error, smart]
51+
no-fallthrough: error
52+
no-global-assign: error
53+
no-multi-spaces: [error, {ignoreEOLComments: true}]
54+
no-octal: error
55+
no-proto: error
56+
no-redeclare: error
57+
no-restricted-properties:
58+
- error
59+
- object: assert
60+
property: deepEqual
61+
message: Use assert.deepStrictEqual().
62+
- object: assert
63+
property: notDeepEqual
64+
message: Use assert.notDeepStrictEqual().
65+
- object: assert
66+
property: equal
67+
message: Use assert.strictEqual() rather than assert.equal().
68+
- object: assert
69+
property: notEqual
70+
message: Use assert.notStrictEqual() rather than assert.notEqual().
71+
- property: __defineGetter__
72+
message: __defineGetter__ is deprecated.
73+
- property: __defineSetter__
74+
message: __defineSetter__ is deprecated.
75+
no-return-await: error
76+
no-self-assign: error
77+
no-throw-literal: error
78+
no-unused-labels: error
79+
no-useless-call: error
80+
no-useless-concat: error
81+
no-useless-escape: error
82+
no-useless-return: error
83+
no-void: error
84+
no-with: error
85+
86+
# Strict Mode
87+
# http://eslint.org/docs/rules/#strict-mode
88+
strict: [error, global]
89+
90+
# Variables
91+
# http://eslint.org/docs/rules/#variables
92+
no-delete-var: error
93+
no-undef: error
94+
no-unused-vars: [error, {args: none}]
95+
no-use-before-define: [error, {classes: true,
96+
functions: false,
97+
variables: false}]
98+
99+
# Node.js and CommonJS
100+
# http://eslint.org/docs/rules/#nodejs-and-commonjs
101+
no-mixed-requires: error
102+
no-new-require: error
103+
no-path-concat: error
104+
no-restricted-modules: [error, sys]
105+
106+
# Stylistic Issues
107+
# http://eslint.org/docs/rules/#stylistic-issues
108+
block-spacing: error
109+
brace-style: [error, 1tbs, {allowSingleLine: true}]
110+
comma-dangle: [error, only-multiline]
111+
comma-spacing: error
112+
comma-style: error
113+
computed-property-spacing: error
114+
eol-last: error
115+
func-call-spacing: error
116+
func-name-matching: error
117+
func-style: [error, declaration, {allowArrowFunctions: true}]
118+
indent: [error, 2, {ArrayExpression: first,
119+
CallExpression: {arguments: first},
120+
FunctionDeclaration: {parameters: first},
121+
FunctionExpression: {parameters: first},
122+
MemberExpression: off,
123+
ObjectExpression: first,
124+
SwitchCase: 1}]
125+
key-spacing: [error, {mode: minimum}]
126+
keyword-spacing: error
127+
linebreak-style: [error, unix]
128+
max-len: [error, {code: 80,
129+
ignorePattern: "^\/\/ Flags:",
130+
ignoreRegExpLiterals: true,
131+
ignoreUrls: true,
132+
tabWidth: 2}]
133+
new-parens: error
134+
no-lonely-if: error
135+
no-mixed-spaces-and-tabs: error
136+
no-multiple-empty-lines: [error, {max: 2, maxEOF: 0, maxBOF: 0}]
137+
no-restricted-syntax: [error, {
138+
selector: "CallExpression[callee.object.name='assert'][callee.property.name='throws'][arguments.1.type='Literal']:not([arguments.1.regex])",
139+
message: "use a regular expression for second argument of assert.throws()"
140+
}, {
141+
selector: "CallExpression[callee.object.name='assert'][callee.property.name='throws'][arguments.length<2]",
142+
message: "assert.throws() must be invoked with at least two arguments."
143+
}, {
144+
selector: "CallExpression[callee.name='setTimeout'][arguments.length<2]",
145+
message: "setTimeout() must be invoked with at least two arguments."
146+
}, {
147+
selector: "CallExpression[callee.name='setInterval'][arguments.length<2]",
148+
message: "setInterval() must be invoked with at least 2 arguments."
149+
}, {
150+
selector: "ThrowStatement > CallExpression[callee.name=/Error$/]",
151+
message: "Use new keyword when throwing an Error."
152+
}]
153+
no-tabs: error
154+
no-trailing-spaces: error
155+
object-curly-spacing: [error, always]
156+
one-var-declaration-per-line: error
157+
operator-linebreak: [error, after]
158+
quotes: [error, single, avoid-escape]
159+
semi: error
160+
semi-spacing: error
161+
space-before-blocks: [error, always]
162+
space-before-function-paren: [error, {
163+
anonymous: never,
164+
named: never,
165+
asyncArrow: always
166+
}]
167+
space-in-parens: [error, never]
168+
space-infix-ops: error
169+
space-unary-ops: error
170+
unicode-bom: error
171+
172+
# ECMAScript 6
173+
# http://eslint.org/docs/rules/#ecmascript-6
174+
arrow-parens: [error, always]
175+
arrow-spacing: [error, {before: true, after: true}]
176+
constructor-super: error
177+
no-class-assign: error
178+
no-confusing-arrow: error
179+
no-const-assign: error
180+
no-dupe-class-members: error
181+
no-new-symbol: error
182+
no-this-before-super: error
183+
prefer-const: [error, {ignoreReadBeforeAssign: true}]
184+
rest-spread-spacing: error
185+
symbol-description: error
186+
template-curly-spacing: error
187+
188+
# Custom rules in tools/eslint-rules
189+
no-unescaped-regexp-dot: error
190+
191+
# Global scoped method and vars
192+
globals:
193+
COUNTER_HTTP_CLIENT_REQUEST: false
194+
COUNTER_HTTP_CLIENT_RESPONSE: false
195+
COUNTER_HTTP_SERVER_REQUEST: false
196+
COUNTER_HTTP_SERVER_RESPONSE: false
197+
COUNTER_NET_SERVER_CONNECTION: false
198+
COUNTER_NET_SERVER_CONNECTION_CLOSE: false
199+
DTRACE_HTTP_CLIENT_REQUEST: false
200+
DTRACE_HTTP_CLIENT_RESPONSE: false
201+
DTRACE_HTTP_SERVER_REQUEST: false
202+
DTRACE_HTTP_SERVER_RESPONSE: false
203+
DTRACE_NET_SERVER_CONNECTION: false
204+
DTRACE_NET_STREAM_END: false
205+
LTTNG_HTTP_CLIENT_REQUEST: false
206+
LTTNG_HTTP_CLIENT_RESPONSE: false
207+
LTTNG_HTTP_SERVER_REQUEST: false
208+
LTTNG_HTTP_SERVER_RESPONSE: false
209+
LTTNG_NET_SERVER_CONNECTION: false
210+
LTTNG_NET_STREAM_END: false
211+
internalBinding: false

Diff for: .gitattributes

+2
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
test/fixtures/* -text
2+
vcbuild.bat text eol=crlf

Diff for: .gitignore

+124
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,124 @@
1+
# Whitelist dotfiles
2+
.*
3+
!deps/**/.*
4+
!test/fixtures/**/.*
5+
!tools/node_modules/**/.*
6+
!tools/doc/node_modules/**/.*
7+
!.editorconfig
8+
!.eslintignore
9+
!.eslintrc.yaml
10+
!.gitattributes
11+
!.github
12+
!.gitignore
13+
!.gitkeep
14+
!.mailmap
15+
!.nycrc
16+
!.remarkrc
17+
18+
core
19+
vgcore.*
20+
v8*.log
21+
perf.data
22+
perf.data.old
23+
.waf*
24+
tags
25+
.lock-wscript
26+
*.pyc
27+
doc/api.xml
28+
tmp/
29+
test/tmp*/
30+
iojs
31+
iojs_g
32+
node
33+
node_g
34+
*.swp
35+
.benchmark_reports
36+
icu_config.gypi
37+
.eslintcache
38+
node_trace.*.log
39+
coverage/
40+
41+
/out
42+
43+
# various stuff that VC++ produces/uses
44+
Debug/
45+
!**/node_modules/debug/
46+
!deps/v8/src/debug/
47+
Release/
48+
!doc/blog/**
49+
*.sln
50+
!nodemsi.sln
51+
*.suo
52+
*.vcproj
53+
*.vcxproj
54+
!custom_actions.vcxproj
55+
*.vcxproj.user
56+
*.vcxproj.filters
57+
UpgradeLog*.XML
58+
_UpgradeReport_Files/
59+
ipch/
60+
*.sdf
61+
*.opensdf
62+
*.VC.db
63+
*.VC.opendb
64+
.vs/
65+
.vscode/
66+
/deps/v8/src/debug/obj
67+
/*.exe
68+
69+
/config.mk
70+
/config.gypi
71+
/config_fips.gypi
72+
*-nodegyp*
73+
/gyp-mac-tool
74+
/npm.wxs
75+
/tools/msvs/npm.wixobj
76+
/tools/msvs/genfiles/
77+
/test/addons/??_*/
78+
email.md
79+
deps/v8-*
80+
deps/icu
81+
deps/icu*.zip
82+
deps/icu*.tgz
83+
deps/icu-tmp
84+
./node_modules
85+
android-toolchain/
86+
.svn/
87+
88+
# generated by gyp on Windows
89+
deps/openssl/openssl.props
90+
deps/openssl/openssl.targets
91+
deps/openssl/openssl.xml
92+
93+
# generated by gyp on android
94+
/*.target.mk
95+
/*.host.mk
96+
deps/openssl/openssl.target.mk
97+
deps/zlib/zlib.target.mk
98+
99+
# not needed and causes issues for distro packagers
100+
deps/npm/node_modules/.bin/
101+
102+
# build/release artifacts
103+
/*.tar.*
104+
/*.pkg
105+
/SHASUMS*.txt*
106+
107+
# test artifacts
108+
tools/faketime
109+
tools/remark-cli/node_modules
110+
tools/remark-preset-lint-node/node_modules
111+
icu_config.gypi
112+
*.tap
113+
114+
# Xcode workspaces and project folders
115+
*.xcodeproj
116+
*.xcworkspace
117+
118+
# libuv book and GitHub template
119+
deps/uv/.github/
120+
deps/uv/docs/code/
121+
deps/uv/docs/src/guide/
122+
123+
# do not override V8's .gitignore
124+
!deps/v8/**

0 commit comments

Comments
 (0)