Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feature/megalinter error #2

Open
wants to merge 78 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
78 commits
Select commit Hold shift + click to select a range
c007991
feat: add mega
Dec 26, 2022
7bebac0
feat: test mega
Dec 26, 2022
adeac80
feat: try
Dec 26, 2022
7b22d96
feat: super
Dec 26, 2022
b899980
feat: change token
Dec 26, 2022
be6149c
feat: vALIDATE_ALL_CODEBASE
Dec 26, 2022
a8b1b95
feat: ansible Lint
Dec 26, 2022
0e2c8e1
feat: config yml
Dec 26, 2022
bc13ed9
feat: mega
Dec 26, 2022
ea388f9
feat: mega
Dec 26, 2022
1708838
feat: upgrade eslint-config-next
Dec 26, 2022
c0b7a9c
feat: test
Dec 26, 2022
96446b0
feat: change dep
Dec 26, 2022
1cd2aa5
feat: test
Dec 26, 2022
3a5febe
feat: change tml
Dec 26, 2022
37b4ca1
feat: yml
Dec 26, 2022
c9a7a20
feat: reviewdog
Dec 26, 2022
51c83d0
feat: rml
Dec 26, 2022
de288e0
feat: test
Dec 26, 2022
ca21a4f
feat: test
Dec 26, 2022
14a9733
feat: test
Dec 26, 2022
b05ef0b
feat: yml
Dec 26, 2022
154efc4
feat: fix
Dec 26, 2022
a1daba4
feat: fix
Dec 26, 2022
2c8f4dc
feat: fix errors
Dec 26, 2022
e5353e2
feat: eslint-changed-files
Dec 27, 2022
6327f9a
feat: test
Dec 27, 2022
95e6109
feat: revert
Dec 27, 2022
058ba01
feat: yml
Dec 27, 2022
fd39124
feat: all files
Dec 27, 2022
179a0b7
feat: test
Dec 27, 2022
27ee98a
feat: test
Dec 27, 2022
b9b0a5f
feat: test
Dec 27, 2022
9f2e84e
feat: test
Dec 27, 2022
bc0cd97
feat: test
Dec 27, 2022
6755465
feat: test
Dec 27, 2022
2a2a4e2
feat: reviewdog
Dec 27, 2022
d6febb7
feat: change
Dec 27, 2022
304cce2
feat: fail_on_error: true
Dec 27, 2022
abacd8b
feat: test
Dec 27, 2022
e3f8b9d
feat: stylelint
Dec 27, 2022
b4c8146
feat: stylelint
Dec 27, 2022
1d7b2bc
feat: less
Dec 27, 2022
5069b46
feat: change conf
Dec 27, 2022
5ccdee5
feat: test
Dec 27, 2022
5c71f2e
feat: less
Dec 27, 2022
ce0dd38
feat: less
Dec 27, 2022
7ef1d8f
feat: linting
Dec 27, 2022
d154743
feat: linting
Dec 27, 2022
6f0d7c3
feat: linting
Dec 27, 2022
d68a48d
feat: stylelint
Dec 27, 2022
2b18f6a
feat: test
Dec 27, 2022
d1eda27
feat: stylelint-problem-matcher
Dec 27, 2022
3d3e8c2
feat: test
Dec 27, 2022
4fa2b85
feat: test
Dec 27, 2022
ccd5d04
feat: test
Dec 27, 2022
fe88bff
feat: test
Dec 27, 2022
d99dd24
feat: stylelint
Dec 27, 2022
7208f74
feat: try
Dec 27, 2022
3468913
feat: reviewdog
Dec 27, 2022
40f4999
feat: reviewdog
Dec 27, 2022
e8710dc
feat: reviewdog
Dec 27, 2022
2fd9636
feat: reviewdog
Dec 28, 2022
60513f3
feat: correct
Dec 28, 2022
c45e78d
feat: add error
Dec 28, 2022
53df5a7
feat: change level
Dec 28, 2022
ce341e0
feat: add eslint_flags
Dec 28, 2022
c4873fb
feat: change yml
Dec 28, 2022
9100269
feat: test
Dec 28, 2022
b9454b4
Merge branch 'feature/megalinter' into feature/megalinter-error
Dec 28, 2022
39896a7
feat: add error
Dec 28, 2022
8f5bd96
feat: test
Dec 28, 2022
4ab7033
feat: test
Dec 28, 2022
665a0fc
feat: test
Dec 28, 2022
108ad41
feat: add error
Dec 28, 2022
b11d555
feat: add error
Dec 28, 2022
3ae8c4e
feat: add error
Dec 28, 2022
e734509
feat: add error
Dec 28, 2022
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
22 changes: 22 additions & 0 deletions .github/workflows/pr.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
name: reviewdog
on:
pull_request:
branches: [master, main]

