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

Commit

Permalink
Merge pull request #75 from AudiusProject/nkang--cleanup
Browse files Browse the repository at this point in the history
Cleanup: use SDK instead of GA for tracks and collections; install eslint/prettier; do not log to console in prod; general fixes C-2099
  • Loading branch information
nicoback2 authored Feb 10, 2023
2 parents 1a9df08 + d4e9b83 commit 46b39b0
Show file tree
Hide file tree
Showing 33 changed files with 24,444 additions and 10,155 deletions.
1 change: 1 addition & 0 deletions .env.dev
Original file line number Diff line number Diff line change
Expand Up @@ -3,3 +3,4 @@ PREACT_APP_AUDIUS_SCHEME=http
PREACT_APP_AMPLITUDE_KEY_PROD=86760558b8bb1b3aae61656efd4ddacb
PREACT_APP_AMPLITUDE_KEY_STAGE=72a58ce4ad1f9bafcba0b92bedb6c33d
PREACT_APP_AMPLITUDE_API_PROXY=metrics.audius.co
PREACT_APP_ENVIRONMENT=development
1 change: 1 addition & 0 deletions .env.local
Original file line number Diff line number Diff line change
@@ -1 +1,2 @@
PREACT_APP_HOST_PREFIX=/
PREACT_APP_SHOW_ERROR_LOGS=true
3 changes: 2 additions & 1 deletion .env.prod
Original file line number Diff line number Diff line change
Expand Up @@ -5,4 +5,5 @@ PREACT_APP_HOST_PREFIX=/embed
PREACT_APP_AMPLITUDE_KEY=86760558b8bb1b3aae61656efd4ddacb
PREACT_APP_AMPLITUDE_API_PROXY=gain.audius.co
PREACT_APP_HOSTNAME=audius.co
PREACT_APP_HOSTNAME_REDIRECT=redirect.audius.co
PREACT_APP_HOSTNAME_REDIRECT=redirect.audius.co
PREACT_APP_ENVIRONMENT=production
3 changes: 2 additions & 1 deletion .env.stage
Original file line number Diff line number Diff line change
Expand Up @@ -5,4 +5,5 @@ PREACT_APP_HOST_PREFIX=/embed
PREACT_APP_AMPLITUDE_KEY=72a58ce4ad1f9bafcba0b92bedb6c33d
PREACT_APP_AMPLITUDE_API_PROXY=gain.audius.co
PREACT_APP_HOSTNAME=staging.audius.co
PREACT_APP_HOSTNAME_REDIRECT=redirect.staging.audius.co
PREACT_APP_HOSTNAME_REDIRECT=redirect.staging.audius.co
PREACT_APP_ENVIRONMENT=staging
15 changes: 15 additions & 0 deletions .eslintrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
{
"parser": "@babel/eslint-parser",
"parserOptions": {
"requireConfigFile": false,
"ecmaFeatures": {
"jsx": true
}
},
"extends": ["preact", "standard-jsx"],
"plugins": ["prettier"],
"rules": {
"prettier/prettier": "error",
"space-before-function-paren": "off"
}
}
5 changes: 5 additions & 0 deletions .prettierrc.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
module.exports = {
...require('prettier-config-standard'),
bracketSameLine: false,
jsxSingleQuote: true
}
Loading

0 comments on commit 46b39b0

Please sign in to comment.