Skip to content

Commit bf8204f

Browse files
committed
Merge remote-tracking branch 'upstream/master'
2 parents 45f9b91 + d91f629 commit bf8204f

File tree

120 files changed

+22618
-2568
lines changed

Some content is hidden

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

120 files changed

+22618
-2568
lines changed

.eslintrc.json

+234
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,234 @@
1+
{
2+
"env": {
3+
"node": true,
4+
"browser": true,
5+
"es2021": true
6+
},
7+
"extends": [
8+
// "eslint:recommended",
9+
"prettier"
10+
],
11+
"parserOptions": {
12+
"sourceType": "module",
13+
"ecmaVersion": 2022
14+
},
15+
"rules": {
16+
// Possible Errors (overrides from recommended set)
17+
18+
// "no-extra-parens": "error",
19+
"no-unexpected-multiline": "error",
20+
21+
// All JSDoc comments must be valid
22+
23+
"valid-jsdoc": [ "error", {
24+
"requireReturn": true,
25+
"requireReturnDescription": true,
26+
"requireParamDescription": true,
27+
"prefer": {
28+
"return": "returns"
29+
}
30+
}],
31+
32+
// Best Practices
33+
34+
// Allowed a getter without setter, but all setters require getters
35+
36+
"accessor-pairs": [ "error", {
37+
"getWithoutSet": false,
38+
"setWithoutGet": true
39+
}],
40+
"block-scoped-var": "warn",
41+
"consistent-return": "error",
42+
"curly": "error",
43+
// "default-case": "warn",
44+
45+
// the dot goes with the property when doing multiline
46+
47+
// "dot-location": [ "warn", "property" ],
48+
// "dot-notation": "warn",
49+
// "eqeqeq": [ "error", "smart" ],
50+
// "guard-for-in": "warn",
51+
"no-alert": "error",
52+
"no-caller": "error",
53+
// "no-case-declarations": "warn",
54+
// "no-div-regex": "warn",
55+
// "no-else-return": "warn",
56+
// "no-empty-label": "warn",
57+
// "no-empty-pattern": "warn",
58+
// "no-eq-null": "warn",
59+
// "no-eval": "error",
60+
// "no-extend-native": "error",
61+
// "no-extra-bind": "warn",
62+
// "no-floating-decimal": "warn",
63+
// "no-implicit-coercion": [ "warn", {
64+
// "boolean": true,
65+
// "number": true,
66+
// "string": true
67+
// }],
68+
// "no-implied-eval": "error",
69+
// "no-invalid-this": "error",
70+
// "no-iterator": "error",
71+
// "no-labels": "warn",
72+
// "no-lone-blocks": "warn",
73+
// "no-loop-func": "error",
74+
// "no-magic-numbers": "warn",
75+
// "no-multi-spaces": "error",
76+
// "no-multi-str": "warn",
77+
// "no-native-reassign": "error",
78+
// "no-new-func": "error",
79+
// "no-new-wrappers": "error",
80+
// "no-new": "error",
81+
// "no-octal-escape": "error",
82+
// "no-param-reassign": "error",
83+
// "no-process-env": "warn",
84+
// "no-proto": "error",
85+
// "no-redeclare": "error",
86+
// "no-return-assign": "error",
87+
// "no-script-url": "error",
88+
// "no-self-compare": "error",
89+
// "no-throw-literal": "error",
90+
// "no-unused-expressions": "error",
91+
// "no-useless-call": "error",
92+
// "no-useless-concat": "error",
93+
// "no-void": "warn",
94+
95+
// Produce warnings when something is commented as TODO or FIXME
96+
97+
"no-warning-comments": [ "warn", {
98+
"terms": [ "TODO", "FIXME" ],
99+
"location": "start"
100+
}],
101+
"no-with": "warn",
102+
"radix": "warn",
103+
// "vars-on-top": "error",
104+
105+
// Enforces the style of wrapped functions
106+
// "wrap-iife": [ "error", "outside" ],
107+
// "yoda": "error",
108+
109+
// Strict Mode - for ES6, never use strict.
110+
// "strict": [ "error", "never" ],
111+
112+
// Variables
113+
114+
// "init-declarations": [ "error", "always" ],
115+
// "no-catch-shadow": "warn",
116+
"no-delete-var": "error",
117+
// "no-label-var": "error",
118+
// "no-shadow-restricted-names": "error",
119+
// "no-shadow": "warn",
120+
121+
// We require all vars to be initialized (see init-declarations)
122+
// If we NEED a var to be initialized to undefined, it needs to be explicit
123+
124+
"no-undef-init": "off",
125+
"no-undef": "error",
126+
"no-undefined": "off",
127+
"no-unused-vars": "warn",
128+
129+
// Disallow hoisting - let & const don't allow hoisting anyhow
130+
131+
"no-use-before-define": "error",
132+
133+
// Node.js and CommonJS
134+
135+
// "callback-return": [ "warn", [ "callback", "next" ]],
136+
// "global-require": "error",
137+
// "handle-callback-err": "warn",
138+
// "no-mixed-requires": "warn",
139+
// "no-new-require": "error",
140+
141+
// Use path.concat instead
142+
143+
// "no-path-concat": "error",
144+
// "no-process-exit": "error",
145+
// "no-restricted-modules": "off",
146+
// "no-sync": "warn",
147+
148+
// ECMAScript 6 support
149+
150+
// "arrow-body-style": [ "error", "always" ],
151+
// "arrow-parens": [ "error", "always" ],
152+
// "arrow-spacing": [ "error", { "before": true, "after": true }],
153+
"constructor-super": "error",
154+
// "generator-star-spacing": [ "error", "before" ],
155+
// "no-arrow-condition": "error",
156+
"no-class-assign": "error",
157+
"no-const-assign": "error",
158+
"no-dupe-class-members": "error",
159+
"no-this-before-super": "error",
160+
// "no-var": "warn",
161+
"object-shorthand": [ "warn" ],
162+
// "prefer-arrow-callback": "warn",
163+
// "prefer-spread": "warn",
164+
// "prefer-template": "warn",
165+
// "require-yield": "error",
166+
167+
// Stylistic - everything here is a warning because of style.
168+
169+
// "array-bracket-spacing": [ "warn", "always" ],
170+
// "block-spacing": [ "warn", "always" ],
171+
// "brace-style": [ "warn", "1tbs", { "allowSingleLine": false } ],
172+
// "camelcase": "warn",
173+
// "comma-spacing": [ "warn", { "before": false, "after": true } ],
174+
// "comma-style": [ "warn", "last" ],
175+
// "computed-property-spacing": [ "warn", "never" ],
176+
// "consistent-this": [ "warn", "self" ],
177+
// "eol-last": "warn",
178+
// "func-names": "warn",
179+
// "func-style": [ "warn", "declaration" ],
180+
// "id-length": [ "warn", { "min": 2, "max": 32 } ],
181+
// "indent": [ "warn", 4 ],
182+
// "jsx-quotes": [ "warn", "prefer-double" ],
183+
// "linebreak-style": [ "warn", "unix" ],
184+
// "lines-around-comment": [ "warn", { "beforeBlockComment": true } ],
185+
// "max-depth": [ "warn", 8 ],
186+
// "max-len": [ "warn", 132 ],
187+
// "max-nested-callbacks": [ "warn", 8 ],
188+
// "max-params": [ "warn", 8 ],
189+
// "new-cap": "warn",
190+
// "new-parens": "warn",
191+
// "no-array-constructor": "warn",
192+
// "no-bitwise": "off",
193+
// "no-continue": "off",
194+
// "no-inline-comments": "off",
195+
// "no-lonely-if": "warn",
196+
"no-mixed-spaces-and-tabs": "warn",
197+
"no-multiple-empty-lines": "warn",
198+
"no-negated-condition": "warn",
199+
// "no-nested-ternary": "warn",
200+
// "no-new-object": "warn",
201+
// "no-plusplus": "off",
202+
// "no-spaced-func": "warn",
203+
// "no-ternary": "off",
204+
// "no-trailing-spaces": "warn",
205+
// "no-underscore-dangle": "warn",
206+
"no-unneeded-ternary": "warn",
207+
// "object-curly-spacing": [ "warn", "always" ],
208+
// "one-var": "off",
209+
// "operator-assignment": [ "warn", "never" ],
210+
// "operator-linebreak": [ "warn", "after" ],
211+
// "padded-blocks": [ "warn", "never" ],
212+
// "quote-props": [ "warn", "consistent-as-needed" ],
213+
// "quotes": [ "warn", "single" ],
214+
"require-jsdoc": [ "warn", {
215+
"require": {
216+
"FunctionDeclaration": true,
217+
"MethodDefinition": true,
218+
"ClassDeclaration": false
219+
}
220+
}],
221+
// "semi-spacing": [ "warn", { "before": false, "after": true }],
222+
// "semi": [ "error", "always" ],
223+
// "sort-vars": "off",
224+
"keyword-spacing": ["error", { "before": true, "after": true }]
225+
// "space-before-blocks": [ "warn", "always" ],
226+
// "space-before-function-paren": [ "warn", "never" ],
227+
// "space-in-parens": [ "warn", "never" ],
228+
// "space-infix-ops": [ "warn", { "int32Hint": true } ],
229+
// "space-return-throw-case": "error",
230+
// "space-unary-ops": "error",
231+
// "spaced-comment": [ "warn", "always" ],
232+
// "wrap-regex": "warn"
233+
}
234+
}

