Skip to content
This repository has been archived by the owner on Apr 3, 2024. It is now read-only.

Commit

Permalink
Merge pull request #33 from meetcircle/rebase
Browse files Browse the repository at this point in the history
Rebase
  • Loading branch information
jack-at-circle authored Apr 3, 2024
2 parents 92b1380 + 10b2f88 commit 38ff282
Show file tree
Hide file tree
Showing 1,634 changed files with 88,988 additions and 63,405 deletions.
441 changes: 0 additions & 441 deletions .circleci/config.yml

This file was deleted.

11 changes: 0 additions & 11 deletions .dependabot/config.yml

This file was deleted.

1 change: 1 addition & 0 deletions .dockerignore
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ shields.env
.git/
.gitignore
.vscode/
fly.toml

# Improve layer cacheability.
Dockerfile
5 changes: 3 additions & 2 deletions .eslintignore
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,6 @@
/build
/coverage
/__snapshots__
/public
gh-badges/node_modules/
public
badge-maker/node_modules/
!.github/
75 changes: 47 additions & 28 deletions .eslintrc.yml
Original file line number Diff line number Diff line change
@@ -1,12 +1,13 @@
extends:
- standard
- standard-jsx
- standard-react
- plugin:@typescript-eslint/recommended
- prettier/@typescript-eslint
- prettier/standard
- prettier/react
- prettier
- eslint:recommended

globals:
JSX: 'readonly'

parserOptions:
# Override eslint-config-standard, which incorrectly sets this to "module",
# though that setting is only for ES6 modules, not CommonJS modules.
Expand All @@ -15,11 +16,14 @@ parserOptions:
settings:
react:
version: '16.8'
jsdoc:
mode: typescript

plugins:
- chai-friendly
- jsdoc
- mocha
- icedfrisby
- no-extension-in-require
- sort-class-members
- import
Expand All @@ -32,33 +36,33 @@ overrides:
# rules listed here are only ones which conflict.

- files:
- '**/*.js'
- '!frontend/**/*.js'
- 'badge-maker/**/*.js'
- '**/*.cjs'
env:
node: true
es6: true
rules:
no-console: 'off'
'@typescript-eslint/no-var-requires': off

- files:
- '**/*.@(ts|tsx)'
- '**/*.js'
- '!frontend/**/*.js'
- '!badge-maker/**/*.js'
env:
node: true
es6: true
parserOptions:
sourceType: 'module'
parser: '@typescript-eslint/parser'
rules:
# Argh.
'@typescript-eslint/explicit-function-return-type': 'off'
'@typescript-eslint/no-object-literal-type-assertion': 'off'
no-console: 'off'

- files:
- core/**/*.ts
- '**/*.ts'
parserOptions:
sourceType: 'module'
parser: '@typescript-eslint/parser'

- files:
- gatsby-browser.js
- 'frontend/**/*.@(js|ts|tsx)'
- 'frontend/**/*.js'
parserOptions:
sourceType: 'module'
env:
Expand Down Expand Up @@ -103,27 +107,28 @@ overrides:
mocha: true
rules:
mocha/no-exclusive-tests: 'error'
mocha/no-skipped-tests: 'error'
mocha/no-mocha-arrows: 'error'
mocha/prefer-arrow-callback: 'error'

- files:
- 'services/**/*.tester.js'
rules:
icedfrisby/no-exclusive-tests: 'error'
icedfrisby/no-skipped-tests: 'error'

rules:
# Disable some rules from eslint:recommended.
no-empty: ['error', { 'allowEmptyCatch': true }]

# Allow unused parameters. In callbacks, removing them seems to obscure
# what the functions are doing.
'@typescript-eslint/no-unused-vars': ['error', { 'args': 'none' }]
no-unused-vars: off

'@typescript-eslint/no-var-requires': error
no-use-before-define: 'off'

# These should be disabled by eslint-config-prettier, but are not.
no-extra-semi: 'off'

# Shields additions.
no-var: 'error'
prefer-const: 'error'
strict: 'error'
arrow-body-style: ['error', 'as-needed']
no-extension-in-require/main: 'error'
object-shorthand: ['error', 'properties']
Expand All @@ -132,6 +137,22 @@ rules:
func-style: ['error', 'declaration', { 'allowArrowFunctions': true }]
new-cap: ['error', { 'capIsNew': true }]
import/order: ['error', { 'newlines-between': 'never' }]
quotes:
['error', 'single', { 'avoidEscape': true, 'allowTemplateLiterals': false }]

# Account for destructuring responses from upstream services,
# many of which do not follow camelcase
# Based on original rule configuration from eslint-config-standard
camelcase:
[
'error',
{
ignoreDestructuring: true,
properties: 'never',
ignoreGlobals: true,
allow: ['^UNSAFE_'],
},
]

