From b3869b97f77e45548016a899c72c9ae60d3bfcd3 Mon Sep 17 00:00:00 2001 From: David Joy Date: Thu, 10 Oct 2019 14:16:25 -0400 Subject: [PATCH] fix: remove unnecessary environment variable (#292) * fix: remove unnecessary environment variable * fix: bumping version of frontend-base for csrf env var change * fix: get IDE linting to work again --- .env | 1 - .env.development | 1 - .env.test | 1 - .eslintrc.js | 3 +++ package-lock.json | 6 +++--- package.json | 2 +- 6 files changed, 7 insertions(+), 7 deletions(-) create mode 100644 .eslintrc.js diff --git a/.env b/.env index 267dce9..8fb0195 100644 --- a/.env +++ b/.env @@ -2,7 +2,6 @@ NODE_ENV=null ACCESS_TOKEN_COOKIE_NAME=null BASE_URL=null CREDENTIALS_BASE_URL=null -CSRF_COOKIE_NAME=null CSRF_TOKEN_API_PATH=null ECOMMERCE_BASE_URL=null LANGUAGE_PREFERENCE_COOKIE_NAME=null diff --git a/.env.development b/.env.development index d677619..d71fda3 100644 --- a/.env.development +++ b/.env.development @@ -3,7 +3,6 @@ PORT=1995 ACCESS_TOKEN_COOKIE_NAME='edx-jwt-cookie-header-payload' BASE_URL='localhost:1995' CREDENTIALS_BASE_URL='http://localhost:18150' -CSRF_COOKIE_NAME='csrftoken' CSRF_TOKEN_API_PATH='/csrf/api/v1/token' ECOMMERCE_BASE_URL='http://localhost:18130' LANGUAGE_PREFERENCE_COOKIE_NAME='openedx-language-preference' diff --git a/.env.test b/.env.test index c4c08ec..867fc1d 100644 --- a/.env.test +++ b/.env.test @@ -1,7 +1,6 @@ ACCESS_TOKEN_COOKIE_NAME='edx-jwt-cookie-header-payload' BASE_URL='localhost:1995' CREDENTIALS_BASE_URL='http://localhost:18150' -CSRF_COOKIE_NAME='csrftoken' CSRF_TOKEN_API_PATH='/csrf/api/v1/token' ECOMMERCE_BASE_URL='http://localhost:18130' LANGUAGE_PREFERENCE_COOKIE_NAME='openedx-language-preference' diff --git a/.eslintrc.js b/.eslintrc.js new file mode 100644 index 0000000..0e87381 --- /dev/null +++ b/.eslintrc.js @@ -0,0 +1,3 @@ +const { createConfig } = require('@edx/frontend-build'); + +module.exports = createConfig('eslint'); \ No newline at end of file diff --git a/package-lock.json b/package-lock.json index a0773ef..2ec0edf 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1029,9 +1029,9 @@ } }, "@edx/frontend-base": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/@edx/frontend-base/-/frontend-base-4.0.0.tgz", - "integrity": "sha512-hG31VY3omshWtogzC0Fk+lT06UP2SiOw12GEoPymywv4TeOc/oigugPceDsRkkQ5heivAvhFoYRtCmCQKnXRrg==", + "version": "4.0.1", + "resolved": "https://registry.npmjs.org/@edx/frontend-base/-/frontend-base-4.0.1.tgz", + "integrity": "sha512-IEyrorssh3uwRqXYmr7UFVtiz5MtpmnmysA9faCvi2KL4QVP+S9LQYv/48AFmTzNF3gqhO8kRT69YsawX4bdiA==", "requires": { "babel-polyfill": "6.26.0", "history": "4.9.0", diff --git a/package.json b/package.json index dd5e080..934cd71 100755 --- a/package.json +++ b/package.json @@ -43,7 +43,7 @@ "dependencies": { "@edx/frontend-analytics": "3.0.0", "@edx/frontend-auth": "7.0.1", - "@edx/frontend-base": "4.0.0", + "@edx/frontend-base": "4.0.1", "@edx/frontend-component-footer": "9.0.0", "@edx/frontend-component-header": "1.1.4", "@edx/frontend-i18n": "3.0.2",