eslint-config-xo
Advanced tools
Comparing version 0.39.0 to 0.40.0
@@ -9,3 +9,3 @@ 'use strict'; | ||
node: false, | ||
browser: true | ||
browser: true, | ||
}, | ||
@@ -15,5 +15,5 @@ rules: { | ||
'error', | ||
...confusingBrowserGlobals | ||
] | ||
} | ||
...confusingBrowserGlobals, | ||
], | ||
}, | ||
}; |
244
index.js
@@ -8,8 +8,8 @@ 'use strict'; | ||
ecmaFeatures: { | ||
jsx: true | ||
} | ||
jsx: true, | ||
}, | ||
}, | ||
env: { | ||
es2021: true, | ||
node: true | ||
node: true, | ||
}, | ||
@@ -20,3 +20,3 @@ reportUnusedDisableDirectives: true, | ||
'error', | ||
'always-multiline' | ||
'always-multiline', | ||
], | ||
@@ -40,4 +40,4 @@ 'for-direction': 'error', | ||
{ | ||
allowEmptyCatch: true | ||
} | ||
allowEmptyCatch: true, | ||
}, | ||
], | ||
@@ -77,4 +77,4 @@ 'no-ex-assign': 'error', | ||
{ | ||
enforceForOrderingRelations: true | ||
} | ||
enforceForOrderingRelations: true, | ||
}, | ||
], | ||
@@ -84,4 +84,4 @@ 'no-unsafe-optional-chaining': [ | ||
{ | ||
disallowArithmeticOperators: true | ||
} | ||
disallowArithmeticOperators: true, | ||
}, | ||
], | ||
@@ -93,4 +93,4 @@ 'no-useless-backreference': 'error', | ||
{ | ||
requireStringLiterals: false | ||
} | ||
requireStringLiterals: false, | ||
}, | ||
], | ||
@@ -101,4 +101,4 @@ 'no-unexpected-multiline': 'error', | ||
{ | ||
enforceForClassMembers: true | ||
} | ||
enforceForClassMembers: true, | ||
}, | ||
], | ||
@@ -108,4 +108,4 @@ 'array-callback-return': [ | ||
{ | ||
allowImplicit: true | ||
} | ||
allowImplicit: true, | ||
}, | ||
], | ||
@@ -117,7 +117,6 @@ 'block-scoped-var': 'error', | ||
'default-case-last': 'error', | ||
'default-param-last': 'error', | ||
'dot-notation': 'error', | ||
'dot-location': [ | ||
'error', | ||
'property' | ||
'property', | ||
], | ||
@@ -127,3 +126,3 @@ eqeqeq: 'error', | ||
'error', | ||
'getBeforeSet' | ||
'getBeforeSet', | ||
], | ||
@@ -138,4 +137,4 @@ 'guard-for-in': 'error', | ||
{ | ||
allowElseIf: false | ||
} | ||
allowElseIf: false, | ||
}, | ||
], | ||
@@ -169,3 +168,3 @@ 'no-empty-pattern': 'error', | ||
'error', | ||
'always' | ||
'always', | ||
], | ||
@@ -177,4 +176,4 @@ 'no-return-await': 'error', | ||
{ | ||
props: true | ||
} | ||
props: true, | ||
}, | ||
], | ||
@@ -188,4 +187,4 @@ 'no-self-compare': 'error', | ||
{ | ||
enforceForJSX: true | ||
} | ||
enforceForJSX: true, | ||
}, | ||
], | ||
@@ -208,4 +207,4 @@ 'no-unused-labels': 'error', | ||
{ | ||
allowEmptyReject: true | ||
} | ||
allowEmptyReject: true, | ||
}, | ||
], | ||
@@ -225,4 +224,4 @@ 'prefer-regex-literals': 'error', | ||
{ | ||
functionPrototypeMethods: true | ||
} | ||
functionPrototypeMethods: true, | ||
}, | ||
], | ||
@@ -234,3 +233,3 @@ yoda: 'error', | ||
'error', | ||
'event' | ||
'event', | ||
], | ||
@@ -242,4 +241,4 @@ 'no-shadow-restricted-names': 'error', | ||
{ | ||
typeof: true | ||
} | ||
typeof: true, | ||
}, | ||
], | ||
@@ -254,4 +253,4 @@ 'no-unused-vars': [ | ||
caughtErrors: 'all', | ||
caughtErrorsIgnorePattern: /^_$/.source | ||
} | ||
caughtErrorsIgnorePattern: /^_$/.source, | ||
}, | ||
], | ||
@@ -267,15 +266,15 @@ 'no-buffer-constructor': 'error', | ||
'querystring', | ||
'colors' | ||
'colors', | ||
], | ||
'array-bracket-newline': [ | ||
'error', | ||
'consistent' | ||
'consistent', | ||
], | ||
'array-bracket-spacing': [ | ||
'error', | ||
'never' | ||
'never', | ||
], | ||
'array-element-newline': [ | ||
'error', | ||
'consistent' | ||
'consistent', | ||
], | ||
@@ -286,4 +285,4 @@ 'brace-style': [ | ||
{ | ||
allowSingleLine: false | ||
} | ||
allowSingleLine: false, | ||
}, | ||
], | ||
@@ -293,4 +292,4 @@ camelcase: [ | ||
{ | ||
properties: 'always' | ||
} | ||
properties: 'always', | ||
}, | ||
], | ||
@@ -305,4 +304,4 @@ 'capitalized-comments': [ | ||
ignoreInlineComments: true, | ||
ignoreConsecutiveComments: true | ||
} | ||
ignoreConsecutiveComments: true, | ||
}, | ||
], | ||
@@ -313,8 +312,8 @@ 'comma-spacing': [ | ||
before: false, | ||
after: true | ||
} | ||
after: true, | ||
}, | ||
], | ||
'comma-style': [ | ||
'error', | ||
'last' | ||
'last', | ||
], | ||
@@ -325,4 +324,4 @@ 'computed-property-spacing': [ | ||
{ | ||
enforceForClassMembers: true | ||
} | ||
enforceForClassMembers: true, | ||
}, | ||
], | ||
@@ -332,3 +331,3 @@ 'eol-last': 'error', | ||
'error', | ||
'never' | ||
'never', | ||
], | ||
@@ -338,12 +337,12 @@ 'func-name-matching': [ | ||
{ | ||
considerPropertyDescriptor: true | ||
} | ||
considerPropertyDescriptor: true, | ||
}, | ||
], | ||
'func-names': [ | ||
'error', | ||
'never' | ||
'never', | ||
], | ||
'function-call-argument-newline': [ | ||
'error', | ||
'consistent' | ||
'consistent', | ||
], | ||
@@ -354,4 +353,4 @@ indent: [ | ||
{ | ||
SwitchCase: 1 | ||
} | ||
SwitchCase: 1, | ||
}, | ||
], | ||
@@ -363,4 +362,4 @@ 'jsx-quotes': 'error', | ||
beforeColon: false, | ||
afterColon: true | ||
} | ||
afterColon: true, | ||
}, | ||
], | ||
@@ -370,3 +369,3 @@ 'keyword-spacing': 'error', | ||
process.platform === 'win32' ? 'off' : 'error', | ||
'unix' | ||
'unix', | ||
], | ||
@@ -379,4 +378,4 @@ 'lines-between-class-members': [ | ||
// TODO: Get ESLint to add an option to ignore class fields. | ||
exceptAfterSingleLine: true | ||
} | ||
exceptAfterSingleLine: true, | ||
}, | ||
], | ||
@@ -386,3 +385,3 @@ 'max-depth': 'warn', | ||
'warn', | ||
4 | ||
4, | ||
], | ||
@@ -392,4 +391,4 @@ 'max-params': [ | ||
{ | ||
max: 4 | ||
} | ||
max: 4, | ||
}, | ||
], | ||
@@ -401,4 +400,4 @@ 'max-statements-per-line': 'error', | ||
newIsCap: true, | ||
capIsNew: true | ||
} | ||
capIsNew: true, | ||
}, | ||
], | ||
@@ -415,4 +414,4 @@ 'new-parens': 'error', | ||
{ | ||
max: 1 | ||
} | ||
max: 1, | ||
}, | ||
], | ||
@@ -426,3 +425,3 @@ 'no-negated-condition': 'error', | ||
'error', | ||
'never' | ||
'never', | ||
], | ||
@@ -433,3 +432,3 @@ // Disabled because of https://github.com/xojs/eslint-config-xo/issues/27 | ||
'error', | ||
'never' | ||
'never', | ||
], | ||
@@ -439,7 +438,7 @@ 'one-var-declaration-per-line': 'error', | ||
'error', | ||
'always' | ||
'always', | ||
], | ||
'operator-linebreak': [ | ||
'error', | ||
'before' | ||
'before', | ||
], | ||
@@ -450,4 +449,4 @@ 'padded-blocks': [ | ||
{ | ||
allowSingleLineBlocks: false | ||
} | ||
allowSingleLineBlocks: false, | ||
}, | ||
], | ||
@@ -459,4 +458,4 @@ 'padding-line-between-statements': [ | ||
prev: 'multiline-block-like', | ||
next: '*' | ||
} | ||
next: '*', | ||
}, | ||
], | ||
@@ -467,7 +466,7 @@ 'prefer-exponentiation-operator': 'error', | ||
'error', | ||
'as-needed' | ||
'as-needed', | ||
], | ||
quotes: [ | ||
'error', | ||
'single' | ||
'single', | ||
], | ||
@@ -478,16 +477,16 @@ 'semi-spacing': [ | ||
before: false, | ||
after: true | ||
} | ||
after: true, | ||
}, | ||
], | ||
'semi-style': [ | ||
'error', | ||
'last' | ||
'last', | ||
], | ||
semi: [ | ||
'error', | ||
'always' | ||
'always', | ||
], | ||
'space-before-blocks': [ | ||
'error', | ||
'always' | ||
'always', | ||
], | ||
@@ -499,8 +498,8 @@ 'space-before-function-paren': [ | ||
named: 'never', | ||
asyncArrow: 'always' | ||
} | ||
asyncArrow: 'always', | ||
}, | ||
], | ||
'space-in-parens': [ | ||
'error', | ||
'never' | ||
'never', | ||
], | ||
@@ -517,3 +516,3 @@ 'space-infix-ops': 'error', | ||
'+', | ||
'*' | ||
'*', | ||
], | ||
@@ -523,4 +522,4 @@ markers: [ | ||
'/', | ||
'=>' | ||
] | ||
'=>', | ||
], | ||
}, | ||
@@ -531,11 +530,11 @@ block: { | ||
'+', | ||
'*' | ||
'*', | ||
], | ||
markers: [ | ||
'!', | ||
'*' | ||
'*', | ||
], | ||
balanced: true | ||
} | ||
} | ||
balanced: true, | ||
}, | ||
}, | ||
], | ||
@@ -546,12 +545,12 @@ 'switch-colon-spacing': [ | ||
after: true, | ||
before: false | ||
} | ||
before: false, | ||
}, | ||
], | ||
'template-tag-spacing': [ | ||
'error', | ||
'never' | ||
'never', | ||
], | ||
'unicode-bom': [ | ||
'error', | ||
'never' | ||
'never', | ||
], | ||
@@ -561,3 +560,3 @@ 'arrow-body-style': 'error', | ||
'error', | ||
'as-needed' | ||
'as-needed', | ||
], | ||
@@ -568,4 +567,4 @@ 'arrow-spacing': [ | ||
before: true, | ||
after: true | ||
} | ||
after: true, | ||
}, | ||
], | ||
@@ -575,3 +574,3 @@ 'constructor-super': 'error', | ||
'error', | ||
'both' | ||
'both', | ||
], | ||
@@ -586,4 +585,4 @@ 'no-class-assign': 'error', | ||
{ | ||
enforceForClassMembers: true | ||
} | ||
enforceForClassMembers: true, | ||
}, | ||
], | ||
@@ -595,3 +594,6 @@ 'no-useless-constructor': 'error', | ||
'error', | ||
'always' | ||
'always', | ||
{ | ||
avoidExplicitReturnArrows: true, | ||
}, | ||
], | ||
@@ -601,4 +603,4 @@ 'prefer-arrow-callback': [ | ||
{ | ||
allowNamedFunctions: true | ||
} | ||
allowNamedFunctions: true, | ||
}, | ||
], | ||
@@ -608,4 +610,4 @@ 'prefer-const': [ | ||
{ | ||
destructuring: 'all' | ||
} | ||
destructuring: 'all', | ||
}, | ||
], | ||
@@ -620,3 +622,3 @@ 'prefer-destructuring': [ | ||
array: false, | ||
object: true | ||
object: true, | ||
}, | ||
@@ -628,10 +630,14 @@ AssignmentExpression: { | ||
// `let foo; ({foo} = object);` | ||
object: false | ||
} | ||
object: false, | ||
}, | ||
}, | ||
{ | ||
enforceForRenamedProperties: false | ||
} | ||
enforceForRenamedProperties: false, | ||
}, | ||
], | ||
'prefer-numeric-literals': 'error', | ||
// TODO: Enable when targeting Node.js 16. | ||
// 'prefer-object-has-own': 'error', | ||
'prefer-rest-params': 'error', | ||
@@ -642,3 +648,3 @@ 'prefer-spread': 'error', | ||
'error', | ||
'never' | ||
'never', | ||
], | ||
@@ -649,5 +655,5 @@ 'symbol-description': 'error', | ||
'error', | ||
'both' | ||
] | ||
} | ||
'both', | ||
], | ||
}, | ||
}; |
{ | ||
"name": "eslint-config-xo", | ||
"version": "0.39.0", | ||
"version": "0.40.0", | ||
"description": "ESLint shareable config for XO", | ||
@@ -14,6 +14,6 @@ "license": "MIT", | ||
"engines": { | ||
"node": ">=10" | ||
"node": ">=12" | ||
}, | ||
"scripts": { | ||
"test": "ava" | ||
"test": "eslint . && ava" | ||
}, | ||
@@ -53,13 +53,12 @@ "files": [ | ||
"dependencies": { | ||
"confusing-browser-globals": "1.0.10" | ||
"confusing-browser-globals": "1.0.11" | ||
}, | ||
"devDependencies": { | ||
"ava": "^2.4.0", | ||
"eslint": "^7.20.0", | ||
"is-plain-obj": "^3.0.0", | ||
"temp-write": "^4.0.0" | ||
"eslint": "^8.6.0", | ||
"is-plain-obj": "^3.0.0" | ||
}, | ||
"peerDependencies": { | ||
"eslint": ">=7.20.0" | ||
"eslint": ">=8.6.0" | ||
} | ||
} |
@@ -38,4 +38,2 @@ # eslint-config-xo | ||
Supports parsing ES2015+, but doesn't enforce it by default. | ||
This package also exposes [`xo/browser`](browser.js) if you're in the browser: | ||
@@ -42,0 +40,0 @@ |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
16473
3
609
69
+ Addedconfusing-browser-globals@1.0.11(transitive)
- Removedconfusing-browser-globals@1.0.10(transitive)