eslint-config-xo
Advanced tools
Comparing version 0.4.0 to 0.5.0
'use strict'; | ||
var def = require('./'); | ||
def.parser = 'babel-eslint'; | ||
def.plugins = ['babel']; | ||
def.ecmaFeatures = { | ||
@@ -32,3 +36,2 @@ arrowFunctions: true, | ||
def.rules['no-var'] = 2; | ||
def.rules['object-shorthand'] = [2, 'always']; | ||
def.rules['prefer-arrow-callback'] = 2; | ||
@@ -39,3 +42,11 @@ def.rules['prefer-const'] = 2; | ||
def.rules['prefer-spread'] = 2; | ||
def.rules['babel/object-shorthand'] = [2, 'always']; | ||
def.rules['babel/generator-star-spacing'] = def.rules['generator-star-spacing']; | ||
def.rules['babel/arrow-parens'] = def.rules['arrow-parens']; | ||
def.rules['babel/object-curly-spacing'] = def.rules['object-curly-spacing']; | ||
def.rules['object-shorthand'] = 0; | ||
def.rules['generator-star-spacing'] = 0; | ||
def.rules['arrow-parens'] = 0; | ||
def.rules['object-curly-spacing'] = 0; | ||
module.exports = def; |
@@ -84,2 +84,3 @@ 'use strict'; | ||
'no-useless-call': 2, | ||
'no-useless-concat': 2, | ||
'no-void': 2, | ||
@@ -153,3 +154,3 @@ 'no-warning-comments': 1, | ||
'padded-blocks': [2, 'never'], | ||
'quote-props': [2, 'consistent'], | ||
'quote-props': [2, 'consistent-as-needed', {keywords: true}], | ||
'quotes': [2, 'single'], | ||
@@ -156,0 +157,0 @@ 'semi-spacing': [2, {before: false, after: true}], |
{ | ||
"name": "eslint-config-xo", | ||
"version": "0.4.0", | ||
"version": "0.5.0", | ||
"description": "ESLint shareable config for XO", | ||
@@ -16,3 +16,3 @@ "license": "MIT", | ||
"scripts": { | ||
"test": "node test/test.js" | ||
"test": "ava" | ||
}, | ||
@@ -53,11 +53,13 @@ "files": [ | ||
"devDependencies": { | ||
"ava": "0.0.4", | ||
"ava": "*", | ||
"clear-require": "^1.0.1", | ||
"eslint": "^1.2.1", | ||
"eslint": "^1.3.0", | ||
"is-plain-obj": "^1.0.0", | ||
"temp-write": "^1.1.2" | ||
"temp-write": "^1.1.2", | ||
"babel-eslint": "^4.1.0", | ||
"eslint-plugin-babel": "^2.1.1" | ||
}, | ||
"peerDependencies": { | ||
"eslint": ">=1.2.1" | ||
"eslint": ">=1.3.0" | ||
} | ||
} |
@@ -14,3 +14,11 @@ # eslint-config-xo [![Build Status](https://travis-ci.org/sindresorhus/eslint-config-xo.svg?branch=master)](https://travis-ci.org/sindresorhus/eslint-config-xo) | ||
For the `esnext` version you'll also need Babel's ESLint [parser](https://github.com/babel/babel-eslint) and [plugin](https://github.com/babel/eslint-plugin-babel): | ||
``` | ||
$ npm install --save-dev babel-eslint eslint-plugin-babel | ||
``` | ||
This will let you use ES2016 features like [`async`/`await`](https://github.com/lukehoban/ecmascript-asyncawait) and [decorators](https://github.com/wycats/javascript-decorators). For a full list of features see [Babel's experimental features](https://babeljs.io/docs/usage/experimental/) and their [Learn ES2015](https://babeljs.io/docs/learn-es2015/). | ||
## Usage | ||
@@ -37,3 +45,3 @@ | ||
This package also exposes [`xo/esnext`](esnext.js) if you want ES2015 support and rules: | ||
This package also exposes [`xo/esnext`](esnext.js) if you want ES2015+ support and rules: | ||
@@ -40,0 +48,0 @@ ```json |
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
10205
214
70
7