Skip to content

Commit

Permalink
[Dev Deps] update eslint, @ljharb/eslint-config, semver
Browse files Browse the repository at this point in the history
  • Loading branch information
ljharb committed Nov 14, 2017
1 parent 26656e8 commit bc7f928
Show file tree
Hide file tree
Showing 7 changed files with 137 additions and 133 deletions.
5 changes: 4 additions & 1 deletion .eslintrc
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,9 @@
"extends": "@ljharb",

"rules": {
"array-bracket-newline": 0,
"array-element-newline": 0,
"object-curly-newline": 0,
"camelcase": [0],
"complexity": [0, 10],
"dot-notation": [2, { "allowKeywords": false }],
Expand Down Expand Up @@ -41,7 +44,7 @@
"no-restricted-syntax": [2, "ContinueStatement", "DebuggerStatement", "LabeledStatement", "WithStatement"],
"no-shadow": [1],
"no-unused-vars": [1, { "vars": "all", "args": "after-used" }],
"operator-linebreak": [2, "after"],
"operator-linebreak": [2, "before"],
"quote-props": [1, "as-needed", { "keywords": true }],
"sort-keys": [0],
"spaced-comment": [0],
Expand Down
14 changes: 7 additions & 7 deletions es5-sham.js
Original file line number Diff line number Diff line change
Expand Up @@ -98,8 +98,8 @@
// check whether getOwnPropertyDescriptor works if it's given. Otherwise, shim partially.
if (Object.defineProperty) {
var getOwnPropertyDescriptorWorksOnObject = doesGetOwnPropertyDescriptorWork({});
var getOwnPropertyDescriptorWorksOnDom = typeof document === 'undefined' ||
doesGetOwnPropertyDescriptorWork(document.createElement('div'));
var getOwnPropertyDescriptorWorksOnDom = typeof document === 'undefined'
|| doesGetOwnPropertyDescriptorWork(document.createElement('div'));
if (!getOwnPropertyDescriptorWorksOnDom || !getOwnPropertyDescriptorWorksOnObject) {
var getOwnPropertyDescriptorFallback = Object.getOwnPropertyDescriptor;
}
Expand Down Expand Up @@ -200,9 +200,9 @@
// Contributed by Brandon Benvie, October, 2012
var createEmpty;
var supportsProto = !({ __proto__: null } instanceof Object);
// the following produces false positives
// in Opera Mini => not a reliable check
// Object.prototype.__proto__ === null
// the following produces false positives
// in Opera Mini => not a reliable check
// Object.prototype.__proto__ === null

// Check for document.domain and active x support
// No need to use active x approach when document.domain is not set
Expand Down Expand Up @@ -354,8 +354,8 @@
// shim partially.
if (Object.defineProperty) {
var definePropertyWorksOnObject = doesDefinePropertyWork({});
var definePropertyWorksOnDom = typeof document === 'undefined' ||
doesDefinePropertyWork(document.createElement('div'));
var definePropertyWorksOnDom = typeof document === 'undefined'
|| doesDefinePropertyWork(document.createElement('div'));
if (!definePropertyWorksOnObject || !definePropertyWorksOnDom) {
var definePropertyFallback = Object.defineProperty,
definePropertiesFallback = Object.defineProperties;
Expand Down
Loading

0 comments on commit bc7f928

Please sign in to comment.