eslint-plugin-no-implicit-any-function-args 1.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +21 -0
- package/README.md +40 -0
- package/index.d.ts +11 -0
- package/index.d.ts.map +1 -0
- package/index.js +65 -0
- package/index.js.map +1 -0
- package/index.spec.d.ts +2 -0
- package/index.spec.d.ts.map +1 -0
- package/index.spec.js +54 -0
- package/index.spec.js.map +1 -0
- package/package.json +38 -0
package/LICENSE
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
The MIT License (MIT)
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2020
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
in the Software without restriction, including without limitation the rights
|
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
furnished to do so, subject to the following conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
|
13
|
+
copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
+
SOFTWARE.
|
package/README.md
ADDED
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
# eslint-plugin-deprecation
|
|
2
|
+
|
|
3
|
+
> An [ESLint](https://eslint.org/) rule that reports function arguments of type any.
|
|
4
|
+
|
|
5
|
+
## Install
|
|
6
|
+
|
|
7
|
+
```sh
|
|
8
|
+
npm install --save-dev eslint-plugin-no-implicit-any-function-args
|
|
9
|
+
```
|
|
10
|
+
|
|
11
|
+
## Setup
|
|
12
|
+
|
|
13
|
+
```json
|
|
14
|
+
{
|
|
15
|
+
"plugins": [
|
|
16
|
+
"no-implicit-any-function-args",
|
|
17
|
+
],
|
|
18
|
+
"rules": {
|
|
19
|
+
"no-implicit-any-function-args/no-implicit-any-function-args": "error",
|
|
20
|
+
},
|
|
21
|
+
}
|
|
22
|
+
```
|
|
23
|
+
|
|
24
|
+
or
|
|
25
|
+
|
|
26
|
+
```json
|
|
27
|
+
{
|
|
28
|
+
"plugins": [
|
|
29
|
+
"no-implicit-any-function-args",
|
|
30
|
+
],
|
|
31
|
+
"rules": {
|
|
32
|
+
"no-implicit-any-function-args/no-implicit-any-function-args": [
|
|
33
|
+
"error",
|
|
34
|
+
{
|
|
35
|
+
ignorePattern: '^_'
|
|
36
|
+
}
|
|
37
|
+
]
|
|
38
|
+
},
|
|
39
|
+
}
|
|
40
|
+
```
|
package/index.d.ts
ADDED
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { ESLintUtils } from '@typescript-eslint/utils';
|
|
2
|
+
export type Options = [
|
|
3
|
+
{
|
|
4
|
+
ignorePattern?: string;
|
|
5
|
+
}
|
|
6
|
+
];
|
|
7
|
+
export type MessageIds = 'noImplicitAnyArg';
|
|
8
|
+
export declare const rules: {
|
|
9
|
+
'no-implicit-any-function-args': ESLintUtils.RuleModule<"noImplicitAnyArg", Options, ESLintUtils.RuleListener>;
|
|
10
|
+
};
|
|
11
|
+
//# sourceMappingURL=index.d.ts.map
|
package/index.d.ts.map
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,MAAM,0BAA0B,CAAC;AAOvD,MAAM,MAAM,OAAO,GAAG;IACpB;QACE,aAAa,CAAC,EAAE,MAAM,CAAC;KACxB;CACF,CAAC;AACF,MAAM,MAAM,UAAU,GAAG,kBAAkB,CAAC;AAE5C,eAAO,MAAM,KAAK;;CAiEjB,CAAC"}
|
package/index.js
ADDED
|
@@ -0,0 +1,65 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.rules = void 0;
|
|
4
|
+
const utils_1 = require("@typescript-eslint/utils");
|
|
5
|
+
const typescript_1 = require("typescript");
|
|
6
|
+
const createRule = utils_1.ESLintUtils.RuleCreator(() => 'https://github.com/fast-facts/eslint-plugin-no-implicit-any-function-args');
|
|
7
|
+
exports.rules = {
|
|
8
|
+
'no-implicit-any-function-args': createRule({
|
|
9
|
+
name: 'no-implicit-any-function-args',
|
|
10
|
+
meta: {
|
|
11
|
+
type: 'problem',
|
|
12
|
+
docs: {
|
|
13
|
+
description: 'No implicit any for a function argument is allowed.',
|
|
14
|
+
requiresTypeChecking: true
|
|
15
|
+
},
|
|
16
|
+
messages: {
|
|
17
|
+
noImplicitAnyArg: 'Argument \'{{ name }}\' requires a type'
|
|
18
|
+
},
|
|
19
|
+
schema: [{
|
|
20
|
+
type: 'object',
|
|
21
|
+
properties: {
|
|
22
|
+
ignorePattern: {
|
|
23
|
+
type: 'string'
|
|
24
|
+
}
|
|
25
|
+
}
|
|
26
|
+
}]
|
|
27
|
+
},
|
|
28
|
+
defaultOptions: [{}],
|
|
29
|
+
create: (context, [options]) => {
|
|
30
|
+
if (!context.parserServices ||
|
|
31
|
+
!context.parserServices.program ||
|
|
32
|
+
!context.parserServices.esTreeNodeToTSNodeMap) {
|
|
33
|
+
throw new Error('You have used a rule which requires parserServices to be generated. You must therefore provide a value for the "parserOptions.project" property for @typescript-eslint/parser.');
|
|
34
|
+
}
|
|
35
|
+
const ignoreRegex = options.ignorePattern ? new RegExp(options.ignorePattern) : undefined;
|
|
36
|
+
const service = context.parserServices;
|
|
37
|
+
const typeChecker = service.program.getTypeChecker();
|
|
38
|
+
function functionTest(node) {
|
|
39
|
+
for (const param of node.params) {
|
|
40
|
+
if (!param.typeAnnotation && !param.right) {
|
|
41
|
+
const typescriptParam = context.parserServices.esTreeNodeToTSNodeMap.get(param);
|
|
42
|
+
const type = typeChecker.getTypeAtLocation(typescriptParam);
|
|
43
|
+
if ((type.flags & typescript_1.TypeFlags.Any) === 0)
|
|
44
|
+
continue;
|
|
45
|
+
if (ignoreRegex === null || ignoreRegex === void 0 ? void 0 : ignoreRegex.test(param.name))
|
|
46
|
+
continue;
|
|
47
|
+
context.report({
|
|
48
|
+
node: param,
|
|
49
|
+
messageId: 'noImplicitAnyArg',
|
|
50
|
+
data: {
|
|
51
|
+
name: param.name
|
|
52
|
+
}
|
|
53
|
+
});
|
|
54
|
+
}
|
|
55
|
+
}
|
|
56
|
+
}
|
|
57
|
+
return {
|
|
58
|
+
FunctionDeclaration: functionTest,
|
|
59
|
+
FunctionExpression: functionTest,
|
|
60
|
+
ArrowFunctionExpression: functionTest
|
|
61
|
+
};
|
|
62
|
+
}
|
|
63
|
+
})
|
|
64
|
+
};
|
|
65
|
+
//# sourceMappingURL=index.js.map
|
package/index.js.map
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";;;AAAA,oDAAuD;AACvD,2CAAuC;AAEvC,MAAM,UAAU,GAAG,mBAAW,CAAC,WAAW,CACxC,GAAG,EAAE,CAAC,2EAA2E,CAClF,CAAC;AASW,QAAA,KAAK,GAAG;IACnB,+BAA+B,EAAE,UAAU,CAAsB;QAC/D,IAAI,EAAE,+BAA+B;QACrC,IAAI,EAAE;YACJ,IAAI,EAAE,SAAS;YAC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IAAI,WAAW,aAAX,WAAW,uBAAX,WAAW,CAAE,IAAI,CAAC,KAAK,CAAC,IAAI,CAAC;4BAAE,SAAS;wBAE5C,OAAO,CAAC,MAAM,CAAC;4BACb,IAAI,EAAE,KAAK;4BACX,SAAS,EAAE,kBAAkB;4BAC7B,IAAI,EAAE;gCACJ,IAAI,EAAE,KAAK,CAAC,IAAI;6BACjB;yBACF,CAAC,CAAC;qBACJ;iBACF;YACH,CAAC;YAED,OAAO;gBACL,mBAAmB,EAAE,YAAY;gBACjC,kBAAkB,EAAE,YAAY;gBAChC,uBAAuB,EAAE,YAAY;aACtC,CAAC;QACJ,CAAC;KACF,CAAC;CACH,CAAC","sourcesContent":["import { ESLintUtils } from '@typescript-eslint/utils';\nimport { TypeFlags } from 'typescript';\n\nconst createRule = ESLintUtils.RuleCreator(\n () => 'https://github.com/fast-facts/eslint-plugin-no-implicit-any-function-args'\n);\n\nexport type Options = [\n {\n ignorePattern?: string,\n }\n];\nexport type MessageIds = 'noImplicitAnyArg';\n\nexport const rules = {\n 'no-implicit-any-function-args': createRule<Options, MessageIds>({\n name: 'no-implicit-any-function-args',\n meta: {\n type: 'problem',\n docs: {\n description: 'No implicit any for a function argument is allowed.',\n requiresTypeChecking: true\n },\n messages: {\n noImplicitAnyArg: 'Argument \\'{{ name }}\\' requires a type'\n },\n schema: [{\n type: 'object',\n properties: {\n ignorePattern: {\n type: 'string'\n }\n }\n }]\n },\n defaultOptions: [{}],\n create: (context, [options]) => {\n if (\n !context.parserServices ||\n !context.parserServices.program ||\n !context.parserServices.esTreeNodeToTSNodeMap\n ) {\n throw new Error(\n 'You have used a rule which requires parserServices to be generated. You must therefore provide a value for the \"parserOptions.project\" property for @typescript-eslint/parser.'\n );\n }\n\n const ignoreRegex = options.ignorePattern ? new RegExp(options.ignorePattern) : undefined;\n\n const service = context.parserServices;\n const typeChecker = service.program.getTypeChecker();\n\n function functionTest(node: any) {\n for (const param of node.params) {\n if (!param.typeAnnotation && !param.right) {\n const typescriptParam = context.parserServices!.esTreeNodeToTSNodeMap.get(param);\n const type = typeChecker.getTypeAtLocation(typescriptParam);\n\n if ((type.flags & TypeFlags.Any) === 0) continue;\n if (ignoreRegex?.test(param.name)) continue;\n\n context.report({\n node: param,\n messageId: 'noImplicitAnyArg',\n data: {\n name: param.name\n }\n });\n }\n }\n }\n\n return {\n FunctionDeclaration: functionTest,\n FunctionExpression: functionTest,\n ArrowFunctionExpression: functionTest\n };\n }\n })\n};"]}
|
package/index.spec.d.ts
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.spec.d.ts","sourceRoot":"","sources":["../src/index.spec.ts"],"names":[],"mappings":""}
|
package/index.spec.js
ADDED
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
const tslib_1 = require("tslib");
|
|
4
|
+
const rule_tester_1 = require("@typescript-eslint/rule-tester");
|
|
5
|
+
const _1 = require(".");
|
|
6
|
+
const path = tslib_1.__importStar(require("path"));
|
|
7
|
+
const ruleTester = new rule_tester_1.RuleTester({
|
|
8
|
+
parser: require.resolve('@typescript-eslint/parser'),
|
|
9
|
+
parserOptions: {
|
|
10
|
+
ecmaVersion: 2018,
|
|
11
|
+
sourceType: 'module',
|
|
12
|
+
tsconfigRootDir: path.resolve(__dirname, '..'),
|
|
13
|
+
project: './tsconfig.spec.json'
|
|
14
|
+
}
|
|
15
|
+
});
|
|
16
|
+
ruleTester.run('no-implicit-any-function-args', _1.rules['no-implicit-any-function-args'], {
|
|
17
|
+
valid: [
|
|
18
|
+
getValidTestCase('const f = (a:number, b:number) => null'),
|
|
19
|
+
getValidTestCase('const f = (a:number, b = 0) => null'),
|
|
20
|
+
getValidTestCase('function f(a:number, b:number) {}'),
|
|
21
|
+
getValidTestCase('function f(a:number, b = 0) {}'),
|
|
22
|
+
getValidTestCase('(a:number, b:number) => null'),
|
|
23
|
+
getValidTestCase('(a:number, b = 0) => null'),
|
|
24
|
+
getValidTestCase('const f: (a:number, b = 0) => null = (a, b) => null'),
|
|
25
|
+
getValidTestCase('function f(a: number, b: (b: number) => null) { }; f(1, b => null)'),
|
|
26
|
+
// getValidTestCase('const f: (a:number, b: any) => null = (a, b) => null'), // Try and figure this out later
|
|
27
|
+
getInvalidTestCase('_ => null', [{ ignorePattern: '^_' }]),
|
|
28
|
+
],
|
|
29
|
+
invalid: [
|
|
30
|
+
getInvalidTestCase('const f = (a:number, b) => null'),
|
|
31
|
+
getInvalidTestCase('const f = (a:number, b) => null'),
|
|
32
|
+
getInvalidTestCase('function f(a:number, b) {}'),
|
|
33
|
+
getInvalidTestCase('function f(a:number, b) {}'),
|
|
34
|
+
getInvalidTestCase('(a:number, b) => null'),
|
|
35
|
+
getInvalidTestCase('(a:number, b) => null'),
|
|
36
|
+
getInvalidTestCase('_ => null'),
|
|
37
|
+
]
|
|
38
|
+
});
|
|
39
|
+
function getValidTestCase(code, options) {
|
|
40
|
+
return {
|
|
41
|
+
code,
|
|
42
|
+
options: options || [{}],
|
|
43
|
+
filename: 'src/fixtures/file.ts'
|
|
44
|
+
};
|
|
45
|
+
}
|
|
46
|
+
function getInvalidTestCase(code, options) {
|
|
47
|
+
return {
|
|
48
|
+
code,
|
|
49
|
+
options: options || [{}],
|
|
50
|
+
errors: [{ messageId: 'noImplicitAnyArg' }],
|
|
51
|
+
filename: 'src/fixtures/file.ts'
|
|
52
|
+
};
|
|
53
|
+
}
|
|
54
|
+
//# sourceMappingURL=index.spec.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.spec.js","sourceRoot":"","sources":["../src/index.spec.ts"],"names":[],"mappings":";;;AAAA,gEAA4D;AAE5D,wBAA+C;AAC/C,mDAA6B;AAE7B,MAAM,UAAU,GAAG,IAAI,wBAAU,CAAC;IAChC,MAAM,EAAE,OAAO,CAAC,OAAO,CAAC,2BAA2B,CAAC;IACpD,aAAa,EAAE;QACb,WAAW,EA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,EAAE,kBAAkB,EAAE,CAAC;QAC3C,QAAQ,EAAE,sBAAsB;KACjC,CAAC;AACJ,CAAC","sourcesContent":["import { RuleTester } from '@typescript-eslint/rule-tester';\nimport { TSESLint } from '@typescript-eslint/utils';\nimport { rules, Options, MessageIds } from '.';\nimport * as path from 'path';\n\nconst ruleTester = new RuleTester({\n parser: require.resolve('@typescript-eslint/parser'),\n parserOptions: {\n ecmaVersion: 2018,\n sourceType: 'module',\n tsconfigRootDir: path.resolve(__dirname, '..'),\n project: './tsconfig.spec.json'\n }\n});\n\nruleTester.run('no-implicit-any-function-args', rules['no-implicit-any-function-args'], {\n valid: [\n getValidTestCase('const f = (a:number, b:number) => null'),\n getValidTestCase('const f = (a:number, b = 0) => null'),\n getValidTestCase('function f(a:number, b:number) {}'),\n getValidTestCase('function f(a:number, b = 0) {}'),\n getValidTestCase('(a:number, b:number) => null'),\n getValidTestCase('(a:number, b = 0) => null'),\n getValidTestCase('const f: (a:number, b = 0) => null = (a, b) => null'),\n getValidTestCase('function f(a: number, b: (b: number) => null) { }; f(1, b => null)'),\n // getValidTestCase('const f: (a:number, b: any) => null = (a, b) => null'), // Try and figure this out later\n getInvalidTestCase('_ => null', [{ ignorePattern: '^_' }]),\n ],\n\n invalid: [\n getInvalidTestCase('const f = (a:number, b) => null'),\n getInvalidTestCase('const f = (a:number, b) => null'),\n getInvalidTestCase('function f(a:number, b) {}'),\n getInvalidTestCase('function f(a:number, b) {}'),\n getInvalidTestCase('(a:number, b) => null'),\n getInvalidTestCase('(a:number, b) => null'),\n getInvalidTestCase('_ => null'),\n ]\n});\n\nfunction getValidTestCase(code: string, options?: Options): TSESLint.ValidTestCase<Options> {\n return {\n code,\n options: options || [{}],\n filename: 'src/fixtures/file.ts'\n };\n}\n\nfunction getInvalidTestCase(code: string, options?: Options): TSESLint.InvalidTestCase<MessageIds, Options> {\n return {\n code,\n options: options || [{}],\n errors: [{ messageId: 'noImplicitAnyArg' }],\n filename: 'src/fixtures/file.ts'\n };\n}\n"]}
|
package/package.json
ADDED
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "eslint-plugin-no-implicit-any-function-args",
|
|
3
|
+
"version": "1.1.0",
|
|
4
|
+
"description": "",
|
|
5
|
+
"main": "index.js",
|
|
6
|
+
"scripts": {
|
|
7
|
+
"clean": "rimraf dist",
|
|
8
|
+
"lint": "eslint . --ext .ts",
|
|
9
|
+
"prebuild": "npm run clean",
|
|
10
|
+
"build": "tsc",
|
|
11
|
+
"postbuild": "npm run copy:files",
|
|
12
|
+
"copy:files": "copyfiles package.json README.md LICENSE dist",
|
|
13
|
+
"test": "jest"
|
|
14
|
+
},
|
|
15
|
+
"keywords": [],
|
|
16
|
+
"author": "",
|
|
17
|
+
"license": "ISC",
|
|
18
|
+
"dependencies": {
|
|
19
|
+
"@typescript-eslint/utils": "^6.7.3"
|
|
20
|
+
},
|
|
21
|
+
"peerDependencies": {
|
|
22
|
+
"typescript": "^4.2.4 || ^5.0.0"
|
|
23
|
+
},
|
|
24
|
+
"devDependencies": {
|
|
25
|
+
"@types/jest": "^29.5.5",
|
|
26
|
+
"@types/node": "^20.7.1",
|
|
27
|
+
"@typescript-eslint/eslint-plugin": "^6.7.3",
|
|
28
|
+
"@typescript-eslint/parser": "^6.7.3",
|
|
29
|
+
"@typescript-eslint/rule-tester": "^6.7.3",
|
|
30
|
+
"copyfiles": "^2.4.1",
|
|
31
|
+
"eslint": "^8.50.0",
|
|
32
|
+
"eslint-plugin-deprecation": "^2.0.0",
|
|
33
|
+
"jest": "^29.7.0",
|
|
34
|
+
"rimraf": "^5.0.5",
|
|
35
|
+
"ts-api-utils": "^1.0.3",
|
|
36
|
+
"ts-jest": "^29.1.1"
|
|
37
|
+
}
|
|
38
|
+
}
|