Socket
Socket
Sign inDemoInstall

eslint-config-xo

Package Overview
Dependencies
Maintainers
2
Versions
71
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

eslint-config-xo - npm Package Compare versions

Comparing version 0.27.2 to 0.28.0

7

browser.js
'use strict';
const path = require('path');
const confusingBrowserGlobals = require('confusing-browser-globals');

@@ -9,3 +10,9 @@ module.exports = {

browser: true
},
rules: {
'no-restricted-globals': [
'error',
...confusingBrowserGlobals
]
}
};

8

esnext.js

@@ -27,4 +27,3 @@ 'use strict';

'prefer-spread': 'error',
// TODO: Enable this when targeting Node.js 8
// 'prefer-object-spread': 'error',
'prefer-object-spread': 'error',
'prefer-destructuring': [

@@ -52,6 +51,5 @@ 'error',

],
// TODO: Enable these when targeting Node.js 10
// 'no-useless-catch': 'error',
// 'prefer-named-capture-group': 'error'
'no-useless-catch': 'error',
'prefer-named-capture-group': 'error'
}
};

@@ -31,2 +31,3 @@ 'use strict';

'no-dupe-args': 'error',
'no-dupe-else-if': 'error',
'no-dupe-keys': 'error',

@@ -63,2 +64,3 @@ 'no-duplicate-case': 'error',

'no-regex-spaces': 'error',
'no-setter-return': 'error',
'no-sparse-arrays': 'error',

@@ -95,2 +97,6 @@ 'no-template-curly-in-string': 'error',

eqeqeq: 'error',
'grouped-accessor-pairs': [
'error',
'getBeforeSet'
],
'guard-for-in': 'error',

@@ -100,2 +106,3 @@ 'no-alert': 'error',

'no-case-declarations': 'error',
'no-constructor-return': 'error',
'no-else-return': [

@@ -198,5 +205,5 @@ 'error',

ignoreRestSiblings: true,
argsIgnorePattern: '^_$',
argsIgnorePattern: /^_$/.source,
caughtErrors: 'all',
caughtErrorsIgnorePattern: '^_$'
caughtErrorsIgnorePattern: /^_$/.source
}

@@ -260,4 +267,4 @@ ],

{
// You can also ignore this rule by wrapping the first word in quotes
ignorePattern: 'pragma|ignore|prettier-ignore',
// You can also ignore this rule by wrapping the first word in quotes.
ignorePattern: /pragma|ignore|prettier-ignore/.source,
ignoreInlineComments: true,

@@ -407,2 +414,3 @@ ignoreConsecutiveComments: true

],
'prefer-exponentiation-operator': 'error',
'quote-props': [

@@ -515,3 +523,8 @@ 'error',

'no-this-before-super': 'error',
'no-useless-computed-key': 'error',
'no-useless-computed-key': [
'error',
{
enforceForClassMembers: true
}
],
'no-useless-constructor': 'error',

@@ -518,0 +531,0 @@ 'no-useless-rename': 'error',

{
"name": "eslint-config-xo",
"version": "0.27.2",
"version": "0.28.0",
"description": "ESLint shareable config for XO",
"license": "MIT",
"repository": "xojs/eslint-config-xo",
"funding": "https://github.com/sponsors/sindresorhus",
"author": {

@@ -13,3 +14,3 @@ "name": "Sindre Sorhus",

"engines": {
"node": ">=8"
"node": ">=10"
},

@@ -53,5 +54,8 @@ "scripts": {

],
"dependencies": {
"confusing-browser-globals": "1.0.9"
},
"devDependencies": {
"ava": "^2.3.0",
"eslint": "^6.4.0",
"eslint": "^6.7.0",
"is-plain-obj": "^2.0.0",

@@ -61,4 +65,4 @@ "temp-write": "^4.0.0"

"peerDependencies": {
"eslint": ">=6.4.0"
"eslint": ">=6.8.0"
}
}

@@ -17,3 +17,2 @@ # eslint-config-xo [![Build Status](https://travis-ci.org/xojs/eslint-config-xo.svg?branch=master)](https://travis-ci.org/xojs/eslint-config-xo)

## Usage

@@ -58,3 +57,2 @@

## Use the XO CLI instead

@@ -78,3 +76,2 @@

## Related

@@ -85,6 +82,1 @@

- [eslint-config-xo-typescript](https://github.com/xojs/eslint-config-xo-typescript) - ESLint shareable config for TypeScript to be used with this config
## License
MIT © [Sindre Sorhus](https://sindresorhus.com)
SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc