Socket
Socket
Sign inDemoInstall

eslint-config-xo

Package Overview
Dependencies
Maintainers
3
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.19.0 to 0.20.0

8

index.js

@@ -5,3 +5,3 @@ 'use strict';

parserOptions: {
ecmaVersion: 2017,
ecmaVersion: 2018,
sourceType: 'module',

@@ -168,3 +168,3 @@ ecmaFeatures: {

'func-names': ['error', 'never'],
'function-paren-newline': ['error', 'multiline'],
'function-paren-newline': ['error', 'consistent'],
indent: ['error', 'tab', {

@@ -186,3 +186,3 @@ SwitchCase: 1,

'keyword-spacing': 'error',
'linebreak-style': ['error', 'unix'],
'linebreak-style': [(process.platform === 'win32' ? 'off' : 'error'), 'unix'],
'lines-between-class-members': ['error', 'always'],

@@ -215,3 +215,3 @@ 'max-depth': 'warn',

'object-curly-spacing': ['error', 'never'],
// Disabled because of https://github.com/sindresorhus/eslint-config-xo/issues/27
// Disabled because of https://github.com/xojs/eslint-config-xo/issues/27
// 'object-property-newline': 'error',

@@ -218,0 +218,0 @@ 'one-var': ['error', 'never'],

{
"name": "eslint-config-xo",
"version": "0.19.0",
"version": "0.20.0",
"description": "ESLint shareable config for XO",
"license": "MIT",
"repository": "sindresorhus/eslint-config-xo",
"repository": "xojs/eslint-config-xo",
"author": {

@@ -8,0 +8,0 @@ "name": "Sindre Sorhus",

@@ -1,4 +0,4 @@

# eslint-config-xo [![Build Status](https://travis-ci.org/sindresorhus/eslint-config-xo.svg?branch=master)](https://travis-ci.org/sindresorhus/eslint-config-xo)
# eslint-config-xo [![Build Status](https://travis-ci.org/xojs/eslint-config-xo.svg?branch=master)](https://travis-ci.org/xojs/eslint-config-xo)
> ESLint [shareable config](http://eslint.org/docs/developer-guide/shareable-configs.html) for [XO](https://github.com/sindresorhus/xo)
> ESLint [shareable config](https://eslint.org/docs/developer-guide/shareable-configs.html) for [XO](https://github.com/xojs/xo)

@@ -61,3 +61,3 @@ This is for advanced users. [You probably want to use XO directly.](#use-the-xo-cli-instead)

Here are some reason why you should use the [XO CLI](https://github.com/sindresorhus/xo) instead of this config:
Here are some reason why you should use the [XO CLI](https://github.com/xojs/xo) instead of this config:

@@ -67,3 +67,3 @@ - XO comes bundled with this config.

- Bundles many useful plugins, like [`eslint-plugin-unicorn`](https://github.com/sindresorhus/eslint-plugin-unicorn), [`eslint-plugin-import`](https://github.com/benmosher/eslint-plugin-import), [`eslint-plugin-ava`](https://github.com/avajs/eslint-plugin-ava), and more.
- No need to specify file paths to lint. It will lint all JS files except [commonly ignored paths](https://github.com/sindresorhus/xo#ignores).
- No need to specify file paths to lint. It will lint all JS files except [commonly ignored paths](https://github.com/xojs/xo#ignores).
- Super simple to add XO to a project: `$ xo --init`

@@ -73,3 +73,3 @@ - Specify `indent` and `semicolon` preferences easily without messing with the rule config.

- Can open all files with errors at the correct line in your editor. *(See the `--open` flag)*
- The [editor plugins](https://github.com/sindresorhus/xo#editor-plugins) are IMHO better than the ESLint ones. *(Subjective)*
- The [editor plugins](https://github.com/xojs/xo#editor-plugins) are IMHO better than the ESLint ones. *(Subjective)*

@@ -81,4 +81,4 @@ tl;dr You miss out on a lot by just using this config.

- [eslint-config-xo-space](https://github.com/sindresorhus/eslint-config-xo-space) - ESLint shareable config for XO with 2-space indent
- [eslint-config-xo-react](https://github.com/sindresorhus/eslint-config-xo-react) - ESLint shareable config for React to be used with this config
- [eslint-config-xo-space](https://github.com/xojs/eslint-config-xo-space) - ESLint shareable config for XO with 2-space indent
- [eslint-config-xo-react](https://github.com/xojs/eslint-config-xo-react) - ESLint shareable config for React to be used with this config

@@ -85,0 +85,0 @@

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