-
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.
- Loading branch information
Showing
37 changed files
with
456 additions
and
1,468 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,4 @@ | ||
module.exports = { | ||
root: true, | ||
extends: ["custom"], | ||
}; |
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,41 @@ | ||
name: CI Genetics | ||
|
||
on: | ||
push: | ||
branches: ["main"] | ||
pull_request: | ||
types: [opened, synchronize] | ||
|
||
jobs: | ||
build: | ||
name: Build genetics | ||
timeout-minutes: 15 | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- name: Check out code | ||
uses: actions/checkout@v3 | ||
with: | ||
fetch-depth: 2 | ||
|
||
- name: Install yarn | ||
run: |- | ||
curl -fsSL --create-dirs -o $HOME/bin/yarn \ | ||
https://github.com/yarnpkg/yarn/releases/download/v1.22.19/yarn-1.22.19.js | ||
chmod +x $HOME/bin/yarn | ||
echo "$HOME/bin" >> $GITHUB_PATH | ||
- name: Setup Node.js environment | ||
uses: actions/setup-node@v3 | ||
with: | ||
node-version: "18.17.1" | ||
cache: "yarn" | ||
|
||
- name: Install dependencies | ||
run: yarn install --frozen-lockfile | ||
|
||
- name: Lint | ||
run: yarn lint | ||
|
||
- name: Build | ||
run: yarn build:genetics |
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,41 @@ | ||
name: CI Platform | ||
|
||
on: | ||
push: | ||
branches: ["main"] | ||
pull_request: | ||
types: [opened, synchronize] | ||
|
||
jobs: | ||
build: | ||
name: Build platform | ||
timeout-minutes: 15 | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- name: Check out code | ||
uses: actions/checkout@v3 | ||
with: | ||
fetch-depth: 2 | ||
|
||
- name: Install yarn | ||
run: |- | ||
curl -fsSL --create-dirs -o $HOME/bin/yarn \ | ||
https://github.com/yarnpkg/yarn/releases/download/v1.22.19/yarn-1.22.19.js | ||
chmod +x $HOME/bin/yarn | ||
echo "$HOME/bin" >> $GITHUB_PATH | ||
- name: Setup Node.js environment | ||
uses: actions/setup-node@v3 | ||
with: | ||
node-version: "18.17.1" | ||
cache: "yarn" | ||
|
||
- name: Install dependencies | ||
run: yarn install --frozen-lockfile | ||
|
||
- name: Lint | ||
run: yarn lint | ||
|
||
- name: Build | ||
run: yarn build:platform |
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 @@ | ||
_ |
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,4 @@ | ||
#!/usr/bin/env sh | ||
. "$(dirname -- "$0")/_/husky.sh" | ||
|
||
yarn lint |
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,9 @@ | ||
**/bundle-genetics | ||
**/bundle-platform | ||
**/node_modules | ||
**/.github | ||
**/.husky | ||
**/public | ||
**/__generated__ | ||
packages/eslint-config-custom | ||
packages/tsconfig |
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,8 @@ | ||
{ | ||
"printWidth": 100, | ||
"semi": true, | ||
"trailingComma": "es5", | ||
"arrowParens": "avoid", | ||
"tabWidth": 2, | ||
"bracketSpacing": true | ||
} |
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,4 +32,3 @@ deploy: | |
skip_cleanup: true | ||
on: | ||
tags: true | ||
all_branches: 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
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,4 +1,4 @@ | ||
module.exports = { | ||
root: true, | ||
extends: ['eslint-config-custom-vite'], | ||
extends: ['custom'], | ||
}; |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
declare module '*.gql' { | ||
import { DocumentNode } from 'graphql'; | ||
|
||
const value: DocumentNode; | ||
export = value; | ||
} |
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,5 +5,5 @@ | |
"rootDir": "src", | ||
"outDir": "bundle-platform" | ||
}, | ||
"include": ["src"] | ||
"include": ["src", "./**/*.gql"] | ||
} |
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 |
---|---|---|
|
@@ -23,15 +23,20 @@ | |
"build:platform:ppp": "turbo run build-ppp --filter=platform", | ||
"lint": "turbo run lint", | ||
"lint:platform": "turbo run lint --filter=platform", | ||
"format": "prettier --write \"**/*.{ts,tsx,md}\"" | ||
"format": "prettier --write \"**/*.{ts,tsx,js,jsx,md}\"", | ||
"prepare": "husky install" | ||
}, | ||
"devDependencies": { | ||
"eslint": "7.32.0", | ||
"eslint-config-custom": "*", | ||
"husky": "^8.0.3", | ||
"lint-staged": "^14.0.1", | ||
"prettier": "^2.5.1", | ||
"turbo": "^1.10.13" | ||
}, | ||
"engines": { | ||
"npm": ">=7.0.0", | ||
"node": ">=18.0.0" | ||
}, | ||
"packageManager": "[email protected]" | ||
"packageManager": "[email protected]", | ||
"lint-staged": { | ||
"*.{ts,tsx,js,jsx}": "eslint --cache --fix", | ||
"*.{ts,tsx,js,jsx,md}": "prettier --write" | ||
} | ||
} |
This file was deleted.
Oops, something went wrong.
44 changes: 21 additions & 23 deletions
44
packages/eslint-config-custom-vite/index.js → packages/eslint-config-custom/index.js
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,50 +1,48 @@ | ||
/* eslint-disable */ | ||
const project = require("tsconfig/vite.json"); | ||
|
||
module.exports = { | ||
env: { | ||
node: true, | ||
browser: true, | ||
es6: true, | ||
jest: true, | ||
}, | ||
parser: "@typescript-eslint/parser", | ||
extends: [ | ||
"airbnb", | ||
"eslint:recommended", | ||
"plugin:import/recommended", | ||
"plugin:react/jsx-runtime", | ||
"plugin:react/recommended", | ||
"plugin:@typescript-eslint/eslint-recommended", | ||
"plugin:@typescript-eslint/recommended", | ||
"turbo", | ||
"plugin:jsx-a11y/recommended", | ||
"plugin:react/recommended", | ||
"plugin:react-hooks/recommended", | ||
"prettier", | ||
], | ||
parser: "@typescript-eslint/parser", | ||
parserOptions: { | ||
ecmaFeatures: { | ||
jsx: true, | ||
}, | ||
ecmaVersion: 2018, | ||
sourceType: "module", | ||
ecmaVersion: 2020, | ||
project, | ||
}, | ||
plugins: ["react", "import", "@typescript-eslint", "react-hooks", "prettier"], | ||
overrides: [ | ||
{ | ||
files: ["**/__tests__/**/*"], | ||
env: { | ||
jest: true, | ||
}, | ||
plugins: ["@typescript-eslint", "jsx-a11y"], | ||
settings: { | ||
react: { | ||
version: "detect", | ||
}, | ||
], | ||
}, | ||
rules: { | ||
"@typescript-eslint/no-empty-function": 1, | ||
"@typescript-eslint/no-non-null-assertion": "off", | ||
"no-plusplus": ["error", { allowForLoopAfterthoughts: true }], | ||
"no-restricted-exports": "off", | ||
"no-underscore-dangle": "warn", | ||
"no-await-in-loop": "warn", | ||
"no-param-reassign": ["error", { props: false }], | ||
"import/prefer-default-export": "warn", | ||
"no-empty-function": "off", | ||
|
||
"react/prop-types": 0, | ||
"react/react-in-jsx-scope": 0, | ||
"react/jsx-filename-extension": [1, { extensions: [".tsx", ".jsx"] }], | ||
|
||
"jsx-a11y/no-static-element-interactions": "warn", | ||
"jsx-a11y/click-events-have-key-events": "warn", | ||
"jsx-a11y/no-static-element-interactions": "warn", | ||
"jsx-a11y/no-autofocus": "warn", | ||
"jsx-a11y/img-redundant-alt": "warn", | ||
}, | ||
}; |
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,26 @@ | ||
{ | ||
"name": "eslint-config-custom", | ||
"version": "0.0.0", | ||
"main": "index.js", | ||
"license": "MIT", | ||
"dependencies": { | ||
"@typescript-eslint/eslint-plugin": "^6.7.5", | ||
"@typescript-eslint/parser": "^6.7.5", | ||
"eslint-config-airbnb": "^19.0.4", | ||
"eslint-config-prettier": "^9.0.0", | ||
"eslint-config-turbo": "^1.10.15", | ||
"eslint-plugin-jsx-a11y": "^6.7.1", | ||
"eslint-plugin-react": "^7.33.2", | ||
"eslint-plugin-react-hooks": "^4.6.0" | ||
}, | ||
"publishConfig": { | ||
"access": "public" | ||
}, | ||
"devDependencies": { | ||
"eslint": "7.32.0", | ||
"react": "^18.2.0", | ||
"react-dom": "^18.2.0", | ||
"tsconfig": "*", | ||
"typescript": "^5.2.2" | ||
} | ||
} |
Oops, something went wrong.