-
Notifications
You must be signed in to change notification settings - Fork 11
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: add basic type-lint sanity checks on pull requests
- Loading branch information
Showing
13 changed files
with
2,474 additions
and
110 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 |
---|---|---|
@@ -0,0 +1 @@ | ||
app |
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,42 @@ | ||
module.exports = { | ||
settings: { | ||
react: { | ||
createClass: "createReactClass", // Regex for Component Factory to use, | ||
pragma: "React", // Pragma to use, default to "React" | ||
fragment: "Fragment", // Fragment to use (may be a property of <pragma>), default to "Fragment" | ||
version: "detect", // React version. "detect" automatically picks the version you have installed. | ||
}, | ||
}, | ||
env: { | ||
browser: true, | ||
node: true, | ||
es2021: true, | ||
}, | ||
extends: [ | ||
"eslint:recommended", | ||
"plugin:@typescript-eslint/recommended", | ||
"plugin:react/recommended", | ||
], | ||
overrides: [ | ||
{ | ||
env: { | ||
node: true, | ||
}, | ||
files: [".eslintrc.{js,cjs}"], | ||
parserOptions: { | ||
sourceType: "script", | ||
}, | ||
}, | ||
], | ||
parser: "@typescript-eslint/parser", | ||
parserOptions: { | ||
ecmaVersion: "latest", | ||
sourceType: "module", | ||
}, | ||
plugins: ["@typescript-eslint", "react"], | ||
rules: { | ||
"linebreak-style": ["error", "unix"], | ||
"react/no-unknown-property": ["off"], | ||
"react/react-in-jsx-scope": ["off"], | ||
}, | ||
}; |
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,18 @@ | ||
name: "Check Pull Request" | ||
on: | ||
pull_request: | ||
branches: ["**"] | ||
push: | ||
branches: | ||
- master | ||
jobs: | ||
check_pr: | ||
runs-on: ubuntu-latest | ||
strategy: | ||
matrix: | ||
step: ["check:lint", "check:types"] | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v4 | ||
- name: ${{ matrix.step }} | ||
run: npm install && npm run ${{ matrix.step }} |
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,4 +5,5 @@ app | |
dist | ||
*~ | ||
*# | ||
.DS_Store | ||
.DS_Store | ||
*.tsbuildinfo |
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
Oops, something went wrong.