Skip to content

refactor: remove warnings by upgrading dependencies #1761

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

Draft
wants to merge 8 commits into
base: alpha
Choose a base branch
from
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
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
29 changes: 27 additions & 2 deletions .eslintrc.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,22 @@
"node": true,
"browser": true
},
"parser": "babel-eslint",
"extends": "eslint:recommended",
"parser": "@babel/eslint-parser",
"extends": ["eslint:recommended", "plugin:react/recommended"],
"settings": {
"react": {
"version": "detect"
}
},
"parserOptions": {
"requireConfigFile": false,
"babelOptions": {
"presets": ["@babel/preset-react"],
"plugins": [
[ "@babel/plugin-proposal-decorators", { "decoratorsBeforeExport": false } ],
"@babel/plugin-proposal-class-properties"
]
},
"ecmaFeatures": {
"experimentalObjectRestSpread": true,
"jsx": true
Expand All @@ -15,11 +28,23 @@
},
"plugins": ["react"],
"rules": {
"react/prop-types": 0,
"react/display-name": 0,
"react/no-unsafe": 1,
"react/jsx-no-bind": 0,
"react/jsx-no-constructed-context-values": 1,
"react/no-access-state-in-setstate": 1,
"react/void-dom-elements-no-children": 1,
"react/no-typos": 1,
"react/jsx-uses-vars": 1,
"react/jsx-uses-react": 1,
"react/no-did-mount-set-state": 1,
"react/no-did-update-set-state": 1,
"react/react-in-jsx-scope": 1,
"no-var": 2,
"no-console": 0,
"no-case-declarations": 0,
"require-await": 2,
"quotes": ["error", "single"]
}
}
8 changes: 4 additions & 4 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,17 +13,17 @@ jobs:
steps:
- uses: actions/checkout@v2
- name: Use Node.js
uses: actions/setup-node@v1
uses: actions/setup-node@v2
with:
node-version: '10.14'
node-version: '12'
- name: Cache Node.js modules
uses: actions/cache@v2
with:
path: ~/.npm
key: ${{ runner.os }}-node-${{ hashFiles('**/package-lock.json') }}
key: ${{ runner.os }}-node-${{ hashFiles('**/yarn.lock') }}
restore-keys: |
${{ runner.os }}-node-
- run: npm ci
- run: yarn install
- run: ./scripts/before_script.sh
env:
CI: true
10 changes: 5 additions & 5 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,18 +7,18 @@ jobs:
runs-on: ubuntu-18.04
steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v1
- uses: actions/setup-node@v2
with:
node-version: 12
node-version: '12'
registry-url: https://registry.npmjs.org/
- name: Cache Node.js modules
uses: actions/cache@v2
with:
path: ~/.npm
key: ${{ runner.os }}-node-${{ hashFiles('**/package-lock.json') }}
key: ${{ runner.os }}-node-${{ hashFiles('**/yarn.lock') }}
restore-keys: |
${{ runner.os }}-node-
- run: npm ci
- run: npm publish
- run: yarn install
- run: yarn publish
env:
NODE_AUTH_TOKEN: ${{secrets.NPM_TOKEN}}
Loading