Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: use @typescript-eslint version of no-shadow/no-redeclare #6

Merged
merged 1 commit into from Oct 2, 2020
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
10 changes: 4 additions & 6 deletions index.js
Expand Up @@ -122,8 +122,6 @@ module.exports = {
'no-new-wrappers': 'error',
/** Disallow octal literals */
'no-octal': 'error',
/** Disallow variable redeclaration */
'no-redeclare': 'error',
/** Disallow assignments where both sides are exactly the same */
'no-self-assign': 'error',
/** Disallow `javascript:` urls */
Expand All @@ -140,12 +138,8 @@ module.exports = {
/**
* Variables
*/
/** Disallow variable declarations from shadowing variables declared in the outer scope */
'no-shadow': 'error',
/** Disallow identifiers from shadowing restricted names */
'no-shadow-restricted-names': 'error',
/** disallow the use of undeclared variables unless mentioned in global comments */
'no-undef': 'error',

/**
* ECMAScript 6
Expand Down Expand Up @@ -222,8 +216,12 @@ module.exports = {
'@typescript-eslint/no-non-null-assertion': 'error',
/** Disallow the use of parameter properties in class constructors */
'@typescript-eslint/no-parameter-properties': 'error',
/** Disallow variable redeclaration */
"@typescript-eslint/no-redeclare": "error",
/** Disallows invocation of require() */
'@typescript-eslint/no-require-imports': 'error',
/** Disallow variable declarations from shadowing variables declared in the outer scope */
"@typescript-eslint/no-shadow": "error",
/** Disallow aliasing this */
'@typescript-eslint/no-this-alias': 'error',
/** Warns when a namespace qualifier is unnecessary */
Expand Down