Skip to content

Commit a3513b8

Browse files
authored
Merge pull request #288 from onflow/as/linting-and-multiple-error-fix
Fix excessive errors and enable linting
2 parents f94463c + 3829082 commit a3513b8

File tree

6 files changed

+5465
-3953
lines changed

6 files changed

+5465
-3953
lines changed

.eslintrc

Lines changed: 8 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -1,31 +1,22 @@
11
{
2-
"parser": "babel-eslint",
2+
"parser": "@babel/eslint-parser",
33
"extends": [
4-
"react-app",
5-
"prettier",
6-
"prettier/react",
7-
"prettier/standard",
8-
"prettier/@typescript-eslint",
4+
"eslint:recommended",
5+
"plugin:react/recommended",
6+
"plugin:react-hooks/recommended",
97
"plugin:jsx-a11y/recommended"
108
],
11-
"plugins": ["prettier", "react", "jsx-a11y", "cypress", "graphql"],
12-
"parserOptions": {
13-
"ecmaVersion": 7,
14-
"sourceType": "module",
15-
"ecmaFeatures": {
16-
"jsx": true
17-
}
18-
},
9+
"plugins": ["react", "jsx-a11y"],
1910
"env": {
2011
"browser": true,
2112
"node": true,
2213
"jest": true,
2314
"webextensions": true,
24-
"es6": true,
25-
"cypress/globals": true
15+
"es6": true
2616
},
2717
"globals": {
28-
"Raven": true
18+
"Raven": true,
19+
"globalThis": true
2920
},
3021
"rules": {
3122
"no-undef": 2,
@@ -35,7 +26,6 @@
3526
"ignoreRestSiblings": true
3627
}
3728
],
38-
"prettier/prettier": 2,
3929
"react/button-has-type": 2,
4030
"react/default-props-match-prop-types": 2,
4131
"react/no-access-state-in-setstate": 2,
@@ -81,7 +71,6 @@
8171
"parser": "@typescript-eslint/parser",
8272
"plugins": ["@typescript-eslint"],
8373
"rules": {
84-
"prettier/prettier": 1,
8574
"no-undef": 0,
8675
"no-unused-vars": 0,
8776
"@typescript-eslint/no-unused-vars": 2,

.github/workflows/ci.yml

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,17 @@ name: Continuous Integration
33
on:
44
push:
55

6+
env:
7+
PLAYGROUND_API: ''
8+
AVATAAR_URL: ''
9+
GA_TRACKING_CODE: ''
10+
MIXPANEL_TOKEN: ''
11+
DEFAULT_SEO_IMAGE: ''
12+
SENTRY_DSN: ''
13+
614
jobs:
715
test:
8-
name: "Tests"
16+
name: 'Tests'
917
runs-on: ubuntu-latest
1018
strategy:
1119
matrix:

0 commit comments

Comments
 (0)