23.3.0 β€’ Published 12 days ago

eslint-plugin-putout v23.3.0

Weekly downloads
1,970
License
MIT
Repository
github
Last release
12 days ago

eslint-plugin-putout NPM version Coverage Status

ESLint plugin for 🐊Putout with built-in rules from @putout/eslint-config.

Installation

npm i putout eslint eslint-plugin-putout -D

☝️If you installed eslint globally (using the -g flag) then you must also install putout and eslint-plugin-putout globally.

Usage

Add putout to the plugins section of your .eslintrc.json configuration file. You can omit the eslint-plugin- prefix:

{
    "extends": ["plugin:putout/recommended"],
    "plugins": ["putout"]
}

Then configure the rules you want to use under the rules section.

{
    "rules": {
        "putout/add-newlines-between-types-in-union": "error",
        "putout/add-newlines-between-specifiers": "error",
        "putout/add-newline-before-return": "error",
        "putout/add-newline-before-function-call": "error",
        "putout/add-newline-after-function-call": "error",
        "putout/putout": "error",
        "putout/array-element-newline": "error",
        "putout/single-property-destructuring": "error",
        "putout/multiple-properties-destructuring": "error",
        "putout/long-properties-destructuring": "error",
        "putout/destructuring-as-function-argument": "error",
        "putout/align-spaces": "error",
        "putout/keyword-spacing": "error",
        "putout/newline-function-call-arguments": "error",
        "putout/function-declaration-paren-newline": "error",
        "putout/remove-newline-after-default-import": "error",
        "putout/remove-newline-between-declarations": "error",
        "putout/remove-newline-from-empty-object": "error",
        "putout/remove-empty-newline-before-first-specifier": "error",
        "putout/remove-empty-newline-after-last-specifier": "error",
        "putout/remove-empty-newline-after-last-element": "error",
        "putout/remove-empty-newline-after-import": "error",
        "putout/remove-empty-specifiers": "error",
        "putout/objects-braces-inside-array": "error",
        "putout/object-property-newline": "error",
        "putout/tape-add-newline-between-tests": "error",
        "putout/tape-add-newline-before-assertion": "error",
        "putout/tape-remove-newline-before-t-end": "error"
    }
}

Rules

🐊 Putout

πŸ“Ό Supertape

TypeScript

ESM

Formatting

Safe mode

When using 🐊Putout in IDE with --fix on save, or when you want to disable the most dangerous rules, use:

{
    "extends": ["plugin:putout/safe"],
    "plugins": ["putout"]
}

Disabled ESLint rules:

Disabled 🐊Putout rules:

safe+align

When you want to enable ability to align spaces on empty lines, while have all benefits of safe preset: use safe+align.

jsx

When you need to support jsx in files using js extension, use:

{
    "extends": [
        "plugin:putout/jsx"
    ],
    "plugins": [
        "putout"
    ]
}

esm

If you want to use ESM plugins of 🐊Putout you need to use esm preset:

{
    "extends": [
        "plugin:putout/esm"
    ],
    "plugins": [
        "putout"
    ]
}

Flat

The time is came for a FlatConfig. To use it with eslint-plugin-putout add to eslint.config.js:

const {recommended} = require('eslint-plugin-putout/config');

module.exports = [
    ...recommended,
    {},
];

safe and safeAlign supported as well.

License

MIT

23.3.0

12 days ago

23.2.0

2 months ago

23.1.0

4 months ago

23.0.0

4 months ago

22.10.0

6 months ago

22.9.0

7 months ago

22.8.0

7 months ago

22.7.1

8 months ago

22.7.0

8 months ago

22.6.1

8 months ago

22.6.0

8 months ago

22.5.1

9 months ago

22.5.0

9 months ago

22.4.1

10 months ago

22.4.0

10 months ago

22.3.1

11 months ago

22.3.0

12 months ago

22.2.1

12 months ago

22.2.0

12 months ago

22.1.1

1 year ago

22.1.0

1 year ago

22.0.0

1 year ago

21.1.0

1 year ago

21.0.2

1 year ago

21.0.1

1 year ago

21.0.0

1 year ago

19.6.0

1 year ago

19.5.0

1 year ago

19.4.0

1 year ago

20.0.0

1 year ago

19.0.4

1 year ago

19.3.0

1 year ago

19.2.0

1 year ago

19.1.0

1 year ago

19.0.1

1 year ago

19.0.0

1 year ago

19.0.3

1 year ago

19.0.2

1 year ago

18.2.0

1 year ago

18.1.1

1 year ago

18.1.0

1 year ago

18.0.0

1 year ago

17.7.0

2 years ago

17.3.1

2 years ago

17.4.0

2 years ago

17.5.0

2 years ago

17.5.1

2 years ago

17.6.0

2 years ago

17.3.0

2 years ago

16.5.0

2 years ago

16.6.0

2 years ago

17.1.0

2 years ago

17.2.1

2 years ago

17.2.0

2 years ago

16.4.0

2 years ago

16.9.0

2 years ago

16.10.0

2 years ago

17.0.3

2 years ago

17.0.2

2 years ago

17.0.1

2 years ago

17.0.0

2 years ago

16.7.0

2 years ago

16.8.0

2 years ago

16.3.0

2 years ago

16.1.0

2 years ago

16.2.0

2 years ago

16.2.1

2 years ago

15.7.0

3 years ago

15.8.1

2 years ago

15.8.0

2 years ago

15.5.0

3 years ago

15.6.0

3 years ago

15.3.0

3 years ago

15.4.0

3 years ago

15.2.0

3 years ago

16.0.1

2 years ago

16.0.0

2 years ago

14.12.0

3 years ago

15.0.0

3 years ago

15.1.1

3 years ago

15.1.0

3 years ago

14.9.1

3 years ago

14.9.0

3 years ago

14.11.0

3 years ago

14.7.0

3 years ago

14.7.1

3 years ago

14.8.0

3 years ago

14.6.0

3 years ago

14.10.0

3 years ago

14.1.0

3 years ago

14.5.0

3 years ago

14.2.0

3 years ago

14.3.0

3 years ago

14.0.0

3 years ago

14.0.1

3 years ago

14.4.0

3 years ago

13.7.0

3 years ago

13.3.0

3 years ago

12.8.0

3 years ago

13.10.0

3 years ago

12.4.0

3 years ago

12.0.0

3 years ago

12.0.1

3 years ago

12.0.2

3 years ago

12.10.0

3 years ago

11.19.0

3 years ago

13.8.0

3 years ago

13.4.0

3 years ago

13.0.0

3 years ago

13.0.1

3 years ago

12.7.0

3 years ago

12.7.1

3 years ago

12.3.0

3 years ago

12.3.1

3 years ago

13.11.0

3 years ago

12.11.0

3 years ago

13.9.1

3 years ago

13.9.2

3 years ago

13.9.0

3 years ago

13.5.0

3 years ago

13.1.0

3 years ago

13.12.0

3 years ago

12.6.0

3 years ago

12.2.0

3 years ago

12.12.0

3 years ago

13.6.0

3 years ago

13.2.0

3 years ago

12.9.0

3 years ago

12.9.1

3 years ago

12.5.0

3 years ago

12.5.1

3 years ago

12.1.0

3 years ago

12.9.2

3 years ago

11.12.0

3 years ago

11.16.0

3 years ago

11.16.1

3 years ago

11.6.0

3 years ago

11.2.0

3 years ago

11.11.0

3 years ago

11.15.1

3 years ago

11.15.0

3 years ago

11.15.2

3 years ago

11.5.0

3 years ago

11.9.0

3 years ago

11.1.0

3 years ago

11.14.0

3 years ago

11.18.0

3 years ago

11.10.0

3 years ago

11.4.0

3 years ago

11.8.0

3 years ago

11.13.0

3 years ago

11.17.0

3 years ago

11.7.0

3 years ago

11.3.0

3 years ago

11.0.0

3 years ago

10.8.0

3 years ago

10.7.0

3 years ago

10.9.0

3 years ago

10.10.0

3 years ago

10.6.0

3 years ago

10.5.0

3 years ago

10.4.0

3 years ago

10.3.0

3 years ago

10.2.0

3 years ago

10.1.0

3 years ago

10.0.1

3 years ago

10.0.0

3 years ago

9.4.0

3 years ago

9.3.0

3 years ago

9.2.1

3 years ago

9.1.1

3 years ago

9.1.0

3 years ago

9.2.0

3 years ago

9.0.2

3 years ago

9.0.1

3 years ago

9.0.0

3 years ago

8.4.0

3 years ago

8.3.1

3 years ago

8.3.0

3 years ago

8.1.1

3 years ago

8.2.0

3 years ago

8.1.0

3 years ago

7.5.0

4 years ago

8.0.1

4 years ago

8.0.0

4 years ago

7.4.0

4 years ago

7.3.1

4 years ago

7.3.0

4 years ago

7.2.1

4 years ago

7.2.0

4 years ago

7.1.1

4 years ago

7.1.0

4 years ago

7.0.2

4 years ago

7.0.1

4 years ago

7.0.0

4 years ago

6.13.1

4 years ago

6.13.0

4 years ago

6.12.0

4 years ago

6.11.1

4 years ago

6.11.0

4 years ago

6.10.0

4 years ago

6.9.0

4 years ago

6.8.1

4 years ago

6.8.0

4 years ago

6.7.7

4 years ago

6.7.6

4 years ago

6.7.5

4 years ago

6.7.4

4 years ago

6.7.2

4 years ago

6.7.3

4 years ago

6.7.1

4 years ago

6.7.0

4 years ago

6.6.1

4 years ago

6.6.0

4 years ago

6.5.1

4 years ago

6.5.0

4 years ago

6.4.0

4 years ago

6.3.1

4 years ago

6.3.0

4 years ago

6.2.0

4 years ago

6.1.2

4 years ago

6.1.1

4 years ago

6.1.0

4 years ago

6.0.1

4 years ago

6.0.0

4 years ago

5.2.0

4 years ago

5.1.1

4 years ago

5.1.0

4 years ago

5.0.2

4 years ago

5.0.1

5 years ago

5.0.0

5 years ago

4.1.0

5 years ago

4.0.2

5 years ago

4.0.1

5 years ago

4.0.0

5 years ago

3.7.1

5 years ago

3.7.0

5 years ago

3.6.0

5 years ago

3.5.0

5 years ago

3.4.0

5 years ago

3.3.1

5 years ago

3.3.0

5 years ago

3.2.1

5 years ago

3.2.0

5 years ago

3.1.1

5 years ago

3.1.0

5 years ago

3.0.0

5 years ago

2.0.1

5 years ago

2.0.0

5 years ago

1.10.0

5 years ago

1.9.3

5 years ago

1.9.2

5 years ago

1.9.1

5 years ago

1.9.0

5 years ago

1.8.1

5 years ago

1.8.0

5 years ago

1.7.0

5 years ago

1.6.0

5 years ago

1.5.0

6 years ago

1.4.4

6 years ago

1.4.3

6 years ago

1.4.2

6 years ago

1.4.1

6 years ago

1.4.0

6 years ago

1.3.2

6 years ago

1.3.1

6 years ago

1.3.0

6 years ago

1.2.2

6 years ago

1.2.1

6 years ago

1.2.0

6 years ago

1.1.0

6 years ago

1.0.3

6 years ago

1.0.2

6 years ago

1.0.1

6 years ago

1.0.0

6 years ago