Commit b8c3a0d
committed
docs(putout) example of correct/incorrect code
1 parent ee1b246 commit b8c3a0d
117 files changed
Lines changed: 461 additions & 461 deletions
File tree
- codemods
- apply-filter-boolean
- apply-replace-all
- convert-any-to-primitive
- convert-pascal-to-camel
- cut-legacy
- cut-useless-functions
- madrun
- packages
- engine-processor/test/fixture
- eslint-plugin-putout/lib
- function-declaration-paren-newline
- remove-empty-newline-after-last-element
- remove-empty-newline-after-last-specifier
- remove-newline-after-default-import
- tape-remove-newline-before-t-end
- plugin-add-return-await
- plugin-apply-array-at
- plugin-apply-await-import
- plugin-apply-destructuring
- plugin-apply-early-return
- plugin-apply-if-condition
- plugin-apply-is-array
- plugin-apply-montag
- plugin-apply-nullish-coalescing
- plugin-apply-numeric-separators
- plugin-apply-optional-chaining
- plugin-apply-shorthand-properties
- plugin-apply-try-catch
- plugin-cloudcmd
- plugin-convert-apply-to-spread
- plugin-convert-arguments-to-rest
- plugin-convert-array-copy-to-slice
- plugin-convert-assignment-to-arrow-function
- plugin-convert-assignment-to-comparison
- plugin-convert-bitwise-to-logical
- plugin-convert-commonjs-to-esm
- plugin-convert-comparison-to-boolean
- plugin-convert-concat-to-flat
- plugin-convert-equal-to-strict-equal
- plugin-convert-esm-to-commonjs
- plugin-convert-for-each-to-for-of
- plugin-convert-for-in-to-for-of
- plugin-convert-for-to-for-of
- plugin-convert-index-of-to-includes
- plugin-convert-is-nan-to-number-is-nan
- plugin-convert-map-to-for-of
- plugin-convert-math-pow
- plugin-convert-mock-require-to-mock-import
- plugin-convert-object-assign-to-merge-spread
- plugin-convert-quotes-to-backticks
- plugin-convert-spread-to-array-from
- plugin-convert-template-to-string
- plugin-convert-throw
- plugin-convert-to-arrow-function
- plugin-convert-typeof-to-is-type
- plugin-declare-undefined-variables
- plugin-eslint
- plugin-extract-object-properties
- plugin-extract-sequence-expressions
- plugin-jest
- plugin-madrun
- plugin-merge-destructuring-properties
- plugin-merge-duplicate-imports
- plugin-merge-if-statements
- plugin-nodejs
- plugin-package-json
- plugin-postcss
- plugin-promises
- plugin-putout-config
- plugin-putout
- plugin-regexp
- plugin-remove-boolean-from-assertions
- plugin-remove-boolean-from-logical-expressions
- plugin-remove-console
- plugin-remove-constant-conditions
- plugin-remove-debugger
- plugin-remove-double-negations
- plugin-remove-duplicate-case
- plugin-remove-duplicate-keys
- plugin-remove-duplicates-from-logical-expressions
- plugin-remove-empty
- plugin-remove-iife
- plugin-remove-nested-blocks
- plugin-remove-unreachable-code
- plugin-remove-unreferenced-variables
- plugin-remove-unused-expressions
- plugin-remove-unused-for-of-variables
- plugin-remove-unused-variables
- plugin-remove-useless-arguments
- plugin-remove-useless-array-constructor
- plugin-remove-useless-array-entries
- plugin-remove-useless-array-from
- plugin-remove-useless-conditions
- plugin-remove-useless-constructor
- plugin-remove-useless-continue
- plugin-remove-useless-escape
- plugin-remove-useless-for-of
- plugin-remove-useless-functions
- plugin-remove-useless-map
- plugin-remove-useless-new
- plugin-remove-useless-operand
- plugin-remove-useless-return
- plugin-remove-useless-spread
- plugin-remove-useless-template-expressions
- plugin-remove-useless-templates
- plugin-remove-useless-type-conversion
- plugin-remove-useless-typeof
- plugin-remove-useless-variables
- plugin-reuse-duplicate-init
- plugin-simplify-assignment
- plugin-simplify-logical-expressions
- plugin-simplify-ternary
- plugin-split-nested-destructuring
- plugin-split-variable-declarations
- plugin-strict-mode
- plugin-tape
- plugin-typescript
- plugin-webpack
- processor-markdown/test/fixture
Some content is hidden
Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
21 | 21 | | |
22 | 22 | | |
23 | 23 | | |
24 | | - | |
| 24 | + | |
25 | 25 | | |
26 | 26 | | |
27 | 27 | | |
28 | 28 | | |
29 | 29 | | |
30 | | - | |
| 30 | + | |
31 | 31 | | |
32 | 32 | | |
33 | 33 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
23 | 23 | | |
24 | 24 | | |
25 | 25 | | |
26 | | - | |
| 26 | + | |
27 | 27 | | |
28 | 28 | | |
29 | 29 | | |
30 | 30 | | |
31 | 31 | | |
32 | | - | |
| 32 | + | |
33 | 33 | | |
34 | 34 | | |
35 | 35 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
24 | 24 | | |
25 | 25 | | |
26 | 26 | | |
27 | | - | |
| 27 | + | |
28 | 28 | | |
29 | 29 | | |
30 | 30 | | |
31 | 31 | | |
32 | 32 | | |
33 | | - | |
| 33 | + | |
34 | 34 | | |
35 | 35 | | |
36 | 36 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
11 | 11 | | |
12 | 12 | | |
13 | 13 | | |
14 | | - | |
| 14 | + | |
15 | 15 | | |
16 | 16 | | |
17 | 17 | | |
| |||
32 | 32 | | |
33 | 33 | | |
34 | 34 | | |
35 | | - | |
| 35 | + | |
36 | 36 | | |
37 | 37 | | |
38 | 38 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
11 | 11 | | |
12 | 12 | | |
13 | 13 | | |
14 | | - | |
| 14 | + | |
15 | 15 | | |
16 | 16 | | |
17 | 17 | | |
18 | 18 | | |
19 | 19 | | |
20 | | - | |
| 20 | + | |
21 | 21 | | |
22 | 22 | | |
23 | 23 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
23 | 23 | | |
24 | 24 | | |
25 | 25 | | |
26 | | - | |
| 26 | + | |
27 | 27 | | |
28 | 28 | | |
29 | 29 | | |
30 | 30 | | |
31 | 31 | | |
32 | 32 | | |
33 | 33 | | |
34 | | - | |
| 34 | + | |
35 | 35 | | |
36 | 36 | | |
37 | 37 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
27 | 27 | | |
28 | 28 | | |
29 | 29 | | |
30 | | - | |
| 30 | + | |
31 | 31 | | |
32 | 32 | | |
33 | 33 | | |
34 | 34 | | |
35 | 35 | | |
36 | 36 | | |
37 | 37 | | |
38 | | - | |
| 38 | + | |
39 | 39 | | |
40 | 40 | | |
41 | 41 | | |
| |||
45 | 45 | | |
46 | 46 | | |
47 | 47 | | |
48 | | - | |
| 48 | + | |
49 | 49 | | |
50 | 50 | | |
51 | 51 | | |
| |||
64 | 64 | | |
65 | 65 | | |
66 | 66 | | |
67 | | - | |
| 67 | + | |
68 | 68 | | |
69 | 69 | | |
70 | 70 | | |
| |||
85 | 85 | | |
86 | 86 | | |
87 | 87 | | |
88 | | - | |
| 88 | + | |
89 | 89 | | |
90 | 90 | | |
91 | 91 | | |
| |||
95 | 95 | | |
96 | 96 | | |
97 | 97 | | |
98 | | - | |
| 98 | + | |
99 | 99 | | |
100 | 100 | | |
101 | 101 | | |
| |||
Lines changed: 2 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
23 | 23 | | |
24 | 24 | | |
25 | 25 | | |
26 | | - | |
| 26 | + | |
27 | 27 | | |
28 | 28 | | |
29 | 29 | | |
30 | 30 | | |
31 | 31 | | |
32 | | - | |
| 32 | + | |
33 | 33 | | |
34 | 34 | | |
35 | 35 | | |
| |||
Lines changed: 2 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3 | 3 | | |
4 | 4 | | |
5 | 5 | | |
6 | | - | |
| 6 | + | |
7 | 7 | | |
8 | 8 | | |
9 | 9 | | |
| |||
23 | 23 | | |
24 | 24 | | |
25 | 25 | | |
26 | | - | |
| 26 | + | |
27 | 27 | | |
28 | 28 | | |
29 | 29 | | |
| |||
Lines changed: 2 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3 | 3 | | |
4 | 4 | | |
5 | 5 | | |
6 | | - | |
| 6 | + | |
7 | 7 | | |
8 | 8 | | |
9 | 9 | | |
| |||
13 | 13 | | |
14 | 14 | | |
15 | 15 | | |
16 | | - | |
| 16 | + | |
17 | 17 | | |
18 | 18 | | |
19 | 19 | | |
| |||
0 commit comments