Skip to content
This repository has been archived by the owner on Oct 4, 2023. It is now read-only.

Commit

Permalink
Update react-scripts to 4.x.x to fix terser CI issues (#428)
Browse files Browse the repository at this point in the history
* Update terser

* Upgrade and fix lints

* Fix mocks
  • Loading branch information
raymondjacobson authored May 21, 2021
1 parent 2fcddd2 commit 5599243
Show file tree
Hide file tree
Showing 110 changed files with 24,164 additions and 18,154 deletions.
28 changes: 0 additions & 28 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -91,17 +91,11 @@ jobs:
name: test
command: npm test

# Build Storybook
# - run:
# name: build-storybook
# command: npm run build:storybook

# Persist the build directory to a workspace
- persist_to_workspace:
root: ./
paths:
- node_modules
- storybook-static

build-demo:
working_directory: ~/audius-client
Expand Down Expand Up @@ -567,20 +561,6 @@ jobs:
-H "Content-Type: application/json" \
--data '{"type":"TXT","name":"'"$DNS_NAME"'","content":"\"dnslink=/ipfs/'"$CID"'\"","ttl":1,"proxied":false}'
deploy-storybook:
working_directory: ~/audius-client
docker:
- image: circleci/python:2.7-jessie
steps:
- run:
name: install-awscli
command: sudo pip install awscli
- attach_workspace:
at: ./
- run:
name: Deploy to S3
command: aws s3 sync storybook-static s3://storybook.audius.co --delete

dist-mac-staging:
working_directory: ~/audius-client
macos: # Run on osx so dmg can be created and signed.
Expand Down Expand Up @@ -695,14 +675,6 @@ workflows:
branches:
ignore: /^master$/

# Deploy storybook
# - deploy-storybook:
# requires:
# - init
# filters:
# branches:
# only: /^master$/

# Build
- build-staging:
requires:
Expand Down
22 changes: 10 additions & 12 deletions .eslintrc.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,8 @@ module.exports = {
'plugin:@typescript-eslint/recommended',
'plugin:jest/recommended',
'plugin:react/recommended',
'prettier/react',
'prettier-standard/prettier-file',
'prettier',
'prettier-standard/prettier-file'
],
globals: {
Atomics: 'readonly',
Expand All @@ -23,31 +23,29 @@ module.exports = {
ecmaVersion: 2018,
sourceType: 'module'
},
plugins: [
'react',
'react-hooks',
'@typescript-eslint',
'jest',
],
plugins: ['react', 'react-hooks', '@typescript-eslint', 'jest'],
rules: {
'@typescript-eslint/explicit-function-return-type': 'off',
'@typescript-eslint/no-non-null-assertion': 'off',
'@typescript-eslint/member-delimiter-style': 'off',
'@typescript-eslint/no-empty-interface': 'off',
'@typescript-eslint/camelcase': 'off',
'@typescript-eslint/ban-ts-ignore': 'off',
'@typescript-eslint/ban-ts-comment': 'off',
'@typescript-eslint/ban-types': 'off',
'@typescript-eslint/no-explicit-any': 'off',
'@typescript-eslint/no-use-before-define': 'off',
'@typescript-eslint/no-empty-function': 'off',
'@typescript-eslint/no-var-requires': 'off',
'@typescript-eslint/no-unused-vars': ['error', { 'args': 'none' }], // We should turn this one on soon
'@typescript-eslint/no-unused-vars': 'off', // We should turn this one on soon
'@typescript-eslint/no-this-alias': 'off',
'@typescript-eslint/explicit-module-boundary-types': 'off',

'no-use-before-define': 'off',
'camelcase': 'off',
camelcase: 'off',
'no-unused-vars': 'off',
'func-call-spacing': 'off',
'semi': ['error', 'never'],
semi: ['error', 'never'],
'no-undef': 'off',
'no-empty': 'off',
'arrow-parens': 'off',
Expand All @@ -66,4 +64,4 @@ module.exports = {
'space-before-function-paren': 'off',
'generator-star-spacing': 'off'
}
}
}
3 changes: 0 additions & 3 deletions .storybook/addons.js

This file was deleted.

73 changes: 0 additions & 73 deletions .storybook/config.js

This file was deleted.

38 changes: 0 additions & 38 deletions .storybook/manager-head.html

This file was deleted.

Loading

0 comments on commit 5599243

Please sign in to comment.