jobs:
eslint:
name: runner / eslint
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v2
with:
node-version: '16'
- run: yarn install
- uses: reviewdog/action-eslint@v1
with:
level: error
reporter: github-pr-check
eslint_flags: '--quiet --cache --ext .js,.jsx,.ts,.tsx .'
filter_mode: diff_context
fail_on_error: true
20 changes: 20 additions & 0 deletions .github/workflows/push.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
name: reviewdog
on:
push:
branches-ignore: [master, main]
jobs:
eslint:
name: runner / eslint
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v2
with:
node-version: '16'
- run: yarn install
- uses: reviewdog/action-eslint@v1
with:
level: error
reporter: github-check
eslint_flags: '--quiet --cache --ext .js,.jsx,.ts,.tsx .'
fail_on_error: true
2 changes: 1 addition & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -39,4 +39,4 @@ yarn-error.log*
*.sh

# cache
.eslintcache
.eslintcache
1 change: 1 addition & 0 deletions babel.config.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
// todo: delete
const nextModeBabelPlugin = require('next-babel-conditional-ssg-ssr');

const presets = ['next/babel'];
Expand Down
24 changes: 12 additions & 12 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,18 @@
"react-redux": "^8.0.2",
"react-use": "^17.4.0",
"web3": "^1.7.4",
"web3-core": "^1.7.4"
"web3-core": "^1.7.4",
"eslint-plugin-tsdoc": "^0.2.17",
"@typescript-eslint/eslint-plugin": "^5.30.4",
"@typescript-eslint/parser": "^5.30.4",
"eslint": "8.19.0",
"eslint-config-next": "12.1.0",
"eslint-config-prettier": "^8.5.0",
"eslint-plugin-prettier": "^4.2.1",
"prettier": "^2.7.1",
"stylelint": "^14.9.1",
"stylelint-config-prettier": "^9.0.3",
"stylelint-config-standard": "^26.0.0"
},
"devDependencies": {
"@coinbase/wallet-sdk": "^3.3.0",
Expand All @@ -58,22 +69,11 @@
"@types/node": "18.0.1",
"@types/react": "18.0.14",
"@types/react-dom": "18.0.5",
"@typescript-eslint/eslint-plugin": "^5.30.4",
"@typescript-eslint/parser": "^5.30.4",
"eslint": "8.19.0",
"eslint-config-next": "12.2.0",
"eslint-config-prettier": "^8.5.0",
"eslint-plugin-prettier": "^4.2.1",
"eslint-plugin-tsdoc": "^0.2.17",
"husky": ">=6",
"less": "^4.1.3",
"less-loader": "^11.0.0",
"lint-staged": ">=10",
"postcss-less": "^6.0.0",
"prettier": "^2.7.1",
"stylelint": "^14.9.1",
"stylelint-config-prettier": "^9.0.3",
"stylelint-config-standard": "^26.0.0",
"typescript": "4.7.4",
"vconsole": "^3.14.6"
},
Expand Down
1 change: 0 additions & 1 deletion src/hooks/callback/useLockCallback.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,5 @@ export default function useLockCallback<T extends (...args: any[]) => any>(callb
lock.current = false;
throw e;
}
// eslint-disable-next-line react-hooks/exhaustive-deps
}, deps);
}
1 change: 0 additions & 1 deletion src/hooks/useDebounceCallback.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,5 @@ export default function useDebounceCallback<T extends (...args: any[]) => any>(
if (lock.current && lock.current + delay > now) return;
lock.current = now;
return callback(...args);
// eslint-disable-next-line react-hooks/exhaustive-deps
}, deps);
}
1 change: 0 additions & 1 deletion src/hooks/useInterval.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@ const useInterval = (callback: () => void, delay?: number | null, deps?: Depende
return () => clearInterval(interval);
}
return undefined;
// eslint-disable-next-line react-hooks/exhaustive-deps
}, [delay, ...(deps || [])]);
};

Expand Down
5 changes: 3 additions & 2 deletions src/page-components/Monitor/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ export default function SentryDemo() {
Throw error reporting to Sentry
</button>
View Results:{' '}
<a target="_blank" href="https://sentry.io/">
<a target="_blank" href="https://sentry.io/" rel="noreferrer">
here
</a>
</div>
Expand All @@ -32,7 +32,8 @@ export default function SentryDemo() {
View Results:{' '}
<a
target="_blank"
href="https://console.firebase.google.com/?utm_source=firebase.google.com&utm_medium=referral">
href="https://console.firebase.google.com/?utm_source=firebase.google.com&utm_medium=referral"
rel="noreferrer">
here
</a>
</div>
Expand Down
Loading