Skip to content

Commit

Permalink
Lint Fixed mostly
Browse files Browse the repository at this point in the history
  • Loading branch information
arietrouw committed Nov 8, 2023
1 parent 1f3aa9b commit ffacecb
Show file tree
Hide file tree
Showing 25 changed files with 1,303 additions and 1,080 deletions.
7 changes: 7 additions & 0 deletions .editorconfig
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
end_of_line = lf
insert_final_newline = true

charset = utf-8

[*.md{x}]
max_line_length = 128
28 changes: 25 additions & 3 deletions .eslintrc
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"root": true,
"ignorePatterns": ["config-overrides.js", "scripts-custom", "public", ".yarn", "node_modules", "build", "docusaurus.config.js", "*.d.ts"],
"ignorePatterns": ["config-overrides.js", "sidebars.js", "scripts-custom", "public", ".yarn", "node_modules", "build", "docusaurus.config.js", "*.d.ts"],
"extends": [
"@xylabs/react"
],
Expand All @@ -16,8 +16,6 @@
"**/*.gif",
"**/*.webp",
"react-icons/*",
"@xylabs/sdk-coin-js/*",
"@xylabs/sdk-coin-react/*",
"firebase/*",
"react-share/**/*",
"lodash/*",
Expand All @@ -29,6 +27,30 @@
}
]
},
"overrides": [
{
"files": ["**/*.md", "**/*.mdx"],
"processor": "markdown/markdown",
"plugins": ["markdown"],
"rules": {
"md/remark": [
"off",
{
"plugins": ["preset-lint-markdown-style-guide", "frontmatter", ["lint-list-item-indent", "tab-size"]],
}
],
"prettier/prettier": [
"off"
]
}
},
{
"files": ["**/*.md/*.tsx"],
"rules": {

}
}
],
"env": {
"browser": true
},
Expand Down
1 change: 1 addition & 0 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,7 @@
"flexbox",
"Foreventory",
"Forevintory",
"frontmatter",
"Geomine",
"Geominers",
"Geotokens",
Expand Down
26 changes: 11 additions & 15 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,22 +15,23 @@
> View this documentation at [docs.xyo.network](https://docs.xyo.network)
## Table of Contents
- [Title](#web-xyo.network-docusaurus)
- [Table of Contents](#table-of-contents)
- [Description](#description)
- [Maintainers](#maintainers)
- [License](#license)
- [Credits](#credits)

- [Title](#web-xyo.network-docusaurus)
- [Table of Contents](#table-of-contents)
- [Description](#description)
- [Maintainers](#maintainers)
- [License](#license)
- [Credits](#credits)

## Description

> Primary Documentation for using the XYO Protocol 2.0.
## Maintainers

- [Arie Trouw](https://github.com/arietrouw) [(arietrouw.com)](https://arietrouw.com)
- [Matt Jones](https://github.com/jonesmac)
- [Joel Carter](https://github.com/JoelBCarter)
- [Arie Trouw](https://github.com/arietrouw) [(arietrouw.com)](https://arietrouw.com)
- [Matt Jones](https://github.com/jonesmac)
- [Joel Carter](https://github.com/JoelBCarter)

## License

Expand All @@ -42,18 +43,13 @@
[Made with 🔥 and ❄️ by XYO](https://xyo.network)

[logo]: https://cdn.xy.company/img/brand/XYO_full_colored.png

[main-build]: https://github.com/XYOracleNetwork/web-xyo.network-docusaurus/actions/workflows/build.yml/badge.svg
[main-build-link]: https://github.com/XYOracleNetwork/web-xyo.network-docusaurus/actions/workflows/build.yml

[codacy-badge]: https://app.codacy.com/project/badge/Grade/ba1f344ae34e4bfe999331cf4e27b9f5
[codacy-link]: https://www.codacy.com/gh/XYOracleNetwork/web-xyo.network-docusaurus/dashboard?utm_source=github.com&utm_medium=referral&utm_content=XYOracleNetwork/web-xyo.network-docusaurus&utm_campaign=Badge_Grade

[codeclimate-badge]: https://api.codeclimate.com/v1/badges/0e76349c9541f3866948/maintainability
[codeclimate-link]: https://codeclimate.com/github/XYOracleNetwork/web-xyo.network-docusaurus/maintainability

[snyk-badge]: https://snyk.io/test/github/XYOracleNetwork/web-xyo.network-docusaurus/badge.svg?targetFile=package.json
[snyk-link]: https://snyk.io/test/github/XYOracleNetwork/web-xyo.network-docusaurus?targetFile=package.json

[license-badge]: https://img.shields.io/github/license/XYOracleNetwork/web-xyo.network-docusaurus
[license-link]: https://github.com/XYOracleNetwork/web-xyo.network-docusaurus/blob/main/LICENSE
[license-link]: https://github.com/XYOracleNetwork/web-xyo.network-docusaurus/blob/main/LICENSE
68 changes: 68 additions & 0 deletions docs/.eslintrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,68 @@
{
"root": true,
"extends": [
"@xylabs/react-base"
],
"parserOptions": {
"ecmaVersion": "latest",
"project": null,
"sourceType": "module",
"tsconfigRootDir": null,
},
"rules": {
"@typescript-eslint/no-floating-promises": ["off"],
"react/prop-types": ["off"],
"react/react-in-jsx-scope": ["off"],
"import/no-internal-modules": [
"warn", {
"allow": [
"**/*.jpg",
"**/*.png",
"**/*.svg",
"**/*.gif",
"**/*.webp",
"react-icons/*",
"firebase/*",
"react-share/**/*",
"lodash/*",
"@mui/**/*",
"react-player/*",
"filepond/**/*",
"filepond-plugin-image-preview/**/*"
]
}
]
},
"overrides": [
{
"files": ["**/*.md", "**/*.mdx"],
"processor": "markdown/markdown",
"plugins": ["markdown"],
"rules": {
"md/remark": [
"off",
{
"plugins": ["preset-lint-markdown-style-guide", "frontmatter", ["lint-list-item-indent", "tab-size"]],
}
],
"prettier/prettier": [
"off"
]
}
},
{
"files": ["**/*.md/*.tsx"],
"rules": {

}
}
],
"env": {
"browser": true
},
"settings": {
"react": {
"version": "detect"
}
}
}
4 changes: 3 additions & 1 deletion docs/demo-dapps/uniswap-pairs.md
Original file line number Diff line number Diff line change
@@ -1,11 +1,13 @@
---
sidebar_position: 3
---

# Sample dApps

Learn more about sample dApps created by the XYO team

## XYO dApp Library

The [XYO dApp Library](https://xyo.network/dapp) is designed to showcase XYO Technology with real-world data behind it. The dApps include a [Token Price Aggregator](https://xyo.network/dapp/price-aggregator), a [Uniswap Pair Renderer](https://xyo.network/dapp/uniswap-pairs), and a [Gas Price Aggregator](https://xyo.network/dapp/gas-price-aggregator).

Each dApp aggregates data from multiple sources, creates Bound Witnesses with XYO Technology and secures that information in an Archivist.

2 changes: 0 additions & 2 deletions docs/getting-started/build-dapp.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@ Get started by **exploring dApps that use XYO in your browser**.

Use Chrome or another compatible browser to navigate to [explore.xyo.network](https://explore.xyo.network)


## Build a dApp using XYO

Get started by **creating a dApp in Javascript/Typescript**.
Expand All @@ -29,7 +28,6 @@ Get started by **adding a feature to an iOS Mobile App**.

Get started by **adding a feature to an Android Mobile App**.


## Host your own XYO Node

Get started by **hosting a Node in your browser**.
Expand Down
2 changes: 1 addition & 1 deletion docs/getting-started/components/index.ts
Original file line number Diff line number Diff line change
@@ -1 +1 @@
export {InstallXyoOptions} from './installation'
export { InstallXyoOptions } from './installation'
Loading

0 comments on commit ffacecb

Please sign in to comment.