forked from aeharding/voyager
-
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.
Add reorganized file structure, add lint and CI
- Loading branch information
Showing
82 changed files
with
849 additions
and
1,512 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,59 @@ | ||
{ | ||
"root": true, | ||
"env": { | ||
"browser": true, | ||
"es2022": true | ||
}, | ||
"extends": [ | ||
"plugin:@typescript-eslint/recommended", | ||
"plugin:react/recommended", | ||
"plugin:react-hooks/recommended", | ||
"plugin:prettier/recommended" | ||
], | ||
"plugins": ["react", "@typescript-eslint", "@emotion"], | ||
"parser": "@typescript-eslint/parser", | ||
"parserOptions": { | ||
"ecmaFeatures": { | ||
"jsx": true | ||
}, | ||
"sourceType": "module", | ||
"ecmaVersion": 2022 | ||
}, | ||
"rules": { | ||
"react/react-in-jsx-scope": "off", | ||
"no-console": ["warn", { "allow": ["warn", "error", "info"] }], | ||
"linebreak-style": ["warn", "unix"], | ||
"react/jsx-fragments": ["warn", "syntax"], | ||
"no-undef": 1, | ||
"@typescript-eslint/no-empty-function": 0, | ||
"@typescript-eslint/no-empty-interface": 0, | ||
"react/jsx-curly-brace-presence": ["warn", "never"], | ||
"eqeqeq": ["warn", "smart"], | ||
"react/no-unknown-property": ["error", { "ignore": ["css"] }], | ||
"@emotion/no-vanilla": "error", | ||
"@emotion/import-from-emotion": "error", | ||
"@emotion/styled-import": "error", | ||
"@emotion/syntax-preference": [2, "string"], | ||
"@typescript-eslint/no-unused-vars": [ | ||
"warn", | ||
{ "destructuredArrayIgnorePattern": "^_" } | ||
] | ||
}, | ||
"overrides": [ | ||
{ | ||
"files": ["**/*.test.ts", "**/*.test.tsx"], | ||
"globals": { | ||
"global": "writable" | ||
}, | ||
"env": { | ||
"jest": true | ||
} | ||
}, | ||
{ | ||
"files": ["server.mjs"], | ||
"env": { | ||
"node": true | ||
} | ||
} | ||
] | ||
} |
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 |
---|---|---|
@@ -0,0 +1,36 @@ | ||
name: ci | ||
|
||
permissions: {} | ||
|
||
on: | ||
push: | ||
branches: | ||
- main | ||
pull_request: | ||
branches: | ||
- main | ||
workflow_dispatch: {} | ||
|
||
jobs: | ||
ci: | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- uses: actions/checkout@v3 | ||
- run: corepack enable | ||
- uses: actions/setup-node@v3 | ||
with: | ||
node-version: 18 | ||
cache: yarn | ||
|
||
- name: 📦 Install dependencies | ||
run: yarn --frozen-lockfile | ||
|
||
- name: 🧪 Test project | ||
run: yarn test | ||
|
||
- name: 📝 Lint | ||
run: yarn lint | ||
|
||
- name: 💪 Type check | ||
run: yarn test:typecheck |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
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
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
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
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,8 +1,7 @@ | ||
import React from 'react'; | ||
import { render } from '@testing-library/react'; | ||
import App from './App'; | ||
import { render } from "@testing-library/react"; | ||
import App from "./App"; | ||
|
||
test('renders without crashing', () => { | ||
test("renders without crashing", () => { | ||
const { baseElement } = render(<App />); | ||
expect(baseElement).toBeDefined(); | ||
}); |
Oops, something went wrong.