-
-
Notifications
You must be signed in to change notification settings - Fork 195
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore: enforce prettier and eslint (#3014)
See issue #2378 - Add prettier for code formatting - Update eslint config to parse other parts of codebase outside of `src/engine`, and also remove rules that are handled by prettier - Add husky & lint-staged to enforce formatting on git commit - Add format step to `all` and `all:ci` scripts I separated the commit that runs the format & lint on all files into #3015 so the config can be easily reviewed here. Once we're happy with this, we can merge that PR into this one and ignore the commit(s) using `git blame --ignore-rev` to remove it from git blame history.
- Loading branch information
1 parent
dd1b2eb
commit 582fbcc
Showing
474 changed files
with
11,224 additions
and
4,895 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -14,4 +14,4 @@ | |
"@babel/preset-typescript" | ||
], | ||
"plugins": [] | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,13 @@ | ||
site/ | ||
scripts/apidocs.js | ||
scripts/release.js | ||
karma.conf.js | ||
/site | ||
/sandbox | ||
/scripts | ||
karma.conf.* | ||
webpack.config.js | ||
webpack.config.prod.js | ||
version.js | ||
wallaby.js | ||
version.js | ||
node_modules | ||
build | ||
coverage | ||
node_cache | ||
*.d.ts |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
9223608d57af6efe3205baa924c16b8f4788bd5b | ||
3cf93825d0a90e93651f058bfd200df0c43f47db |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,3 @@ | ||
enhancement: ['feature/*', 'feat/*', 'enhancement/*'] | ||
bug: ['fix/*', 'bug/*'] | ||
chore: chore/* | ||
chore: chore/* |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -5,70 +5,69 @@ name: CI | |
|
||
env: | ||
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
COVERALLS_REPO_TOKEN: "${{ secrets.COVERALLS_REPO_TOKEN }}" | ||
COVERALLS_GIT_BRANCH: "${{ github.ref }}" | ||
COVERALLS_REPO_TOKEN: '${{ secrets.COVERALLS_REPO_TOKEN }}' | ||
COVERALLS_GIT_BRANCH: '${{ github.ref }}' | ||
|
||
on: | ||
pull_request: | ||
branches: [ main ] | ||
branches: [main] | ||
push: | ||
branches: [ main ] | ||
branches: [main] | ||
workflow_call: | ||
|
||
jobs: | ||
build: | ||
runs-on: [ubuntu-latest] | ||
|
||
steps: | ||
- uses: actions/checkout@v4 | ||
with: | ||
submodules: true | ||
fetch-depth: 100 | ||
- uses: actions/setup-node@v4 | ||
with: | ||
node-version-file: '.nvmrc' | ||
registry-url: 'https://registry.npmjs.org' | ||
cache: npm | ||
- run: npm ci | ||
- run: npm run linux:ci | ||
- name: Coveralls | ||
uses: coverallsapp/[email protected] | ||
with: | ||
github-token: ${{ secrets.GITHUB_TOKEN }} | ||
- uses: actions/checkout@v4 | ||
with: | ||
submodules: true | ||
fetch-depth: 100 | ||
- uses: actions/setup-node@v4 | ||
with: | ||
node-version-file: '.nvmrc' | ||
registry-url: 'https://registry.npmjs.org' | ||
cache: npm | ||
- run: npm ci | ||
- run: npm run linux:ci | ||
- name: Coveralls | ||
uses: coverallsapp/[email protected] | ||
with: | ||
github-token: ${{ secrets.GITHUB_TOKEN }} | ||
|
||
typedoc: | ||
runs-on: [ubuntu-latest] | ||
env: | ||
PUPPETEER_SKIP_CHROMIUM_DOWNLOAD: true | ||
|
||
steps: | ||
- uses: actions/checkout@v4 | ||
with: | ||
submodules: true | ||
fetch-depth: 100 | ||
- uses: actions/setup-node@v4 | ||
with: | ||
node-version-file: '.nvmrc' | ||
cache: npm | ||
registry-url: 'https://registry.npmjs.org' | ||
- run: npm ci --ignore-scripts | ||
- run: npm run apidocs | ||
- uses: actions/checkout@v4 | ||
with: | ||
submodules: true | ||
fetch-depth: 100 | ||
- uses: actions/setup-node@v4 | ||
with: | ||
node-version-file: '.nvmrc' | ||
cache: npm | ||
registry-url: 'https://registry.npmjs.org' | ||
- run: npm ci --ignore-scripts | ||
- run: npm run apidocs | ||
|
||
examples: | ||
runs-on: [ubuntu-latest] | ||
env: | ||
PUPPETEER_SKIP_CHROMIUM_DOWNLOAD: true | ||
|
||
steps: | ||
- uses: actions/checkout@v4 | ||
with: | ||
submodules: true | ||
fetch-depth: 100 | ||
- uses: actions/setup-node@v4 | ||
with: | ||
node-version-file: '.nvmrc' | ||
cache: npm | ||
registry-url: 'https://registry.npmjs.org' | ||
- run: npm ci --ignore-scripts | ||
- run: npm run build-storybook | ||
|
||
steps: | ||
- uses: actions/checkout@v4 | ||
with: | ||
submodules: true | ||
fetch-depth: 100 | ||
- uses: actions/setup-node@v4 | ||
with: | ||
node-version-file: '.nvmrc' | ||
cache: npm | ||
registry-url: 'https://registry.npmjs.org' | ||
- run: npm ci --ignore-scripts | ||
- run: npm run build-storybook |
Oops, something went wrong.