eslint-config-vtex
Advanced tools
Comparing version 15.0.2 to 15.0.3-alpha.0
{ | ||
"name": "eslint-config-vtex", | ||
"version": "15.0.2", | ||
"version": "15.0.3-alpha.0", | ||
"description": "VTEX's eslint config", | ||
@@ -45,3 +45,3 @@ "main": "index.js", | ||
"eslint-plugin-prettier": "^4.0.0", | ||
"eslint-plugin-vtex": "^2.2.1" | ||
"eslint-plugin-vtex": "^2.2.2-alpha.0" | ||
}, | ||
@@ -53,3 +53,3 @@ "peerDependencies": { | ||
}, | ||
"gitHead": "d2664e3dbdea4805d2394caefef4d37e2ef28486" | ||
"gitHead": "a5c2d7dd297222bb46ba1b0f825c783a91ddd7f2" | ||
} |
@@ -82,4 +82,4 @@ # `eslint-config-vtex` | ||
- [`@typescript-eslint` documentation](https://github.com/typescript-eslint/typescript-eslint/blob/master/packages/eslint-plugin/README.md) | ||
- [`@typescript-eslint` documentation](https://typescript-eslint.io/docs/) | ||
- [`eslint-plugin-import` documentation](https://github.com/benmosher/eslint-plugin-import) | ||
- [`eslint-plugin-prettier` documentation](https://github.com/prettier/eslint-plugin-prettier) |
@@ -48,3 +48,3 @@ const { hasPackage } = require('../lib/utils') | ||
// Prevent unused declared variables | ||
// https://github.com/typescript-eslint/typescript-eslint/blob/master/packages/eslint-plugin/docs/rules/no-unused-vars.md | ||
// https://typescript-eslint.io/rules/no-unused-vars/ | ||
'no-unused-vars': 'off', | ||
@@ -60,3 +60,3 @@ '@typescript-eslint/no-unused-vars': [ | ||
// Disallows the use of eval()-like methods | ||
// https://github.com/typescript-eslint/typescript-eslint/blob/master/packages/eslint-plugin/docs/rules/no-magic-numbers.md | ||
// https://typescript-eslint.io/rules/no-magic-numbers/ | ||
// TODO enable? maybe too much | ||
@@ -77,3 +77,3 @@ 'no-magic-numbers': 'off', | ||
// Enforce parameters with default values to be last | ||
// https://github.com/typescript-eslint/typescript-eslint/blob/master/packages/eslint-plugin/docs/rules/default-param-last.md | ||
// https://typescript-eslint.io/rules/default-param-last/ | ||
'default-param-last': 'off', | ||
@@ -83,3 +83,3 @@ '@typescript-eslint/default-param-last': 'error', | ||
// Disallow useless constructors | ||
// https://github.com/typescript-eslint/typescript-eslint/blob/master/packages/eslint-plugin/docs/rules/no-useless-constructor.md | ||
// https://typescript-eslint.io/rules/no-useless-constructor/ | ||
'no-useless-constructor': 'off', | ||
@@ -99,3 +99,3 @@ '@typescript-eslint/no-useless-constructor': 'error', | ||
// Require a consistent naming convention | ||
// https://github.com/typescript-eslint/typescript-eslint/blob/master/packages/eslint-plugin/docs/rules/naming-convention.md | ||
// https://typescript-eslint.io/rules/naming-convention/ | ||
camelcase: 'off', | ||
@@ -138,3 +138,3 @@ '@typescript-eslint/naming-convention': [ | ||
// Disallow use of variables before they are defined | ||
// https://github.com/typescript-eslint/typescript-eslint/blob/master/packages/eslint-plugin/docs/rules/no-use-before-define.md | ||
// https://typescript-eslint.io/rules/no-use-before-define/ | ||
'no-use-before-define': 'off', | ||
@@ -153,3 +153,3 @@ '@typescript-eslint/no-use-before-define': [ | ||
// Enforce explicit accessibility modifiers on class properties and methods | ||
// https://github.com/typescript-eslint/typescript-eslint/blob/master/packages/eslint-plugin/docs/rules/explicit-member-accessibility.md | ||
// https://typescript-eslint.io/rules/explicit-member-accessibility/ | ||
'@typescript-eslint/explicit-member-accessibility': [ | ||
@@ -169,7 +169,7 @@ 'error', | ||
// Enforce explicit function return type | ||
// https://github.com/typescript-eslint/typescript-eslint/blob/master/packages/eslint-plugin/docs/rules/explicit-function-return-type.md | ||
// https://typescript-eslint.io/rules/explicit-function-return-type/ | ||
'@typescript-eslint/explicit-function-return-type': 'off', | ||
// Enforce a consistent way of typing arrays | ||
// https://github.com/typescript-eslint/typescript-eslint/blob/master/packages/eslint-plugin/docs/rules/array-type.mdv | ||
// https://typescript-eslint.io/rules/array-type/v | ||
'@typescript-eslint/array-type': [ | ||
@@ -184,11 +184,11 @@ 'warn', | ||
// Enforce a consitent way to type objects | ||
// https://github.com/typescript-eslint/typescript-eslint/blob/master/packages/eslint-plugin/docs/rules/consistent-type-definitions.md | ||
// https://typescript-eslint.io/rules/consistent-type-definitions/ | ||
'@typescript-eslint/consistent-type-definitions': 'off', | ||
// Disallow non null assertions (!), comes from the recommended config | ||
// https://github.com/typescript-eslint/typescript-eslint/blob/master/packages/eslint-plugin/docs/rules/no-non-null-assertion.md | ||
// https://typescript-eslint.io/rules/no-non-null-assertion/ | ||
'@typescript-eslint/no-non-null-assertion': 'warn', | ||
// Enforce that when adding two variables, operands must both be of type number or of type string | ||
// https://github.com/typescript-eslint/typescript-eslint/blob/master/packages/eslint-plugin/docs/rules/restrict-plus-operands.md | ||
// https://typescript-eslint.io/rules/restrict-plus-operands/ | ||
'@typescript-eslint/restrict-plus-operands': [ | ||
@@ -202,11 +202,11 @@ 'error', | ||
// Enforce optional chaining over chaining AND (&&) operators | ||
// https://github.com/typescript-eslint/typescript-eslint/blob/master/packages/eslint-plugin/docs/rules/prefer-optional-chain.md | ||
// https://typescript-eslint.io/rules/prefer-optional-chain/ | ||
'@typescript-eslint/prefer-optional-chain': 'warn', | ||
// Enforce optional chaining over chaining AND (&&) operators | ||
// https://github.com/typescript-eslint/typescript-eslint/blob/master/packages/eslint-plugin/docs/rules/no-non-null-asserted-optional-chain.md | ||
// https://typescript-eslint.io/rules/no-non-null-asserted-optional-chain/ | ||
'@typescript-eslint/no-non-null-asserted-optional-chain': 'error', | ||
// Enforce nullish coalescing over short-circuiting | ||
// https://github.com/typescript-eslint/typescript-eslint/blob/master/packages/eslint-plugin/docs/rules/prefer-nullish-coalescing.md | ||
// https://typescript-eslint.io/rules/prefer-nullish-coalescing/ | ||
'@typescript-eslint/prefer-nullish-coalescing': [ | ||
@@ -221,3 +221,3 @@ 'warn', | ||
// Prefer usage of as const over literal type | ||
// https://github.com/typescript-eslint/typescript-eslint/blob/master/packages/eslint-plugin/docs/rules/prefer-as-const.md | ||
// https://typescript-eslint.io/rules/prefer-as-const/ | ||
// TODO: turn it on when 2.18.x is out | ||
@@ -227,35 +227,35 @@ // '@typescript-eslint/prefer-as-const': 'error', | ||
// Prevent unnecessary type arguments | ||
// https://github.com/typescript-eslint/typescript-eslint/blob/master/packages/eslint-plugin/docs/rules/no-unnecessary-type-arguments.md | ||
// https://typescript-eslint.io/rules/no-unnecessary-type-arguments/ | ||
'@typescript-eslint/no-unnecessary-type-arguments': 'warn', | ||
// Warns when a namespace qualifier is unnecessary | ||
// https://github.com/typescript-eslint/typescript-eslint/blob/master/packages/eslint-plugin/docs/rules/no-unnecessary-qualifier.md | ||
// https://typescript-eslint.io/rules/no-unnecessary-qualifier/ | ||
'@typescript-eslint/no-unnecessary-qualifier': 'warn', | ||
// Disallow throwing literals as exceptions | ||
// https://github.com/typescript-eslint/typescript-eslint/blob/master/packages/eslint-plugin/docs/rules/no-throw-literal.md | ||
// https://typescript-eslint.io/rules/no-throw-literal/ | ||
'@typescript-eslint/no-throw-literal': 'warn', | ||
// Disallows invocation of require() in favor of import statements | ||
// https://github.com/typescript-eslint/typescript-eslint/blob/master/packages/eslint-plugin/docs/rules/no-require-imports.md | ||
// https://typescript-eslint.io/rules/no-require-imports/ | ||
'@typescript-eslint/no-require-imports': 'warn', | ||
// Disallows the use of eval()-like methods | ||
// https://github.com/typescript-eslint/typescript-eslint/blob/master/packages/eslint-plugin/docs/rules/no-implied-eval.md | ||
// https://typescript-eslint.io/rules/no-implied-eval/ | ||
'@typescript-eslint/no-implied-eval': 'error', | ||
// Requires Array#sort calls to always provide a compareFunction | ||
// https://github.com/typescript-eslint/typescript-eslint/blob/master/packages/eslint-plugin/docs/rules/require-array-sort-compare.md | ||
// https://typescript-eslint.io/rules/require-array-sort-compare/ | ||
'@typescript-eslint/require-array-sort-compare': 'error', | ||
// Enforce explicit enum item values | ||
// https://github.com/typescript-eslint/typescript-eslint/blob/master/packages/eslint-plugin/docs/rules/prefer-enum-initializers.md | ||
// https://typescript-eslint.io/rules/prefer-enum-initializers/ | ||
'@typescript-eslint/prefer-enum-initializers': 'warn', | ||
// Explicitly defines what a module scoped method returns | ||
// https://github.com/typescript-eslint/typescript-eslint/blob/master/packages/eslint-plugin/docs/rules/explicit-module-boundary-types.md | ||
// https://typescript-eslint.io/rules/explicit-module-boundary-types/ | ||
'@typescript-eslint/explicit-module-boundary-types': 'off', | ||
// Disallow harmful bultin types | ||
// https://github.com/typescript-eslint/typescript-eslint/blob/master/packages/eslint-plugin/docs/rules/ban-types.md | ||
// https://typescript-eslint.io/rules/ban-types/ | ||
//! Commented because we use the recommended version of this rule | ||
@@ -265,3 +265,3 @@ // '@typescript-eslint/ban-types': 'off', | ||
// Disallow // @ts comments | ||
// https://github.com/typescript-eslint/typescript-eslint/blob/master/packages/eslint-plugin/docs/rules/ban-ts-comment.md | ||
// https://typescript-eslint.io/rules/ban-ts-comment/ | ||
'@typescript-eslint/ban-ts-comment': [ | ||
@@ -279,7 +279,7 @@ 'error', | ||
// Disallows unnecessary constraints on generic types | ||
// https://github.com/typescript-eslint/typescript-eslint/blob/master/packages/eslint-plugin/docs/rules/no-unnecessary-type-constraint.md | ||
// https://typescript-eslint.io/rules/no-unnecessary-type-constraint/ | ||
'@typescript-eslint/no-unnecessary-type-constraint': 'warn', | ||
// Enforces consistent usage of type imports | ||
// https://github.com/typescript-eslint/typescript-eslint/blob/master/packages/eslint-plugin/docs/rules/consistent-type-imports.md | ||
// https://typescript-eslint.io/rules/consistent-type-imports/ | ||
'@typescript-eslint/consistent-type-imports': [ | ||
@@ -286,0 +286,0 @@ 'warn', |
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
No v1
QualityPackage is not semver >=1. This means it is not stable and does not support ^ ranges.
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
51330
1
+ Addedgopd@1.0.1(transitive)
+ Addedhas-proto@1.0.3(transitive)
+ Addedis-regex@1.1.4(transitive)
+ Addedwhich-typed-array@1.1.15(transitive)
- Removedgopd@1.1.0(transitive)
- Removedhas-proto@1.1.0(transitive)
- Removedis-regex@1.2.0(transitive)
- Removedwhich-typed-array@1.1.16(transitive)