Skip to content

Commit

Permalink
get rid of no-undefined eslint rule
Browse files Browse the repository at this point in the history
  • Loading branch information
alexcjohnson committed Sep 11, 2019
1 parent 3669df6 commit 15ca0e5
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 5 deletions.
3 changes: 1 addition & 2 deletions dash-renderer/.eslintrc.json
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,6 @@
"no-sequences": ["error"],
"no-shadow": ["off"],
"no-throw-literal": ["error"],
"no-undefined": ["error"],
"no-unused-expressions": ["error"],
"no-use-before-define": ["error", "nofunc"],
"no-useless-call": ["error"],
Expand Down Expand Up @@ -147,4 +146,4 @@
"no-underscore-dangle": ["off"],
"no-useless-escape": ["off"]
}
}
}
4 changes: 2 additions & 2 deletions dash-renderer/src/persistence.js
Original file line number Diff line number Diff line change
Expand Up @@ -100,8 +100,8 @@ function keyPrefixMatch(prefix, separator) {
}

const UNDEFINED = 'U';
const _parse = val => (val === UNDEFINED ? void 0 : JSON.parse(val || null));
const _stringify = val => (val === void 0 ? UNDEFINED : JSON.stringify(val));
const _parse = val => (val === UNDEFINED ? undefined : JSON.parse(val || null));
const _stringify = val => (val === undefined ? UNDEFINED : JSON.stringify(val));

class WebStore {
constructor(backEnd) {
Expand Down
1 change: 0 additions & 1 deletion dash-renderer/tests/persistence.test.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
/* eslint-disable no-magic-numbers */
/* eslint-disable no-undefined */
/* eslint-disable no-console */
import {recordUiEdit, stores, storePrefix} from '../src/persistence';

Expand Down

0 comments on commit 15ca0e5

Please sign in to comment.