eslint-config-xo
Advanced tools
Comparing version 0.27.2 to 0.28.0
'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 | ||
] | ||
} | ||
}; |
@@ -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' | ||
} | ||
}; |
23
index.js
@@ -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) |
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
16247
600
2
79
+ Addedconfusing-browser-globals@1.0.9(transitive)