eslint-config-xo-typescript
Advanced tools
Comparing version 0.26.0 to 0.27.0
38
index.js
@@ -43,2 +43,3 @@ 'use strict'; | ||
{ | ||
extendDefaults: false, | ||
types: { | ||
@@ -75,8 +76,16 @@ String: { | ||
// TODO: Enforce `undefined` over `null` here too? | ||
// TODO: Try to enable this in 2021. | ||
// null: { | ||
// message: 'Use `undefined` instead. See: https://github.com/sindresorhus/meta/issues/7', | ||
// fixWith: 'undefined' | ||
// } | ||
Omit: 'Prefer the `Except` type in the `type-fest` package instead as it\'s stricter.', | ||
Omit: 'Prefer the `Except` type in the `type-fest` package instead as it\'s stricter.' | ||
} | ||
} | ||
], | ||
'@typescript-eslint/class-literal-property-style': [ | ||
'error', | ||
'getters' | ||
], | ||
'brace-style': 'off', | ||
@@ -118,9 +127,10 @@ '@typescript-eslint/brace-style': [ | ||
'@typescript-eslint/explicit-function-return-type': [ | ||
'error', | ||
{ | ||
allowExpressions: true, | ||
allowTypedFunctionExpressions: true | ||
} | ||
], | ||
// Disabled because it's too annoying. Enable it when it's more mature, smarter, and more flexible. | ||
// '@typescript-eslint/explicit-function-return-type': [ | ||
// 'error', | ||
// { | ||
// allowExpressions: true, | ||
// allowTypedFunctionExpressions: true | ||
// } | ||
// ], | ||
@@ -221,2 +231,3 @@ // Disabled for now as it has too many false-positives. | ||
// ], | ||
'@typescript-eslint/no-base-to-string': 'error', | ||
'no-array-constructor': 'off', | ||
@@ -327,2 +338,5 @@ '@typescript-eslint/no-array-constructor': 'error', | ||
'@typescript-eslint/no-unnecessary-type-assertion': 'error', | ||
'@typescript-eslint/no-unsafe-call': 'error', | ||
'@typescript-eslint/no-unsafe-member-access': 'error', | ||
'@typescript-eslint/no-unsafe-return': 'error', | ||
'no-unused-expressions': 'off', | ||
@@ -357,2 +371,8 @@ '@typescript-eslint/no-unused-expressions': 'error', | ||
'@typescript-eslint/prefer-readonly': 'error', | ||
'@typescript-eslint/prefer-readonly-parameter-types': [ | ||
'error', | ||
{ | ||
checkParameterProperties: true | ||
} | ||
], | ||
'@typescript-eslint/prefer-string-starts-ends-with': 'error', | ||
@@ -359,0 +379,0 @@ '@typescript-eslint/promise-function-async': [ |
{ | ||
"name": "eslint-config-xo-typescript", | ||
"version": "0.26.0", | ||
"version": "0.27.0", | ||
"description": "ESLint shareable config for TypeScript to be used with eslint-config-xo", | ||
@@ -47,11 +47,11 @@ "license": "MIT", | ||
"devDependencies": { | ||
"@typescript-eslint/eslint-plugin": "^2.19.0", | ||
"@typescript-eslint/parser": "^2.19.0", | ||
"@typescript-eslint/eslint-plugin": "^2.25.0", | ||
"@typescript-eslint/parser": "^2.25.0", | ||
"ava": "^2.4.0", | ||
"eslint": "^6.8.0", | ||
"temp-write": "^4.0.0", | ||
"typescript": "^3.7.5" | ||
"typescript": "^3.8.3" | ||
}, | ||
"peerDependencies": { | ||
"@typescript-eslint/eslint-plugin": ">=2.19.0", | ||
"@typescript-eslint/eslint-plugin": ">=2.25.0", | ||
"eslint": ">=6.6.0", | ||
@@ -58,0 +58,0 @@ "typescript": ">=3.5.3" |
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
16925
437