.github/ISSUE_TEMPLATE/bug_report.md

-43
This file was deleted.

.github/ISSUE_TEMPLATE/bug_report.yml

+60
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,60 @@
1+
name: Bug report
2+
description: Create a report to help us improve.
3+
labels:
4+
- "bug"
5+
body:
6+
- type: markdown
7+
attributes:
8+
value: |
9+
:warning: PLEASE FIRST READ THE FAQ [(#1770)](https://github.com/anuraghazra/github-readme-stats/discussions/1770) AND COMMON ERROR CODES [(#1772)](https://github.com/anuraghazra/github-readme-stats/issues/1772)!!!
10+
- type: textarea
11+
attributes:
12+
label: Describe the bug
13+
description: A clear and concise description of what the bug is.
14+
validations:
15+
required: true
16+
- type: textarea
17+
attributes:
18+
label: Expected behavior
19+
description:
20+
A clear and concise description of what you expected to happen.
21+
- type: textarea
22+
attributes:
23+
label: Screenshots / Live demo link
24+
description: If applicable, add screenshots to help explain your problem.
25+
placeholder: Paste the github-readme-stats link as markdown image
26+
- type: textarea
27+
attributes:
28+
label: Additional context
29+
description: Add any other context about the problem here.
30+
- type: markdown
31+
attributes:
32+
value: |
33+
---
34+
### FAQ (Snippet)
35+
36+
Below are some questions that are found in the FAQ. The full FAQ can be found in [#1770](https://github.com/anuraghazra/github-readme-stats/discussions/1770).
37+
38+
#### Q: My card displays an error
39+
40+
**Ans:** First, check the common error codes (i.e. https://github.com/anuraghazra/github-readme-stats/issues/1772) and existing issues before creating a new one.
41+
42+
#### Q: How to hide jupyter Notebook?
43+
44+
**Ans:** `&hide=jupyter%20notebook`.
45+
46+
#### Q: I could not figure out how to deploy on my own vercel instance
47+
48+
**Ans:** Please check:
49+
- Docs: https://github.com/anuraghazra/github-readme-stats/#deploy-on-your-own-vercel-instance
50+
- YT tutorial by codeSTACKr: https://www.youtube.com/watch?v=n6d4KHSKqGk&feature=youtu.be&t=107
51+
52+
#### Q: Language Card is incorrect
53+
54+
**Ans:** Please read these issues/comments before opening any issues regarding language card stats:
55+
- https://github.com/anuraghazra/github-readme-stats/issues/136#issuecomment-665164174
56+
- https://github.com/anuraghazra/github-readme-stats/issues/136#issuecomment-665172181
57+
58+
#### Q: How to count private stats?
59+
60+
**Ans:** We can only count private commits & we cannot access any other private info of any users, so it's impossible. The only way is to deploy on your own instance & use your own PAT (Personal Access Token).

.github/ISSUE_TEMPLATE/config.yml

+12
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
blank_issues_enabled: true
2+
contact_links:
3+
- name: Question
4+
url: https://github.com/anuraghazra/github-readme-stats/discussions
5+
about: Please ask and answer questions here.
6+
- name: Error
7+
url: https://github.com/anuraghazra/github-readme-stats/issues/1772
8+
about:
9+
Before opening a bug report, please check the 'Common Error Codes' issue.
10+
- name: FAQ
11+
url: https://github.com/anuraghazra/github-readme-stats/discussions/1770
12+
about: Please first check the FAQ before asking a question.

.github/ISSUE_TEMPLATE/feature_request.md

-41
This file was deleted.

0 commit comments

Comments
 (0)