# Chai friendly.
no-unused-expressions: 'off'
Expand All @@ -144,13 +165,13 @@ rules:
# allow Joi as an undefined type
jsdoc/no-undefined-types: ['error', { definedTypes: ['Joi'] }]

# all the other reccomended rules as errors (not warnings)
# all the other recommended rules as errors (not warnings)
jsdoc/check-alignment: 'error'
jsdoc/check-param-names: 'error'
jsdoc/check-tag-names: 'error'
jsdoc/check-types: 'error'
jsdoc/implements-on-classes: 'error'
jsdoc/newline-after-description: 'error'
jsdoc/tag-lines: ['error', 'any', { 'startLines': 1 }]
jsdoc/require-param: 'error'
jsdoc/require-param-description: 'error'
jsdoc/require-param-name: 'error'
Expand All @@ -161,9 +182,7 @@ rules:
jsdoc/require-returns-type: 'error'
jsdoc/valid-types: 'error'

# Disable some from TypeScript.
'@typescript-eslint/camelcase': off

react/prop-types: 'off'
react/jsx-sort-props: 'error'
react-hooks/rules-of-hooks: 'error'
react-hooks/exhaustive-deps: 'error'
Expand Down
29 changes: 0 additions & 29 deletions .github/ISSUE_TEMPLATE/1_Bug_report.md

This file was deleted.

44 changes: 44 additions & 0 deletions .github/ISSUE_TEMPLATE/1_Bug_report.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
name: '🐛 Bug Report'
description: Report errors and problems
labels: [question]
body:
- type: dropdown
id: product
attributes:
label: Are you experiencing an issue with...
options:
- shields.io
- My own instance of shields
- badge-maker NPM package
validations:
required: true

- type: textarea
id: description
attributes:
label: '🐞 Description'
description: A clear and concise description of the problem.
validations:
required: true

- type: textarea
id: link
attributes:
label: '🔗 Link to the badge'
description: If you are reporting a problem with a specific badge on shields.io, provide a link to a badge demonstrating the error
validations:
required: false

- type: textarea
id: possible-solution
attributes:
label: '💡 Possible Solution'
description: 'Optional: only if you have suggestions on a fix/reason for the bug'
validations:
required: false

- type: markdown
attributes:
value: |
## :heart: Love Shields?
Please consider donating $10 to sustain our activities: [https://opencollective.com/shields](https://opencollective.com/shields)
2 changes: 1 addition & 1 deletion .github/ISSUE_TEMPLATE/2_Failing_service_test.md
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ labels: 'keep-service-tests-green'

<!-- Provide a link to the failing test in CircleCI. -->

:beetle: **Stack trace**
:lady_beetle: **Stack trace**

```
<!-- Provide the complete stack trace from the CircleCI test summary. -->
Expand Down
37 changes: 0 additions & 37 deletions .github/ISSUE_TEMPLATE/3_Badge_request.md

This file was deleted.

62 changes: 62 additions & 0 deletions .github/ISSUE_TEMPLATE/3_Badge_request.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,62 @@
name: '💡 Badge Request'
description: Ideas for new badges
labels: ['service-badge']
body:
- type: markdown
attributes:
value: >
## Ideas for new badges
This issue template is for suggesting new badges which
**fetch and display data from an upstream service**.
If your suggestion is for a static badge
(which shows the same information every time it is requested), it is
[already possible to make these](https://shields.io/docs/static-badges).
We don't add specific routes for badges which only show static information.
- type: textarea
id: description
attributes:
label: '📋 Description'
description: |
A clear and concise description of the new badge.
- Which service is this badge for e.g: GitHub, Travis CI
- What sort of information should this badge show?
Provide an example in plain text e.g: "version | v1.01" or as a static badge
(static badge generator can be found at https://shields.io/badges/static-badge )
validations:
required: true

- type: textarea
id: data
attributes:
label: '🔗 Data'
description: |
Where can we get the data from?
Please consider and cover details like:
- Is there a public API?
- Does the API require authentication or an API key?
If so, please review our documentation on [Badges Requiring Authentication](https://github.com/badges/shields/blob/master/doc/authentication.md)
- Link to the API documentation.
validations:
required: true

- type: textarea
id: motivation
attributes:
label: '🎤 Motivation'
description: |
Please explain why this feature should be implemented and how it would be used.
- What is the specific use case?
validations:
required: true

- type: markdown
attributes:
value: |
## :heart: Love Shields?
Please consider donating $10 to sustain our activities: [https://opencollective.com/shields](https://opencollective.com/shields)
17 changes: 0 additions & 17 deletions .github/ISSUE_TEMPLATE/5_Support_question.md

This file was deleted.

Loading

0 comments on commit 38ff282

Please sign in to comment.