forked from ramp4-pcar4/ramp4-pcar4
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Update eslint to latest, minor setting ajustments
- Loading branch information
1 parent
89389c8
commit f7e1e39
Showing
16 changed files
with
706 additions
and
341 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
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 |
---|---|---|
|
@@ -100,6 +100,37 @@ jobs: | |
npm run ts-docs:generate | ||
npm run vite-docs:generate | ||
- uses: ramp4-pcar4/status-checks@main | ||
id: pr-checks | ||
if: github.ref == 'refs/heads/main' | ||
with: | ||
gh-token: ${{ secrets.GITHUB_TOKEN }} | ||
ts-command: 'npm run ts:check' | ||
lint-command: 'npm run lint:check' | ||
format-command: 'npm run format:check' | ||
|
||
- name: Typescript badge | ||
if: github.ref == 'refs/heads/main' | ||
uses: RubbaBoy/[email protected] | ||
with: | ||
name: 'tsbadge' | ||
icon: typescript | ||
label: 'TS Errors' | ||
status: ${{ steps.pr-checks.outputs.ts-errors }} | ||
color: blue | ||
github_token: ${{ secrets.GITHUB_TOKEN }} | ||
|
||
- name: Lint badge | ||
if: github.ref == 'refs/heads/main' | ||
uses: RubbaBoy/[email protected] | ||
with: | ||
name: 'lintbadge' | ||
icon: codecov | ||
label: 'Lint' | ||
status: 'Errors: ${{ steps.pr-checks.outputs.lint-errors }}, Warnings: ${{ steps.pr-checks.outputs.lint-warnings }}' | ||
color: purple | ||
github_token: ${{ secrets.GITHUB_TOKEN }} | ||
|
||
- name: Publish to NPM for tag releases on main repo only | ||
if: github.repository == 'ramp4-pcar4/ramp4-pcar4' && startsWith(github.ref, 'refs/tags/v') | ||
run: | | ||
|
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 |
---|---|---|
|
@@ -32,3 +32,25 @@ jobs: | |
ts-command: 'npm run ts:check' | ||
lint-command: 'npm run lint:check' | ||
format-command: 'npm run format:check' | ||
|
||
- name: Typescript badge | ||
if: always() | ||
uses: RubbaBoy/[email protected] | ||
with: | ||
name: 'tsbadge-${{github.head_ref}}' | ||
icon: typescript | ||
label: 'TS Errors' | ||
status: ${{ steps.pr-checks.outputs.ts-errors }} | ||
color: blue | ||
github_token: ${{ secrets.GITHUB_TOKEN }} | ||
|
||
- name: Lint badge | ||
if: always() | ||
uses: RubbaBoy/[email protected] | ||
with: | ||
name: 'lintbadge-${{github.head_ref}}' | ||
icon: codecov | ||
label: 'Lint' | ||
status: 'Errors: ${{ steps.pr-checks.outputs.lint-errors }}, Warnings: ${{ steps.pr-checks.outputs.lint-warnings }}' | ||
color: purple | ||
github_token: ${{ secrets.GITHUB_TOKEN }} |
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
Large diffs are not rendered by default.
Oops, something went wrong.
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,5 +1,5 @@ | ||
# R4MP Technical Documentation | ||
|
||
<p align="center"><img src="https://raw.githubusercontent.com/ramp4-pcar4/ramp4-pcar4/main/assets/logo.svg"></p> | ||
<p align="center"><img src="https://raw.githubusercontent.com/ramp4-pcar4/ramp4-pcar4/main/public/logo.svg"></p> | ||
|
||
This site serves as the technical documentation of RAMP 4's TypeScript codebase. For general documentation, please visit the [main documentation site](https://{{repo-owner}}.github.io/ramp4-pcar4/{{ramp-version}}/docs/). |
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,32 @@ | ||
import pluginVue from 'eslint-plugin-vue'; | ||
import vueTsEslintConfig from '@vue/eslint-config-typescript'; | ||
import pluginCypress from 'eslint-plugin-cypress/flat'; | ||
import skipFormatting from '@vue/eslint-config-prettier/skip-formatting'; | ||
|
||
export default [ | ||
{ | ||
name: 'app/files-to-lint', | ||
files: ['**/*.{ts,mts,tsx,vue}'] | ||
}, | ||
{ | ||
name: 'app/files-to-ignore', | ||
ignores: ['**/dist/**'] | ||
}, | ||
{ | ||
rules: { | ||
'vue/script-setup-uses-vars': 'error', | ||
'vue/multi-word-component-names': 'off' | ||
} | ||
}, | ||
...pluginVue.configs['flat/essential'], | ||
...vueTsEslintConfig(), | ||
{ | ||
...pluginCypress.configs.recommended, | ||
files: [ | ||
'**/__tests__/*.{cy,spec}.{js,ts,jsx,tsx}', | ||
'cypress/e2e/**/*.{cy,spec}.{js,ts,jsx,tsx}', | ||
'cypress/support/**/*.{js,ts,jsx,tsx}' | ||
] | ||
}, | ||
skipFormatting | ||
]; |
Oops, something went wrong.