eslint-config-xo
Advanced tools
Comparing version 0.26.0 to 0.27.0
@@ -50,7 +50,7 @@ 'use strict'; | ||
} | ||
] | ||
// TODO: Enable this when targeting Node.js 10 | ||
// 'no-useless-catch': 'error' | ||
], | ||
// TODO: Enable these when targeting Node.js 10 | ||
// 'no-useless-catch': 'error', | ||
// 'prefer-named-capture-group': 'error' | ||
} | ||
}; |
57
index.js
@@ -5,3 +5,3 @@ 'use strict'; | ||
parserOptions: { | ||
ecmaVersion: 2019, | ||
ecmaVersion: 2020, | ||
sourceType: 'module', | ||
@@ -16,2 +16,3 @@ ecmaFeatures: { | ||
}, | ||
reportUnusedDisableDirectives: true, | ||
rules: { | ||
@@ -44,8 +45,14 @@ 'comma-dangle': [ | ||
// Disabled because of https://github.com/eslint/eslint/issues/6028 | ||
// 'no-extra-parens': [2, 'all', { | ||
// nestedBinaryExpressions: false, | ||
// ignoreJSX: 'multi-line' | ||
// }], | ||
// 'no-extra-parens': [ | ||
// 'error', | ||
// 'all', | ||
// { | ||
// conditionalAssign: false, | ||
// nestedBinaryExpressions: false, | ||
// ignoreJSX: 'multi-line' | ||
// } | ||
// ], | ||
'no-extra-semi': 'error', | ||
'no-func-assign': 'error', | ||
'no-import-assign': 'error', | ||
'no-inner-declarations': 'error', | ||
@@ -72,3 +79,8 @@ 'no-invalid-regexp': 'error', | ||
'no-unexpected-multiline': 'error', | ||
'accessor-pairs': 'error', | ||
'accessor-pairs': [ | ||
'error', | ||
{ | ||
enforceForClassMembers: true | ||
} | ||
], | ||
'array-callback-return': 'error', | ||
@@ -79,2 +91,3 @@ 'block-scoped-var': 'error', | ||
'default-case': 'error', | ||
'default-param-last': 'error', | ||
'dot-notation': 'error', | ||
@@ -90,3 +103,2 @@ 'dot-location': [ | ||
'no-case-declarations': 'error', | ||
'no-div-regex': 'error', | ||
'no-else-return': [ | ||
@@ -153,2 +165,3 @@ 'error', | ||
], | ||
'prefer-regex-literals': 'error', | ||
radix: 'error', | ||
@@ -186,8 +199,10 @@ | ||
{ | ||
vars: 'all', | ||
args: 'after-used', | ||
ignoreRestSiblings: true, | ||
argsIgnorePattern: '^_$' | ||
argsIgnorePattern: '^_$', | ||
caughtErrors: 'all', | ||
caughtErrorsIgnorePattern: '^_$' | ||
} | ||
], | ||
// Disabled because of https://github.com/eslint/eslint/issues/3420 | ||
// 'callback-return': ['warn', ['cb', 'callback', 'next', 'done']], | ||
'handle-callback-err': 'warn', | ||
@@ -268,3 +283,6 @@ 'no-buffer-constructor': 'error', | ||
'error', | ||
'never' | ||
'never', | ||
{ | ||
enforceForClassMembers: true | ||
} | ||
], | ||
@@ -286,2 +304,6 @@ 'eol-last': 'error', | ||
], | ||
'function-call-argument-newline': [ | ||
'error', | ||
'consistent' | ||
], | ||
indent: [ | ||
@@ -372,3 +394,6 @@ 'error', | ||
'error', | ||
'never' | ||
'never', | ||
{ | ||
allowSingleLineBlocks: false | ||
} | ||
], | ||
@@ -503,12 +528,4 @@ 'padding-line-between-statements': [ | ||
'both' | ||
], | ||
'valid-jsdoc': [ | ||
'warn', | ||
{ | ||
requireReturn: false, | ||
requireParamDescription: true, | ||
requireReturnDescription: true | ||
} | ||
] | ||
} | ||
}; |
{ | ||
"name": "eslint-config-xo", | ||
"version": "0.26.0", | ||
"version": "0.27.0", | ||
"description": "ESLint shareable config for XO", | ||
@@ -13,3 +13,3 @@ "license": "MIT", | ||
"engines": { | ||
"node": ">=6" | ||
"node": ">=8" | ||
}, | ||
@@ -54,10 +54,10 @@ "scripts": { | ||
"devDependencies": { | ||
"ava": "^1.0.1", | ||
"eslint": "^5.11.1", | ||
"is-plain-obj": "^1.0.0", | ||
"temp-write": "^3.1.0" | ||
"ava": "^2.3.0", | ||
"eslint": "^6.4.0", | ||
"is-plain-obj": "^2.0.0", | ||
"temp-write": "^4.0.0" | ||
}, | ||
"peerDependencies": { | ||
"eslint": ">=5.11.1" | ||
"eslint": ">=6.4.0" | ||
} | ||
} |
@@ -9,2 +9,3 @@ # eslint-config-xo [![Build Status](https://travis-ci.org/xojs/eslint-config-xo.svg?branch=master)](https://travis-ci.org/xojs/eslint-config-xo) | ||
**Use the [XO issue tracker](https://github.com/xojs/xo/issues) instead of this one.** | ||
@@ -81,2 +82,3 @@ ## Install | ||
- [eslint-config-xo-react](https://github.com/xojs/eslint-config-xo-react) - ESLint shareable config for React to be used with this config | ||
- [eslint-config-xo-typescript](https://github.com/xojs/eslint-config-xo-typescript) - ESLint shareable config for TypeScript to be used with this config | ||
@@ -83,0 +85,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
15673
578
87