Skip to content

Commit e585962

Browse files
style(lint): update eslint-config to v3.0.0 (#261)
1 parent 7bd41a9 commit e585962

Some content is hidden

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

54 files changed

+1803
-1379
lines changed

.github/commit-instructions.md

Lines changed: 35 additions & 41 deletions
Original file line numberDiff line numberDiff line change
@@ -1,43 +1,37 @@
1-
# <type>(<scope>): <subject>
2-
#
3-
# <body>
4-
#
5-
# <footer>
1+
<type>(<scope>): <subject>
2+
3+
<body>
4+
5+
<footer>
66

77
# Type should be one of the following:
8-
# * feat: a new feature
9-
# * fix: a bug fix
10-
# * docs: documentation only changes
11-
# * style: changes that do not affect the meaning of the code
12-
# * refactor: a code change that neither fixes a bug nor adds a feature
13-
# * perf: a code change that improves performance
14-
# * test: adding missing tests or correcting existing tests
15-
# * build: changes that affect the build system or external dependencies
16-
# * ci: changes to our ci configuration files and scripts
17-
# * chore: other changes that don't modify src or test files
18-
# * revert: reverts a previous commit
19-
#
20-
# Scope is optional, but should be one of the following:
21-
# * assets: changes to assets (images, fonts, etc.)
22-
# * audio: changes relating to sound or music
23-
# * core: changes to the core game functionality
24-
# * deps: changes to dependencies
25-
# * dev: changes to the development environment
26-
# * lint: changes that only affect linting such as auto-formatting
27-
# * mtx: changes to monetization or in-game purchases
28-
#
29-
# Subject line rules:
30-
# * Use imperative mood: "change" not "changed" nor "changes"
31-
# * No dot (.) at the end
32-
# * Limit to 72 characters
33-
# * No capitilization in the subject aside from issue references
34-
#
35-
# Body rules:
36-
# * Wrap at 72 characters
37-
# * Use imperative mood
38-
# * Explain what and why vs. how
39-
#
40-
# Footer rules:
41-
# * Reference issues and pull requests liberally
42-
# * Use "Fixes #123" or "Closes #123" for issues
43-
# * Use "BREAKING CHANGE:" for breaking changes
8+
9+
- feat: a new feature
10+
- fix: a bug fix
11+
- docs: documentation only changes
12+
- style: changes that do not affect the meaning of the code
13+
- refactor: a code change that neither fixes a bug nor adds a feature
14+
- perf: a code change that improves performance
15+
- test: adding missing tests or correcting existing tests
16+
- build: changes that affect the build system or external dependencies
17+
- ci: changes to our ci configuration files and scripts
18+
- chore: other changes that don't modify src or test files
19+
- revert: reverts a previous commit Scope is optional, but should be one of the
20+
following:
21+
- assets: changes to assets (images, fonts, etc.)
22+
- audio: changes relating to sound or music
23+
- core: changes to the core game functionality
24+
- deps: changes to dependencies
25+
- dev: changes to the development environment
26+
- lint: changes that only affect linting such as auto-formatting
27+
- mtx: changes to monetization or in-game purchases Subject line rules:
28+
- Use imperative mood: "change" not "changed" nor "changes"
29+
- No dot (.) at the end
30+
- Limit to 72 characters
31+
- No capitilization in the subject aside from issue references Body rules:
32+
- Wrap at 72 characters
33+
- Use imperative mood
34+
- Explain what and why vs. how Footer rules:
35+
- Reference issues and pull requests liberally
36+
- Use "Fixes #123" or "Closes #123" for issues
37+
- Use "BREAKING CHANGE:" for breaking changes
File renamed without changes.

.github/workflows/ci.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,8 +30,8 @@ jobs:
3030
- name: Cache ESLint
3131
uses: actions/cache@5a3ec84eff668545956fd18022155c47e93e2684 # v4.2.3
3232
with:
33-
path: .eslintcache
3433
key: eslint-cache-${{ runner.os }}-${{ hashFiles('**/pnpm-lock.yaml', 'eslint.config.*') }}-${{ github.run_id }}
34+
path: .eslintcache
3535
restore-keys: |
3636
eslint-cache-${{ runner.os }}-${{ hashFiles('**/pnpm-lock.yaml', 'eslint.config.*') }}-
3737
eslint-cache-${{ runner.os }}-

.github/workflows/release-development.yaml

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ on:
55
branches:
66
- develop
77
paths:
8-
- 'src/**/*'
8+
- "src/**/*"
99
- default.project.json
1010
- mantle.yaml
1111
- package.json
@@ -46,15 +46,15 @@ jobs:
4646
- name: Upload place
4747
uses: actions/upload-artifact@b4b15b8c7c6ac21ea08fcf65892d2ee8f75cf882 # v4
4848
with:
49-
name: place
50-
path: place.rbxlx
5149
if-no-files-found: error
5250

51+
name: place
52+
path: place.rbxlx
5353
deploy:
54-
runs-on: ubuntu-latest
55-
environment: development
5654
needs: build
5755

56+
runs-on: ubuntu-latest
57+
environment: development
5858
steps:
5959
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4
6060

@@ -97,17 +97,17 @@ jobs:
9797
done
9898
echo "Success!"
9999
100-
- name: Deploy place
101-
run: mantle deploy mantle.yaml --environment development
102-
env:
103-
ROBLOSECURITY: ${{ secrets.ROBLOSECURITY }}
104-
MANTLE_OPEN_CLOUD_API_KEY: ${{ secrets.MANTLE_OPEN_CLOUD_API_KEY }}
100+
- env:
105101
MANTLE_AWS_ACCESS_KEY_ID: ${{ secrets.MANTLE_AWS_ACCESS_KEY_ID }}
106102
MANTLE_AWS_SECRET_ACCESS_KEY: ${{ secrets.MANTLE_AWS_SECRET_ACCESS_KEY }}
107103

104+
MANTLE_OPEN_CLOUD_API_KEY: ${{ secrets.MANTLE_OPEN_CLOUD_API_KEY }}
105+
ROBLOSECURITY: ${{ secrets.ROBLOSECURITY }}
106+
name: Deploy place
107+
run: mantle deploy mantle.yaml --environment development
108108
# Turn off the VPN after deployment to speed up action completion
109-
- name: Post WireGuard Connection
110-
if: always()
109+
- if: always()
110+
name: Post WireGuard Connection
111111
run: |
112112
sudo wg-quick down ./wg0.conf
113113
sudo rm -f ./wg0.conf
Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,16 @@
11
name: Release Flow
22

33
on:
4-
workflow_dispatch:
5-
inputs:
6-
version:
7-
type: string
8-
required: false
9-
description: Version to release
104
pull_request:
115
types:
126
- closed
137

8+
workflow_dispatch:
9+
inputs:
10+
version:
11+
description: Version to release
12+
required: false
13+
type: string
1414
permissions:
1515
contents: write
1616
packages: write
@@ -24,12 +24,12 @@ jobs:
2424
with:
2525
fetch-depth: 0
2626

27-
- name: GitFlow workflow action - Release workflows
27+
- env:
28+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
29+
name: GitFlow workflow action - Release workflows
2830
uses: christopher-buss/gitflow-workflow-action@8053671e9f67cd273a2e47eb4939ba54920ef99e
2931
with:
3032
develop_branch: develop
3133
main_branch: main
3234
merge_back_from_main: false
3335
version: ${{ inputs.version }}
34-
env:
35-
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

.github/workflows/release.yaml

Lines changed: 18 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ on:
77
branches:
88
- main
99
paths:
10-
- 'src/**/*'
10+
- "src/**/*"
1111
- assets
1212
- build.project.json
1313
- mantle.yaml
@@ -46,15 +46,15 @@ jobs:
4646
- name: Upload place
4747
uses: actions/upload-artifact@b4b15b8c7c6ac21ea08fcf65892d2ee8f75cf882 # v4
4848
with:
49-
name: place
50-
path: place.rbxlx
5149
if-no-files-found: error
5250

51+
name: place
52+
path: place.rbxlx
5353
deploy:
54-
runs-on: ubuntu-latest
55-
environment: production
5654
needs: build
5755

56+
runs-on: ubuntu-latest
57+
environment: production
5858
steps:
5959
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4
6060

@@ -97,29 +97,29 @@ jobs:
9797
done
9898
echo "Success!"
9999
100-
- name: Deploy game
101-
run: mantle deploy mantle.yaml --allow-purchases --environment production
102-
env:
103-
ROBLOSECURITY: ${{ secrets.ROBLOSECURITY }}
104-
MANTLE_OPEN_CLOUD_API_KEY: ${{ secrets.MANTLE_OPEN_CLOUD_API_KEY }}
100+
- env:
105101
MANTLE_AWS_ACCESS_KEY_ID: ${{ secrets.MANTLE_AWS_ACCESS_KEY_ID }}
106102
MANTLE_AWS_SECRET_ACCESS_KEY: ${{ secrets.MANTLE_AWS_SECRET_ACCESS_KEY }}
107103

104+
MANTLE_OPEN_CLOUD_API_KEY: ${{ secrets.MANTLE_OPEN_CLOUD_API_KEY }}
105+
ROBLOSECURITY: ${{ secrets.ROBLOSECURITY }}
106+
name: Deploy game
107+
run: mantle deploy mantle.yaml --allow-purchases --environment production
108108
# Turn off the VPN after deployment to speed up action completion
109-
- name: Post WireGuard Connection
110-
if: always()
109+
- if: always()
110+
name: Post WireGuard Connection
111111
run: |
112112
sudo wg-quick down ./wg0.conf
113113
sudo rm -f ./wg0.conf
114114
shell: bash
115115

116116
tag:
117-
runs-on: ubuntu-latest
118117
needs: deploy
118+
runs-on: ubuntu-latest
119119
steps:
120120
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4
121-
- name: Bump version and push tag
122-
id: tag_version
121+
- id: tag_version
122+
name: Bump version and push tag
123123
uses: mathieudutour/github-tag-action@a22cf08638b34d5badda920f9daf6e72c477b07b # v6.2
124124
with:
125125
github_token: ${{ secrets.GITHUB_TOKEN }}
@@ -132,7 +132,7 @@ jobs:
132132
- name: Create a GitHub release
133133
uses: ncipollo/release-action@2c591bcc8ecdcd2db72b97d6147f871fcd833ba5 # v1
134134
with:
135-
tag: ${{ steps.tag_version.outputs.new_tag }}
136-
name: Release ${{ steps.tag_version.outputs.new_tag }}
137-
body: ${{ steps.tag_version.outputs.changelog }}
138135
artifacts: place.rbxlx
136+
body: ${{ steps.tag_version.outputs.changelog }}
137+
name: Release ${{ steps.tag_version.outputs.new_tag }}
138+
tag: ${{ steps.tag_version.outputs.new_tag }}

.husky/install.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
// Skip Husky install in production and CI
2-
if (process.env.NODE_ENV === 'production' || process.env.CI === 'true') {
3-
process.exit(0)
2+
if (process.env.NODE_ENV === "production" || process.env.CI === "true") {
3+
process.exit(0);
44
}
55

6-
const husky = (await import('husky')).default
7-
console.log(husky())
6+
const { default: husky } = await import("husky");
7+
console.log(husky());

.vscode/settings.json

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,17 @@
77
"editor.formatOnSave": false,
88
// Enable the ESlint flat config support
99
"eslint.useFlatConfig": true,
10-
"eslint.validate": ["typescript", "typescriptreact", "markdown", "json", "jsonc", "yaml", "toml", "luau"],
10+
"eslint.validate": [
11+
"typescript",
12+
"typescriptreact",
13+
"javascript",
14+
"markdown",
15+
"json",
16+
"jsonc",
17+
"yaml",
18+
"toml",
19+
"luau"
20+
],
1121
// Silent the stylistic rules in you IDE, but still auto fix them
1222
"eslint.rules.customizations": [
1323
{ "rule": "style/*", "severity": "off", "fixable": true },

0 commit comments

Comments
 (0)