Socket
Socket
Sign inDemoInstall

@typescript-eslint/eslint-plugin

Package Overview
Dependencies
Maintainers
1
Versions
3773
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@typescript-eslint/eslint-plugin - npm Package Compare versions

Comparing version 1.4.1-alpha.4 to 1.4.1-alpha.5

4

dist/index.js
"use strict";
/**
* @fileoverview TypeScript plugin for ESLint
* @author Nicholas C. Zakas
*/
var __importDefault = (this && this.__importDefault) || function (mod) {

@@ -7,0 +3,0 @@ return (mod && mod.__esModule) ? mod : { "default": mod };

"use strict";
/**
* @fileoverview Enforces member overloads to be consecutive.
* @author Patricio Trevino
*/
var __importStar = (this && this.__importStar) || function (mod) {

@@ -7,0 +3,0 @@ if (mod && mod.__esModule) return mod;

"use strict";
/**
* @fileoverview Requires using either `T[]` or `Array<T>` for arrays.
* @author Mackie Underdown
* @author Armano <https://github.com/armano2>
*/
var __importStar = (this && this.__importStar) || function (mod) {

@@ -8,0 +3,0 @@ if (mod && mod.__esModule) return mod;

"use strict";
/**
* @fileoverview Bans “// @ts-ignore” comments from being used.
* @author Ricky Lippmann <https://github.com/ldrick>
*/
var __importStar = (this && this.__importStar) || function (mod) {

@@ -7,0 +3,0 @@ if (mod && mod.__esModule) return mod;

"use strict";
/**
* @fileoverview Enforces that types will not to be used
* @author Armano <https://github.com/armano2>
*/
var __importStar = (this && this.__importStar) || function (mod) {

@@ -7,0 +3,0 @@ if (mod && mod.__esModule) return mod;

"use strict";
/**
* @fileoverview Rule to flag non-camelcased identifiers
* @author Patricio Trevino
*/
var __importDefault = (this && this.__importDefault) || function (mod) {

@@ -7,0 +3,0 @@ return (mod && mod.__esModule) ? mod : { "default": mod };

"use strict";
/**
* @fileoverview Enforces PascalCased class and interface names.
* @author Jed Fox
* @author Armano <https://github.com/armano2>
*/
var __importStar = (this && this.__importStar) || function (mod) {

@@ -8,0 +3,0 @@ if (mod && mod.__esModule) return mod;

"use strict";
/**
* @fileoverview Enforces explicit return type for functions
* @author Scott O'Hara
*/
var __importStar = (this && this.__importStar) || function (mod) {

@@ -7,0 +3,0 @@ if (mod && mod.__esModule) return mod;

"use strict";
/**
* @fileoverview Enforces explicit accessibility modifier for class members
* @author Danny Fritz
*/
var __importStar = (this && this.__importStar) || function (mod) {

@@ -7,0 +3,0 @@ if (mod && mod.__esModule) return mod;

"use strict";
/**
* @fileoverview Enforces naming of generic type variables.
*/
var __importStar = (this && this.__importStar) || function (mod) {

@@ -6,0 +3,0 @@ if (mod && mod.__esModule) return mod;

"use strict";
/**
* @fileoverview Rule to flag non-camelcased identifiers
*
* Note this file is rather type-unsafe in its current state.

@@ -6,0 +4,0 @@ * This is due to some really funky type conversions between different node types.

"use strict";
/**
* @fileoverview Enforces interface names are prefixed with "I".
* @author Danny Fritz
*/
var __importStar = (this && this.__importStar) || function (mod) {

@@ -7,0 +3,0 @@ if (mod && mod.__esModule) return mod;

"use strict";
/**
* @fileoverview Enforces a member delimiter style in interfaces and type literals.
* @author Patricio Trevino
* @author Brad Zacher
*/
var __importStar = (this && this.__importStar) || function (mod) {

@@ -8,0 +3,0 @@ if (mod && mod.__esModule) return mod;

"use strict";
/**
* @fileoverview Enforces naming conventions for class members by visibility.
* @author Ian MacLeod
*/
var __importStar = (this && this.__importStar) || function (mod) {

@@ -7,0 +3,0 @@ if (mod && mod.__esModule) return mod;

"use strict";
/**
* @fileoverview Enforces a standard member declaration order.
* @author Patricio Trevino
*/
var __importStar = (this && this.__importStar) || function (mod) {

@@ -7,0 +3,0 @@ if (mod && mod.__esModule) return mod;

"use strict";
/**
* @fileoverview Enforces the use of `as Type` assertions instead of `<Type>` assertions.
* @author Patricio Trevino
*/
var __importStar = (this && this.__importStar) || function (mod) {

@@ -7,0 +3,0 @@ if (mod && mod.__esModule) return mod;

"use strict";
/**
* @fileoverview Disallow generic `Array` constructors
* @author Jed Fox
* @author Matt DuVall <http://www.mattduvall.com/>
*/
var __importStar = (this && this.__importStar) || function (mod) {

@@ -8,0 +3,0 @@ if (mod && mod.__esModule) return mod;

"use strict";
/**
* @fileoverview Disallows the declaration of empty interfaces.
* @author Patricio Trevino
*/
var __importStar = (this && this.__importStar) || function (mod) {

@@ -7,0 +3,0 @@ if (mod && mod.__esModule) return mod;

"use strict";
/**
* @fileoverview Enforces the any type is not used.
* @author Danny Fritz
* @author Patricio Trevino
*/
var __importStar = (this && this.__importStar) || function (mod) {

@@ -8,0 +3,0 @@ if (mod && mod.__esModule) return mod;

"use strict";
/**
* @fileoverview Forbids the use of classes as namespaces
* @author Jed Fox
*/
var __importStar = (this && this.__importStar) || function (mod) {

@@ -7,0 +3,0 @@ if (mod && mod.__esModule) return mod;

"use strict";
/**
* @fileoverview Disallow iterating over an array with a for-in loop
* @author Benjamin Lichtman
*/
var __importDefault = (this && this.__importDefault) || function (mod) {

@@ -7,0 +3,0 @@ return (mod && mod.__esModule) ? mod : { "default": mod };

"use strict";
/**
* @fileoverview Disallows explicit type declarations for inferrable types
* @author James Garbutt <https://github.com/43081j>
*/
var __importStar = (this && this.__importStar) || function (mod) {

@@ -7,0 +3,0 @@ if (mod && mod.__esModule) return mod;

"use strict";
/**
* @fileoverview Enforce valid definition of `new` and `constructor`.
* @author Armano <https://github.com/armano2>
*/
var __importStar = (this && this.__importStar) || function (mod) {

@@ -7,0 +3,0 @@ if (mod && mod.__esModule) return mod;

"use strict";
/**
* @fileoverview Disallows the use of custom TypeScript modules and namespaces.
* @author Patricio Trevino
*/
var __importStar = (this && this.__importStar) || function (mod) {

@@ -7,0 +3,0 @@ if (mod && mod.__esModule) return mod;

"use strict";
/**
* @fileoverview Disallows non-null assertions using the `!` postfix operator.
* @author Macklin Underdown
*/
var __importStar = (this && this.__importStar) || function (mod) {

@@ -7,0 +3,0 @@ if (mod && mod.__esModule) return mod;

"use strict";
/**
* @fileoverview Forbids an object literal to appear in a type assertion expression
* @author Armano <https://github.com/armano2>
*/
var __importStar = (this && this.__importStar) || function (mod) {

@@ -7,0 +3,0 @@ if (mod && mod.__esModule) return mod;

"use strict";
/**
* @fileoverview Disallows parameter properties in class constructors.
* @author Patricio Trevino
*/
var __importStar = (this && this.__importStar) || function (mod) {

@@ -7,0 +3,0 @@ if (mod && mod.__esModule) return mod;

"use strict";
/**
* @fileoverview Disallows invocation of `require()`.
* @author Kanitkorn Sujautra
*/
var __importStar = (this && this.__importStar) || function (mod) {

@@ -7,0 +3,0 @@ if (mod && mod.__esModule) return mod;

"use strict";
/**
* @fileoverview Disallow aliasing `this`
* @author Jed Fox
*/
var __importStar = (this && this.__importStar) || function (mod) {

@@ -7,0 +3,0 @@ if (mod && mod.__esModule) return mod;

"use strict";
/**
* @fileoverview Enforces triple slash references are not used.
* @author Danny Fritz
*/
var __importStar = (this && this.__importStar) || function (mod) {

@@ -7,0 +3,0 @@ if (mod && mod.__esModule) return mod;

"use strict";
/**
* @fileoverview Disallows the use of type aliases.
* @author Patricio Trevino
*/
var __importStar = (this && this.__importStar) || function (mod) {

@@ -7,0 +3,0 @@ if (mod && mod.__esModule) return mod;

"use strict";
/**
* @fileoverview Warns when a namespace qualifier is unnecessary.
* @author Benjamin Lichtman
*/
var __importDefault = (this && this.__importDefault) || function (mod) {

@@ -20,5 +16,2 @@ return (mod && mod.__esModule) ? mod : { "default": mod };

const util = __importStar(require("../util"));
//------------------------------------------------------------------------------
// Rule Definition
//------------------------------------------------------------------------------
exports.default = util.createRule({

@@ -49,5 +42,2 @@ name: 'no-unnecessary-qualifier',

const sourceCode = context.getSourceCode();
//----------------------------------------------------------------------
// Helpers
//----------------------------------------------------------------------
function tryGetAliasedSymbol(symbol, checker) {

@@ -127,5 +117,2 @@ return tsutils.isSymbolFlagSet(symbol, typescript_1.default.SymbolFlags.Alias)

}
//----------------------------------------------------------------------
// Public
//----------------------------------------------------------------------
return {

@@ -132,0 +119,0 @@ TSModuleDeclaration: enterDeclaration,

"use strict";
/**
* @fileoverview Rule to warn if a type assertion does not change the type of an expression
* @author Benjamin Lichtman
*/
var __importStar = (this && this.__importStar) || function (mod) {

@@ -7,0 +3,0 @@ if (mod && mod.__esModule) return mod;

"use strict";
/**
* @fileoverview Prevent TypeScript-specific variables being falsely marked as unused
* @author James Henry
*/
var __importDefault = (this && this.__importDefault) || function (mod) {

@@ -7,0 +3,0 @@ return (mod && mod.__esModule) ? mod : { "default": mod };

"use strict";
/**
* @fileoverview Rule to flag use of variables before they are defined
* @author Ilya Volodin
* @author Jed Fox
*/
var __importStar = (this && this.__importStar) || function (mod) {

@@ -8,0 +3,0 @@ if (mod && mod.__esModule) return mod;

"use strict";
/**
* @fileoverview Disallow unnecessary constructors
* @author Armano <https://github.com/armano2>
*/
var __importDefault = (this && this.__importDefault) || function (mod) {

@@ -7,0 +3,0 @@ return (mod && mod.__esModule) ? mod : { "default": mod };

"use strict";
/**
* @fileoverview Disallows the use of require statements except in import statements.
* @author Macklin Underdown
*/
var __importStar = (this && this.__importStar) || function (mod) {

@@ -7,0 +3,0 @@ if (mod && mod.__esModule) return mod;

"use strict";
/**
* @fileoverview Use function types instead of interfaces with call signatures
* @author Benjamin Lichtman
*/
var __importStar = (this && this.__importStar) || function (mod) {

@@ -7,0 +3,0 @@ if (mod && mod.__esModule) return mod;

"use strict";
/**
* @fileoverview Prefer an interface declaration over a type literal (type T = { ... })
* @author Armano <https://github.com/armano2>
*/
var __importStar = (this && this.__importStar) || function (mod) {

@@ -7,0 +3,0 @@ if (mod && mod.__esModule) return mod;

"use strict";
/**
* @fileoverview Enforces the use of the keyword `namespace` over `module` to declare custom TypeScript modules.
* @author Patricio Trevino
* @author Armano <https://github.com/armano2>
*/
var __importStar = (this && this.__importStar) || function (mod) {

@@ -8,0 +3,0 @@ if (mod && mod.__esModule) return mod;

"use strict";
/**
* @fileoverview Requires any function or method that returns a Promise to be marked async
* @author Josh Goldberg <https://github.com/joshuakgoldberg>
*/
var __importStar = (this && this.__importStar) || function (mod) {

@@ -7,0 +3,0 @@ if (mod && mod.__esModule) return mod;

"use strict";
/**
* @fileoverview Enforce giving `compare` argument to `Array#sort`
* @author Toru Nagashima <https://github.com/mysticatea>
*/
var __importStar = (this && this.__importStar) || function (mod) {

@@ -7,0 +3,0 @@ if (mod && mod.__esModule) return mod;

"use strict";
/**
* @fileoverview When adding two variables, operands must both be of type number or of type string.
* @author James Henry
* @author Armano <https://github.com/armano2>
*/
var __importStar = (this && this.__importStar) || function (mod) {

@@ -8,0 +3,0 @@ if (mod && mod.__esModule) return mod;

"use strict";
/**
* @fileoverview Enforces spacing around type annotations.
* @author Nicholas C. Zakas
* @author Patricio Trevino
*/
var __importStar = (this && this.__importStar) || function (mod) {

@@ -8,0 +3,0 @@ if (mod && mod.__esModule) return mod;

11

package.json
{
"name": "@typescript-eslint/eslint-plugin",
"version": "1.4.1-alpha.4+4526f27",
"version": "1.4.1-alpha.5+0635183",
"description": "TypeScript plugin for ESLint",

@@ -38,4 +38,4 @@ "keywords": [

"dependencies": {
"@typescript-eslint/parser": "1.4.1-alpha.4+4526f27",
"@typescript-eslint/typescript-estree": "1.4.1-alpha.4+4526f27",
"@typescript-eslint/parser": "1.4.1-alpha.5+0635183",
"@typescript-eslint/typescript-estree": "1.4.1-alpha.5+0635183",
"requireindex": "^1.2.0",

@@ -45,4 +45,3 @@ "tsutils": "^3.7.0"

"devDependencies": {
"eslint-docs": "^0.2.6",
"ts-node": "^8.0.1"
"eslint-docs": "^0.2.6"
},

@@ -53,3 +52,3 @@ "peerDependencies": {

},
"gitHead": "4526f27737ca4982351e2f495c1bd60cb6f1f86e"
"gitHead": "063518380215fc0b2df777080d247fe222cf258d"
}

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc