2.0.0 • Published 2 months ago

eslint-plugin-no-implicit-any v2.0.0

Weekly downloads
-
License
MIT
Repository
github
Last release
2 months ago

CI

eslint-plugin-no-implicit-any

typescript-eslint plugin for noImplicitAny.

Installation

npm install --save-dev eslint-plugin-no-implicit-any

Setup

  1. Add no-implicit-any to your list of plugins in your ESLint config.
{
  "plugins": ["no-implicit-any"]
}
  1. Add 'no-implicit-any/no-implicit-any' to your list of rules in your ESLint config.
{
  "rules": { "no-implicit-any/no-implicit-any": "error" }
}

Rule detail

no-implicit-any/no-implicit-any

Disallow no implict any usage. Automatically fixable by the --fix CLI option.

Examples of incorrect code for this rule:

function foo(arg) {}

const foo = (...args) => {};

const foo = { key: (arg) => {} };

const foo = {};
foo['key'];

Examples of correct code for this rule:

function foo(arg: any) {}

const foo = (...args: any[]) => {};

const foo = { key: (arg: any) => {} };

const foo = {};

(foo as any)['key'];

More examples here:

License

MIT

1.6.3

2 months ago

2.0.0

2 months ago

1.6.2

3 months ago

1.6.1

3 months ago

1.6.0

3 months ago

1.4.1

3 months ago

1.4.0

3 months ago

1.5.1

3 months ago

1.5.0

3 months ago

1.3.2

3 months ago

1.3.1

3 months ago

1.3.0

3 months ago

1.2.0

3 months ago

1.1.1

3 months ago

1.1.0

3 months ago

1.0.2

3 months ago

1.0.1

3 months ago

1.0.5

3 months ago

1.0.4

3 months ago

1.0.3

3 months ago

1.0.0

3 months ago

0.1.21

3 months ago

0.1.20

3 months ago

0.1.18

3 months ago

0.1.19

3 months ago

0.1.17

3 months ago

0.1.16

3 months ago

0.1.15

3 months ago

0.1.12

4 months ago

0.1.13

4 months ago

0.1.14

4 months ago

0.1.11

4 months ago

0.1.10

4 months ago

0.1.9

4 months ago

0.1.8

4 months ago

0.1.7

4 months ago

0.1.6

4 months ago

0.1.5

4 months ago

0.1.4

5 months ago

0.1.0

5 months ago

0.1.2

5 months ago

0.1.1

5 months ago

0.1.3

5 months ago

0.0.12

6 months ago

0.0.13

5 months ago

0.0.14

5 months ago

0.0.11

6 months ago

0.0.10

6 months ago

0.0.9

6 months ago

0.0.8

7 months ago

0.0.7

7 months ago

0.0.6

7 months ago

0.0.5

7 months ago

0.0.4

7 months ago

0.0.3

7 months ago

0.0.2

7 months ago

0.0.1

7 months ago