Skip to content

Commit e1553ce

Browse files
sripwoud0xtsukino
authored andcommitted
chore:refactor: config and apply eslint rules (#63)
* add eslint deps and rules * eslint --fix * chore: lint (remove unused) * feat: on board interep with gh (#61) * refactor: extract interepOnboarding views in separate files * define AuthGithub / AuthTwitter components * render joinGroupView with GitHub reputation params * can reset/logout
1 parent edef5a7 commit e1553ce

File tree

47 files changed

+582
-38343
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

47 files changed

+582
-38343
lines changed

.eslintignore

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
.idea
2+
build
3+
webpack.ui.config.js

.eslintrc.yaml

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
plugins: [ '@typescript-eslint' ]
2+
extends: [ 'eslint:recommended', 'plugin:@typescript-eslint/eslint-recommended', 'plugin:import/recommended', 'prettier' ]
3+
parser: '@typescript-eslint/parser'
4+
parserOptions:
5+
project: [ 'tsconfig.json' ]
6+
root: true
7+
settings:
8+
import/resolver:
9+
- typescript
10+
rules:
11+
'@typescript-eslint/explicit-function-return-type': off
12+
'@typescript-eslint/return-await': off
13+
'@typescript-eslint/no-unused-vars': warn
14+
import/no-unresolved:
15+
- error
16+
- ignore: [ '\.gif', '\.png', '\.svg' ]
17+
no-case-declarations: warn
18+
no-console: off
19+
no-empty:
20+
- error
21+
- allowEmptyCatch: true
22+
no-unused-vars: off

.github/workflows/build.yml

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
name: Format - Test - Build
2+
on: [ push ]
3+
jobs:
4+
build:
5+
runs-on: ubuntu-latest
6+
strategy:
7+
matrix:
8+
node: [ '14.x' ]
9+
name: Node ${{ matrix.node }} build
10+
steps:
11+
- uses: actions/checkout@v3
12+
- name: Setup node
13+
uses: actions/setup-node@v3
14+
with:
15+
node-version: ${{ matrix.node }}
16+
cache: 'npm'
17+
18+
- name: Install
19+
run: npm ci --silent
20+
21+
- name: Lint
22+
run: npm run lint:check
23+
24+
- name: Format
25+
run: npm run format:check
26+
27+
- name: Build
28+
run: npm run build
29+
30+
- name: Test
31+
run: npm run test:coverage

0 commit comments

Comments
 (0)