Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat!: rewrite to lit #367

Merged
merged 154 commits into from
Jan 23, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
154 commits
Select commit Hold shift + click to select a range
e557a97
feat: rewrite to lit
favna May 15, 2022
9d2bd2f
feat: rewrite library to Lit Element
favna Jun 3, 2022
5082534
style: styling
favna Jun 3, 2022
1528a9f
fix: fixed author info thingies
favna Jun 4, 2022
cc946fe
fix: fixes for discord-messages styling
favna Jun 4, 2022
6c19051
fix: loads more things
favna Jun 4, 2022
d6c07b6
fixed loading whitney font
favna Jun 8, 2022
fefac7f
fix: fixed mention styles, compact mode and timestamp updating
favna Jun 8, 2022
53120f8
fix: fixed edited messages
favna Jun 8, 2022
616d79f
chore: cleanup hex to rgba
favna Jun 8, 2022
5364b0f
fix: solve colouring issue in discord-mention
favna Jun 8, 2022
fa86142
docs: update core readme
favna Jun 8, 2022
73b6652
chore: formatting of markdown files
favna Jun 8, 2022
8b584ce
docs: fix Vue 3 and Vite samples
favna Jun 8, 2022
f56b67d
chore: bump dependencies
favna Apr 19, 2023
684e8f6
fix: include new discord font if available
favna Apr 19, 2023
d48eadb
feat: migrate discord bold
favna Apr 19, 2023
3ee26c7
feat: migrated all components
Apr 21, 2023
e1e9478
refactor: font sync, formatting, fixing eslint issues, packages
favna Apr 21, 2023
0c0015c
refactor: add missing export mapping, module augments, and split tsc …
favna Apr 21, 2023
b6a76e3
feat: made svgs modifiable
TheBv Apr 21, 2023
22271e9
fix: webserver demo not working
TheBv Apr 21, 2023
c866f13
fix: light-theme and other css issues
TheBv Apr 22, 2023
456059c
feat: react bindings
TheBv Apr 24, 2023
cadef9c
chore: update dependencies and fix eslint
favna May 7, 2023
81750af
chore: reorder exports to match file tree order
favna May 7, 2023
0c9694c
chore: ensure correct ts version
favna May 7, 2023
f359d12
fix: fixed margins of discord messages not being correct
favna May 7, 2023
362df08
fix: fixed inline code having incorrect font
favna May 7, 2023
05ea06d
fix: fixed margin-bottom not propagating to discord-message
favna May 7, 2023
b5637c2
fix: fixed discord-spoiler extending the full width instead of just t…
favna May 7, 2023
57e33af
fix: port slash mentions from main to this branch
favna May 7, 2023
bb26ebc
fix: port pin system messages from main to this branch
favna May 7, 2023
b91830f
chore: update demo html
favna May 7, 2023
2770cde
fix: resolve attachments not getting proper spacing
favna May 7, 2023
593723b
fix: ensure invite join buttons next have text-decoration
favna May 7, 2023
53bc628
fix: unwrap several components from a parent div
favna May 7, 2023
ef8c5df
chore: remove commented out code
favna May 7, 2023
4366ace
refactor: use proper lit lifecycle for custom emojis
favna May 7, 2023
0d83e2c
fix: react components not being exported properly
TheBv May 9, 2023
9ac72e9
fix: discrd commands not rendering correctly
TheBv May 9, 2023
dd5edb4
ci: merge build and lint to fix the latter
favna May 9, 2023
7a41e01
chore: fix tsconfig for react
favna May 9, 2023
d33cefe
chore: update yarn
favna May 9, 2023
8515bb5
chore: update dev deps
favna May 9, 2023
62ba779
fix: orange mention higlight missing
TheBv May 9, 2023
8bafbf3
fix: discord replies not being rendered correctly
TheBv May 9, 2023
ad73b47
fix: replies having wrong dimensions and font size
TheBv May 9, 2023
ce05743
fix: timestamp being further away from username
TheBv May 9, 2023
bcfee7d
fix: embed timestamps not aligning with grid
TheBv May 9, 2023
9448658
feat: added DiscordLink component
TheBv May 9, 2023
b40c3ce
fix: discord compact mode having wrong margins
TheBv May 9, 2023
f21e5b6
chore: delete old-src
TheBv May 9, 2023
31c50a0
fix: incorrect embed author/title styling
TheBv May 11, 2023
9834081
feat: added DiscordPre
TheBv May 11, 2023
5b61f81
chore: removed unneeded css
TheBv May 11, 2023
d3ff556
fix: fixed space between '@'-symbol and usernames
TheBv May 11, 2023
50dc754
feat(react): added DiscordLink and DiscordPre export
TheBv May 12, 2023
adff47f
docs: update readmes
favna May 12, 2023
070ac70
chore: auto generate readme files
favna May 12, 2023
a05b524
chore: make script to update exports and sideEffects
favna May 12, 2023
5f9437d
chore: cleanup eslintrc
favna May 12, 2023
d3101a8
chore: update pre-commit hook
favna May 12, 2023
fbb480b
fix: use a SSR safe window
favna May 12, 2023
2c360ea
chore: formatting
favna May 12, 2023
77c387d
chore: readd comments to css
favna May 12, 2023
51e102b
fix(discord-button): make `:host` work
favna May 12, 2023
55e2ff6
refactor(discord-code): if statement braces
favna May 12, 2023
e000124
chore: update tsdoc
favna May 12, 2023
d205cf8
chore: remove `nbsp` lines that are no longer needed
favna May 12, 2023
416463d
style: formatting
favna May 12, 2023
f6ecea5
refactor: drop `discord-button-` prefix
favna May 12, 2023
ece863b
style: formatting
favna May 12, 2023
2db85c9
feat: add `footerImageAlt` and change empty string to null
favna May 12, 2023
c8895a2
refactor: cleanup property decorators
favna May 12, 2023
4368e2b
chore: cleanup index.html
favna May 12, 2023
2d093a1
fix: remove spaces
favna May 12, 2023
48e3996
style: formatting
favna May 12, 2023
269a8bd
chore: add script to auto-update core index.ts
favna May 12, 2023
1561f1a
chore: move pre-commit hooks to CI checks
favna May 12, 2023
870a8e9
chore: formatting
favna May 12, 2023
d793a27
ci: why u no work
favna May 12, 2023
ce532cd
ci: rename workflow
favna May 12, 2023
e58d226
ci: fix step name
favna May 12, 2023
9b42e43
chore: attempt bogus edit
favna May 12, 2023
695fb04
chore: only output prettier warnings
favna May 12, 2023
924b855
chore: test bogus edit that should give red ci
favna May 12, 2023
79f39d4
chore: attempt bogus edit
favna May 12, 2023
ff98d7c
ci: make ci actually error
favna May 12, 2023
21c442b
chore: revert bogus edit of readme
favna May 12, 2023
3890dae
chore: update dev deps
favna May 12, 2023
a69208c
chore: remove react resolutions
favna May 12, 2023
d5ddb6b
chore: prepare react index for becoming generated
favna May 12, 2023
d0142f7
chore: add script to auto generate react index.ts
favna May 12, 2023
75c4b1b
fix: fixed colouring role highlights
favna May 12, 2023
f6b83a7
fix: resolve some light mode bugs, but not all
favna May 12, 2023
bdba958
fix: fixed mention styling for light-theme
TheBv May 13, 2023
5670bac
fix: fixed incompatibilities with SSR frameworks
TheBv May 13, 2023
b940632
chore: improve reading and augmenting global / window
favna May 14, 2023
825a548
feat: converted elements to use :host
TheBv May 18, 2023
117925a
feat: discord spoilers stay revealed on click
TheBv May 19, 2023
9811327
fix: missing dependency
TheBv May 19, 2023
6741492
fix: discord embed fields overflowing
TheBv May 19, 2023
06a8fa5
fix: discord ephemerals having incorrect styling
TheBv May 22, 2023
373619f
fix: discord badge for unverified bots
TheBv Jun 5, 2023
e3eb129
fix: fixed multiline code not working in react
TheBv Jun 5, 2023
b2e22a7
fix: fixed mesage contents being misaligned for compact mode replies
TheBv Jun 5, 2023
d114d29
feat: added color property for discord mentions
TheBv Jun 5, 2023
f76ff1a
fix: fixed discord messages not drawing thread line
TheBv Jun 5, 2023
71578d4
fix: fixed incorrect margins and underline position
TheBv Jun 5, 2023
76d634d
chore: update dev deps
favna May 24, 2023
8b380f4
chore: remove storybook
favna Jun 30, 2023
68baea3
test: setup unit testing stack
favna Jun 30, 2023
8cd5232
test: improve testing framework
favna Jun 30, 2023
7a04da6
ci: add job to run unit tests
favna Jun 30, 2023
663f812
test: fix test file name
favna Jun 30, 2023
599f96e
refactor: use `Intl` to format dates
favna Jul 1, 2023
69e67e9
fix: properly handle date-like embed footer timestamps
favna Jul 1, 2023
78eefa6
chore: change how coverage reports are generated
favna Jul 1, 2023
ed0b489
style: prettier and stricter linting
favna Jul 1, 2023
990ddc9
test: add additional unit tests
favna Jul 1, 2023
c0a0028
chore: update dependencies
favna Jul 1, 2023
b9b9347
chore: remove spaces
favna Jul 1, 2023
5b532e9
test: finish up tests for discord-message
favna Jul 1, 2023
63a81f7
test: fix group name
favna Jul 1, 2023
139fede
test: do not auto open with manual mode
favna Jul 1, 2023
79230f0
test: add unit tests for discord-mention
favna Jul 1, 2023
0764949
test: add additional tests
favna Jul 1, 2023
5ce6030
test: change imports to the root level import for better coverage rep…
favna Jul 1, 2023
2f856f1
test: add tests for discord-code
favna Jul 1, 2023
071fe1b
fix(discord-code): add missing lightTheme `consumes`
favna Jul 1, 2023
4c45d3b
fix(discord-quote): add missing lightTheme `consumes`
favna Jul 1, 2023
0a75a5d
fix(discord-mention): add default of lightTheme
favna Jul 1, 2023
e376efb
test: add test for discord-button
favna Jul 1, 2023
0c33236
chore: update dev deps
favna Jul 23, 2023
f0e1ee5
refactor: update code post rebase
favna Sep 2, 2023
ad5968e
chore: remove eslint-config-airbnb
favna Sep 2, 2023
a539304
chore: make vscode use built in tss
favna Sep 2, 2023
e093c7c
feat: add missing channel mention icons
favna Sep 2, 2023
bfcdd15
ci: update ci to node 20
favna Oct 15, 2023
b87ea75
build: husky changes
favna Oct 15, 2023
6e7d618
chore: update renovate and labelsync config
favna Jan 15, 2024
d862807
chore: make hooks executable
favna Jan 15, 2024
96d8062
feat: update to latest versions of all packages
favna Jan 22, 2024
c251ffe
build: switch to rimraf
favna Jan 22, 2024
b3f4949
test: remove broken unit testing
favna Jan 22, 2024
e1b6b0d
fix: fixed styling for compact mode
favna Jan 22, 2024
df9bce8
fix: fixed styling for mentions
favna Jan 22, 2024
0806e1b
fix: update the mention icon svgs
favna Jan 22, 2024
d5d7acf
fix: update dark and light mode screenshots
favna Jan 22, 2024
b8b660e
ci: remove testing from ci flow
favna Jan 22, 2024
a8defd6
ci: fully enable renovate
favna Jan 22, 2024
44032a7
chore: update demo to use proper html
favna Jan 22, 2024
f6e7919
docs: start writing upgrading guide
favna Jan 23, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 3 additions & 6 deletions .eslintignore
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,6 @@
*.jsx
*.test.js
*.test.jsx
stencil-public-runtime.d.ts
packages/core/dist
packages/core/loader
packages/core/www
packages/core/src/components.d.ts
node_modules/
node_modules/
packages/core/demo/index.html
packages/**/dist/
157 changes: 71 additions & 86 deletions .eslintrc
Original file line number Diff line number Diff line change
@@ -1,20 +1,29 @@
{
"extends": ["@sapphire", "plugin:import/typescript"],
"root": true,
"extends": ["@open-wc", "plugin:lit/recommended", "@sapphire", "plugin:import/typescript", "plugin:lit-a11y/recommended"],
"parserOptions": {
"ecmaVersion": 2020,
"sourceType": "module",
"ecmaFeatures": {
"jsx": true
},
"jsx": true
"sourceType": "module"
},
"plugins": ["import", "jsx-a11y", "react", "react-hooks"],
"settings": {
"react": {
"version": "detect"
"import/extensions": [".js", ".mjs", ".cjs", ".jsx", ".ts", ".mts", ".cts", ".tsx"],
"import/parsers": {
"@typescript-eslint/parser": [".ts", ".tsx", ".js", ".jsx", ".json", ".node"]
},
"import/resolvers": {
"typescript": {
"alwaysTryTypes": true,
"project": ["tsconfig.eslint.json"],
"extensions": [".js", ".jsx", ".ts", ".tsx"]
},
"node": {
"extensions": [".js", ".jsx", ".ts", ".tsx"]
}
}
},
"plugins": ["import"],
"rules": {
"@typescript-eslint/member-ordering": "off",
"no-extra-label": "warn",
"no-iterator": "warn",
"no-label-var": "warn",
Expand Down Expand Up @@ -57,93 +66,69 @@
"getter-return": "warn",
"import/first": "error",
"import/no-amd": "error",
"import/no-webpack-loader-syntax": "error",
"react/forbid-foreign-prop-types": [
"warn",
{
"allowInPropTypes": true
}
],
"react/jsx-no-comment-textnodes": "warn",
"react/jsx-no-duplicate-props": "warn",
"react/jsx-no-target-blank": "warn",
"react/jsx-no-undef": "error",
"react/jsx-pascal-case": [
"warn",
{
"allowAllCaps": true,
"ignore": []
}
],
"react/jsx-uses-react": "warn",
"react/jsx-uses-vars": "warn",
"react/no-children-prop": "warn",
"react/no-access-state-in-setstate": "warn",
"react/no-danger": "error",
"react/no-danger-with-children": "warn",
"react/no-direct-mutation-state": "warn",
"react/no-is-mounted": "warn",
"react/no-this-in-sfc": "warn",
"react/no-typos": "error",
"react/react-in-jsx-scope": "error",
"react/require-render-return": "error",
"react/style-prop-object": "warn",
"react/void-dom-elements-no-children": "warn",
"jsx-a11y/accessible-emoji": "warn",
"jsx-a11y/alt-text": "warn",
"jsx-a11y/anchor-has-content": "warn",
"jsx-a11y/anchor-is-valid": [
"warn",
"import/default": "off",
"import/dynamic-import-chunkname": "off",
"import/export": "error",
"import/exports-last": "off",
"import/extensions": ["error", "always", { "ignorePackages": true }],
"import/group-exports": "off",
"import/max-dependencies": "off",
"import/named": "off",
"import/namespace": "off",
"import/newline-after-import": "error",
"import/no-absolute-path": "error",
"import/no-anonymous-default-export": "off",
"import/no-commonjs": "off",
"import/no-cycle": ["error", { "maxDepth": 4, "ignoreExternal": true, "allowUnsafeDynamicCyclicDependency": true }],
"import/no-default-export": "off",
"import/no-deprecated": "off",
"import/no-duplicates": "error",
"import/no-dynamic-require": "error",
"import/no-extraneous-dependencies": [
"error",
{
"aspects": ["noHref", "invalidHref"]
"devDependencies": true,
"optionalDependencies": true,
"peerDependencies": true
}
],
"jsx-a11y/aria-activedescendant-has-tabindex": "warn",
"jsx-a11y/aria-props": "warn",
"jsx-a11y/aria-proptypes": "warn",
"jsx-a11y/aria-role": [
"warn",
"import/no-import-module-exports": "off",
"import/no-internal-modules": "off",
"import/no-mutable-exports": "error",
"import/no-named-as-default": "off",
"import/no-named-as-default-member": "off",
"import/no-named-default": "off",
"import/no-named-export": "off",
"import/no-namespace": "off",
"import/no-nodejs-modules": "off",
"import/no-relative-packages": "off",
"import/no-relative-parent-imports": "off",
"import/no-restricted-paths": "off",
"import/no-self-import": "error",
"import/no-unassigned-import": "off",
"import/no-unresolved": "off",
"import/no-unused-modules": "off",
"import/no-useless-path-segments": "error",
"import/no-webpack-loader-syntax": "error",
"import/order": [
"error",
{
"ignoreNonDOM": true
"alphabetize": {
"caseInsensitive": false,
"order": "asc"
},
"groups": ["builtin", "external", "internal", "parent", "sibling", "index", "type"],
"newlines-between": "never",
"warnOnUnassignedImports": true
}
],
"jsx-a11y/aria-unsupported-elements": "warn",
"jsx-a11y/heading-has-content": "warn",
"jsx-a11y/iframe-has-title": "warn",
"jsx-a11y/img-redundant-alt": "warn",
"jsx-a11y/no-access-key": "warn",
"jsx-a11y/no-distracting-elements": "warn",
"jsx-a11y/no-redundant-roles": "warn",
"jsx-a11y/role-has-required-aria-props": "warn",
"jsx-a11y/role-supports-aria-props": "warn",
"jsx-a11y/scope": "warn",
"react-hooks/exhaustive-deps": "warn",
"react-hooks/rules-of-hooks": "error"
"wc/guard-super-call": "off"
},
"overrides": [
{
"files": ["packages/core/**"],
"rules": {
"@typescript-eslint/ban-types": 0,
"@typescript-eslint/no-unused-vars": 0,
"react/react-in-jsx-scope": 0
}
},
{
"files": ["packages/react/**"],
"files": ["**/test/**/*"],
"rules": {
"@typescript-eslint/ban-types": 0,
"@typescript-eslint/no-floating-promises": 0,
"@typescript-eslint/unbound-method": 0,
"no-eq-null": 0,
"@typescript-eslint/explicit-member-accessibility": 0,
"@typescript-eslint/member-ordering": 0,
"@typescript-eslint/naming-convention": 0,
"@typescript-eslint/no-empty-function": 0,
"@typescript-eslint/no-explicit-any": 0,
"@typescript-eslint/no-unused-vars": 0,
"@typescript-eslint/no-useless-constructor": 0,
"prefer-template": 0
"@typescript-eslint/no-floating-promises": "off"
}
}
]
Expand Down
54 changes: 27 additions & 27 deletions .github/CODE_OF_CONDUCT.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@ We as members, contributors, and leaders pledge to make participation in our
community a harassment-free experience for everyone, regardless of age, body
size, visible or invisible disability, ethnicity, sex characteristics, gender
identity and expression, level of experience, education, socio-economic status,
nationality, personal appearance, race, religion, or sexual identity
and orientation.
nationality, personal appearance, race, religion, or sexual identity and
orientation.

We pledge to act and interact in ways that contribute to an open, welcoming,
diverse, inclusive, and healthy community.
Expand All @@ -17,24 +17,24 @@ diverse, inclusive, and healthy community.
Examples of behavior that contributes to a positive environment for our
community include:

- Demonstrating empathy and kindness toward other people
- Being respectful of differing opinions, viewpoints, and experiences
- Giving and gracefully accepting constructive feedback
- Accepting responsibility and apologizing to those affected by our mistakes,
and learning from the experience
- Focusing on what is best not just for us as individuals, but for the
overall community
- Demonstrating empathy and kindness toward other people
- Being respectful of differing opinions, viewpoints, and experiences
- Giving and gracefully accepting constructive feedback
- Accepting responsibility and apologizing to those affected by our mistakes,
and learning from the experience
- Focusing on what is best not just for us as individuals, but for the overall
community

Examples of unacceptable behavior include:

- The use of sexualized language or imagery, and sexual attention or
advances of any kind
- Trolling, insulting or derogatory comments, and personal or political attacks
- Public or private harassment
- Publishing others' private information, such as a physical or email
address, without their explicit permission
- Other conduct which could reasonably be considered inappropriate in a
professional setting
- The use of sexualized language or imagery, and sexual attention or advances of
any kind
- Trolling, insulting or derogatory comments, and personal or political attacks
- Public or private harassment
- Publishing others' private information, such as a physical or email address,
without their explicit permission
- Other conduct which could reasonably be considered inappropriate in a
professional setting

## Enforcement Responsibilities

Expand All @@ -60,8 +60,8 @@ representative at an online or offline event.

Instances of abusive, harassing, or otherwise unacceptable behavior may be
reported to the community leaders responsible for enforcement at
[email protected].
All complaints will be reviewed and investigated promptly and fairly.
[email protected]. All complaints will be reviewed and investigated promptly and
fairly.

All community leaders are obligated to respect the privacy and security of the
reporter of any incident.
Expand All @@ -82,15 +82,15 @@ behavior was inappropriate. A public apology may be requested.

### 2. Warning

**Community Impact**: A violation through a single incident or series
of actions.
**Community Impact**: A violation through a single incident or series of
actions.

**Consequence**: A warning with consequences for continued behavior. No
interaction with the people involved, including unsolicited interaction with
those enforcing the Code of Conduct, for a specified period of time. This
includes avoiding interactions in community spaces as well as external channels
like social media. Violating these terms may lead to a temporary or
permanent ban.
like social media. Violating these terms may lead to a temporary or permanent
ban.

### 3. Temporary Ban

Expand All @@ -109,17 +109,17 @@ Violating these terms may lead to a permanent ban.
standards, including sustained inappropriate behavior, harassment of an
individual, or aggression toward or disparagement of classes of individuals.

**Consequence**: A permanent ban from any sort of public interaction within
the community.
**Consequence**: A permanent ban from any sort of public interaction within the
community.

## Attribution

This Code of Conduct is adapted from the [Contributor Covenant][homepage],
version 2.0, available at
https://www.contributor-covenant.org/version/2/0/code_of_conduct.html.

Community Impact Guidelines were inspired by [Mozilla's code of conduct
enforcement ladder](https://github.com/mozilla/diversity).
Community Impact Guidelines were inspired by
[Mozilla's code of conduct enforcement ladder](https://github.com/mozilla/diversity).

[homepage]: https://www.contributor-covenant.org

Expand Down
10 changes: 6 additions & 4 deletions .github/CONTRIBUTING.md
Original file line number Diff line number Diff line change
@@ -1,10 +1,12 @@
# Contributing

**The issue tracker is only for issue reporting or proposals/suggestions. If you have a question, you can find us in our [Discord Server]**.
**The issue tracker is only for issue reporting or proposals/suggestions. If you
have a question, you can find us in our [Discord Server]**.

To contribute to this repository, feel free to create a new fork of the repository and
submit a pull request. We highly suggest [ESLint] to be installed
in your text editor or IDE of your choice to ensure builds from GitHub Actions do not fail.
To contribute to this repository, feel free to create a new fork of the
repository and submit a pull request. We highly suggest [ESLint] to be installed
in your text editor or IDE of your choice to ensure builds from GitHub Actions
do not fail.

1. Fork, clone, and select the **main** branch.
2. Create a new branch in your fork.
Expand Down
1 change: 0 additions & 1 deletion .github/husky/commit-msg → .github/hooks/commit-msg
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
#!/bin/sh
. "$(dirname "$0")/_/husky.sh"

yarn commitlint --edit $1
3 changes: 3 additions & 0 deletions .github/hooks/pre-commit
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
#!/bin/sh

yarn lint-staged
1 change: 0 additions & 1 deletion .github/husky/.gitignore

This file was deleted.

4 changes: 0 additions & 4 deletions .github/husky/pre-commit

This file was deleted.

3 changes: 1 addition & 2 deletions .github/renovate.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
{
"$schema": "https://docs.renovatebot.com/renovate-schema.json",
"enabled": false,
"extends": ["github>sapphiredev/readme:sapphire-renovate"]
"extends": ["github>sapphiredev/.github:sapphire-renovate"]
}
32 changes: 9 additions & 23 deletions .github/workflows/continuous-integration.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,38 +7,24 @@ on:
pull_request:

jobs:
Linting:
name: Linting
BuildAndLint:
name: BuildingAndLinting
runs-on: ubuntu-latest
steps:
- name: Checkout Project
uses: actions/checkout@v3
- name: Add problem matcher
run: echo "::add-matcher::.github/problemMatchers/eslint.json"
- name: Use Node.js v16
run: |
echo "::add-matcher::.github/problemMatchers/eslint.json"
echo "::add-matcher::.github/problemMatchers/tsc.json"
- name: Use Node.js v20
uses: actions/setup-node@v3
with:
node-version: 16
cache: yarn
- name: Install Dependencies
run: yarn --immutable
- name: Run ESLint
run: yarn lint --fix=false

Building:
name: Compile source code
runs-on: ubuntu-latest
steps:
- name: Checkout Project
uses: actions/checkout@v3
- name: Add problem matcher
run: echo "::add-matcher::.github/problemMatchers/tsc.json"
- name: Use Node.js v16
uses: actions/setup-node@v3
with:
node-version: 16
node-version: 20
cache: yarn
- name: Install Dependencies
run: yarn --immutable
- name: Build Code
run: yarn build
- name: Run ESLint
run: yarn lint --fix=false
Loading