Skip to content

Commit bc3c50c

Browse files
committed
feat: new XML linter and parser
0 parents  commit bc3c50c

22 files changed

+5263
-0
lines changed

.editorconfig

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
# Editor configuration, see https://editorconfig.org
2+
root = true
3+
4+
[*]
5+
charset = utf-8
6+
indent_style = space
7+
indent_size = 2
8+
insert_final_newline = true
9+
trim_trailing_whitespace = true
10+
11+
[*.md]
12+
max_line_length = off
13+
trim_trailing_whitespace = false

.eslintrc.json

Lines changed: 78 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,78 @@
1+
{
2+
"parser": "@typescript-eslint/parser",
3+
"env": {
4+
"browser": true,
5+
"es2021": true
6+
},
7+
"extends": [
8+
"plugin:react/recommended",
9+
"standard-with-typescript"
10+
],
11+
"overrides": [
12+
{
13+
"files": ["*.ts", "*.tsx"],
14+
"extends": [
15+
"plugin:@typescript-eslint/recommended",
16+
"plugin:@typescript-eslint/recommended-requiring-type-checking"
17+
],
18+
19+
"parserOptions": {
20+
"project": ["./tsconfig.json"]
21+
}
22+
}
23+
],
24+
"parserOptions": {
25+
"ecmaVersion": "latest",
26+
"sourceType": "module"
27+
},
28+
"plugins": [
29+
"react",
30+
"@typescript-eslint",
31+
"spellcheck"
32+
],
33+
"rules": {
34+
"@typescript-eslint/consistent-type-definitions": 0,
35+
"@typescript-eslint/strict-boolean-expressions": 0,
36+
"@typescript-eslint/prefer-nullish-coalescing": 0,
37+
"@typescript-eslint/space-before-function-paren": 0,
38+
"semi": ["error", "always"],
39+
"@typescript-eslint/semi": ["error", "always"],
40+
"comma-dangle": ["error", "always-multiline"],
41+
"@typescript-eslint/comma-dangle": ["error", "always-multiline"],
42+
"@typescript-eslint/prefer-readonly": "off",
43+
"spellcheck/spell-checker": ["error", {
44+
"lang": "en_US",
45+
"comments": true,
46+
"strings": true,
47+
"identifiers": true,
48+
"templates": true,
49+
"minLength": 2,
50+
"ignoreRequire": true,
51+
"skipWords": [
52+
"noreferrer",
53+
"instagram",
54+
"linkedin",
55+
"pathname",
56+
"resize",
57+
"unmount",
58+
"preloading",
59+
"dom",
60+
"matchers",
61+
"jpg",
62+
"jpeg",
63+
"david",
64+
"bradshaw",
65+
"mr",
66+
"woff",
67+
"woff2",
68+
"ssl",
69+
"svg",
70+
"gif",
71+
"axios",
72+
"href",
73+
"xml",
74+
"adsbygoogle"
75+
]
76+
}]
77+
}
78+
}

.github/workflows/node.js.yml

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
# This workflow will do a clean installation of node dependencies, cache/restore them, build the source code and run tests across different versions of node
2+
# For more information see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-nodejs
3+
4+
name: Node.js CI
5+
6+
on:
7+
push:
8+
branches: [ "main" ]
9+
10+
jobs:
11+
publish:
12+
runs-on: ubuntu-latest
13+
steps:
14+
-
15+
name: Checkout
16+
uses: actions/checkout@v2
17+
-
18+
name: Install Node dependencies
19+
run: npm ci
20+
-
21+
name: Build site
22+
run: npm run build
23+
-
24+
name: Deploy to GitHub Pages
25+
if: success()
26+
uses: crazy-max/ghaction-github-pages@v2
27+
with:
28+
target_branch: gh-pages
29+
build_dir: build
30+
fqdn: xmllinter.unrealpixels.com
31+
env:
32+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

.gitignore

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
# See https://help.github.com/articles/ignoring-files/ for more about ignoring files.
2+
3+
# dependencies
4+
/node_modules
5+
/.pnp
6+
.pnp.js
7+
8+
# testing
9+
/coverage
10+
11+
# production
12+
/build
13+
14+
# misc
15+
.DS_Store
16+
.env.local
17+
.env.development.local
18+
.env.test.local
19+
.env.production.local
20+
21+
npm-debug.log*
22+
yarn-debug.log*
23+
yarn-error.log*

.npmrc

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
legacy-peer-deps=true

README.md

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
# Unreal Pixels XML Linter
2+
3+
### `npm start`
4+
5+
Runs the app in the development mode.
6+
Open [http://localhost:3000](http://localhost:3000) to view it in the browser.
7+
8+
### `npm run build`
9+
10+
Builds the app for production to the `build` folder.

index.html

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
<!DOCTYPE html>
2+
<html lang="en">
3+
<head>
4+
<meta charset="utf-8" />
5+
<link rel="icon" href="/favicon.ico" />
6+
<meta name="viewport" content="width=device-width, initial-scale=1" />
7+
<meta name="theme-color" content="#271d3b" />
8+
<meta name="description" content="XML Linter and verification tool" />
9+
<meta name="keywords" content="XML Linter and verification tool" />
10+
<link rel="apple-touch-icon" href="/logo192.png" />
11+
<link rel="manifest" href="/manifest.json" />
12+
<link rel="preconnect" href="https://fonts.googleapis.com">
13+
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
14+
<link href="https://fonts.googleapis.com/css2?family=Open+Sans:wght@300;400;600;700&display=swap" rel="stylesheet">
15+
<link href="https://fonts.googleapis.com/css?family=Open+Sans:300,300i,400,400i,700,700i|Raleway:300,400,500,700,800" rel="stylesheet">
16+
<title>XML Linter from Unreal Pixels</title>
17+
</head>
18+
<body>
19+
<noscript>You need to enable JavaScript to run this app.</noscript>
20+
<div id="root"></div>
21+
<script type="module" src="/src/index.tsx"></script>
22+
<script async src="https://www.googletagmanager.com/gtag/js?id=G-KLYKEY41RL"></script>
23+
<script>
24+
window.dataLayer = window.dataLayer || [];
25+
function gtag(){dataLayer.push(arguments);}
26+
gtag('js', new Date());
27+
gtag('config', 'G-KLYKEY41RL');
28+
</script>
29+
<script async src="https://pagead2.googlesyndication.com/pagead/js/adsbygoogle.js?client=ca-pub-5308923384403008" crossorigin="anonymous"></script>
30+
</body>
31+
</html>

0 commit comments

Comments
 (0)