eslint-config-prettier 6.11.0 → 6.15.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/@typescript-eslint.js +2 -0
- package/CHANGELOG.md +21 -1
- package/README.md +14 -57
- package/package.json +17 -17
- package/vue.js +11 -0
package/@typescript-eslint.js
CHANGED
|
@@ -5,6 +5,7 @@ module.exports = {
|
|
|
5
5
|
"@typescript-eslint/quotes": 0,
|
|
6
6
|
|
|
7
7
|
"@typescript-eslint/brace-style": "off",
|
|
8
|
+
"@typescript-eslint/comma-dangle": "off",
|
|
8
9
|
"@typescript-eslint/comma-spacing": "off",
|
|
9
10
|
"@typescript-eslint/func-call-spacing": "off",
|
|
10
11
|
"@typescript-eslint/indent": "off",
|
|
@@ -14,6 +15,7 @@ module.exports = {
|
|
|
14
15
|
"@typescript-eslint/no-extra-semi": "off",
|
|
15
16
|
"@typescript-eslint/semi": "off",
|
|
16
17
|
"@typescript-eslint/space-before-function-paren": "off",
|
|
18
|
+
"@typescript-eslint/space-infix-ops": "off",
|
|
17
19
|
"@typescript-eslint/type-annotation-spacing": "off",
|
|
18
20
|
},
|
|
19
21
|
};
|
package/CHANGELOG.md
CHANGED
|
@@ -1,6 +1,22 @@
|
|
|
1
|
+
### Version 6.15.0 (2020-10-27)
|
|
2
|
+
|
|
3
|
+
- Added: [@typescript-eslint/space-infix-ops]. Thanks to Masafumi Koba (@ybiquitous)!!
|
|
4
|
+
|
|
5
|
+
### Version 6.14.0 (2020-10-21)
|
|
6
|
+
|
|
7
|
+
- Added: New [eslint-plugin-vue] rules: [vue/array-bracket-newline] and [vue/block-tag-newline]. Thanks to @xcatliu!
|
|
8
|
+
|
|
9
|
+
### Version 6.13.0 (2020-10-16)
|
|
10
|
+
|
|
11
|
+
- Added: New rules in [eslint-plugin-vue] 7.0 (which supports Vue 3.0). Thanks to @xcatliu!
|
|
12
|
+
|
|
13
|
+
### Version 6.12.0 (2020-09-25)
|
|
14
|
+
|
|
15
|
+
- Added: [@typescript-eslint/comma-dangle]. Thanks to Masafumi Koba (@ybiquitous)!!
|
|
16
|
+
|
|
1
17
|
### Version 6.11.0 (2020-04-21)
|
|
2
18
|
|
|
3
|
-
- Added: [@typescript-eslint/keyword-spacing]. Thanks to Hans Bergren (@hbergren)
|
|
19
|
+
- Added: [@typescript-eslint/keyword-spacing]. Thanks to Hans Bergren (@hbergren)!
|
|
4
20
|
|
|
5
21
|
### Version 6.10.1 (2020-03-22)
|
|
6
22
|
|
|
@@ -270,6 +286,7 @@
|
|
|
270
286
|
- Initial release.
|
|
271
287
|
|
|
272
288
|
[@typescript-eslint/brace-style]: https://github.com/typescript-eslint/typescript-eslint/blob/master/packages/eslint-plugin/docs/rules/brace-style.md
|
|
289
|
+
[@typescript-eslint/comma-dangle]: https://github.com/typescript-eslint/typescript-eslint/blob/master/packages/eslint-plugin/docs/rules/comma-dangle.md
|
|
273
290
|
[@typescript-eslint/comma-spacing]: https://github.com/typescript-eslint/typescript-eslint/blob/master/packages/eslint-plugin/docs/rules/comma-spacing.md
|
|
274
291
|
[@typescript-eslint/eslint-plugin]: https://github.com/typescript-eslint/typescript-eslint
|
|
275
292
|
[@typescript-eslint/func-call-spacing]: https://github.com/typescript-eslint/typescript-eslint/blob/master/packages/eslint-plugin/docs/rules/func-call-spacing.md
|
|
@@ -280,6 +297,7 @@
|
|
|
280
297
|
[@typescript-eslint/quotes]: https://github.com/typescript-eslint/typescript-eslint/blob/master/packages/eslint-plugin/docs/rules/quotes.md
|
|
281
298
|
[@typescript-eslint/semi]: https://github.com/typescript-eslint/typescript-eslint/blob/master/packages/eslint-plugin/docs/rules/semi.md
|
|
282
299
|
[@typescript-eslint/space-before-function-paren]: https://github.com/typescript-eslint/typescript-eslint/blob/master/packages/eslint-plugin/docs/rules/space-before-function-paren.md
|
|
300
|
+
[@typescript-eslint/space-infix-ops]: https://github.com/typescript-eslint/typescript-eslint/blob/master/packages/eslint-plugin/docs/rules/space-infix-ops.md
|
|
283
301
|
[array-bracket-newline]: https://eslint.org/docs/rules/array-bracket-newline
|
|
284
302
|
[array-element-newline]: https://eslint.org/docs/rules/array-element-newline
|
|
285
303
|
[arrow-body-style]: https://eslint.org/docs/rules/arrow-body-style
|
|
@@ -337,4 +355,6 @@
|
|
|
337
355
|
[vue/html-self-closing-special]: https://github.com/prettier/eslint-config-prettier/blob/d5e7af986221df5faedc12893d8dc3150a808693/README.md#vuehtml-self-closing
|
|
338
356
|
[vue/html-self-closing]: https://github.com/vuejs/eslint-plugin-vue/blob/master/docs/rules/html-self-closing.md
|
|
339
357
|
[vue/keyword-spacing]: https://github.com/vuejs/eslint-plugin-vue/blob/master/docs/rules/keyword-spacing.md
|
|
358
|
+
[vue/keyword-spacing]: https://github.com/vuejs/eslint-plugin-vue/blob/master/docs/rules/array-bracket-newline.md
|
|
359
|
+
[vue/keyword-spacing]: https://github.com/vuejs/eslint-plugin-vue/blob/master/docs/rules/block-tag-newline.md
|
|
340
360
|
[vue/max-len]: https://github.com/vuejs/eslint-plugin-vue/blob/master/docs/rules/max-len.md
|
package/README.md
CHANGED
|
@@ -14,7 +14,6 @@ Note that this config _only_ turns rules _off,_ so it only makes sense using it
|
|
|
14
14
|
- [Installation](#installation)
|
|
15
15
|
- [Excluding deprecated rules](#excluding-deprecated-rules)
|
|
16
16
|
- [CLI helper tool](#cli-helper-tool)
|
|
17
|
-
- [Example configuration](#example-configuration)
|
|
18
17
|
- [Special rules](#special-rules)
|
|
19
18
|
- [arrow-body-style and prefer-arrow-callback](#arrow-body-style-and-prefer-arrow-callback)
|
|
20
19
|
- [curly](#curly)
|
|
@@ -27,8 +26,8 @@ Note that this config _only_ turns rules _off,_ so it only makes sense using it
|
|
|
27
26
|
- [quotes](#quotes)
|
|
28
27
|
- [Enforce backticks](#enforce-backticks)
|
|
29
28
|
- [Forbid unnecessary backticks](#forbid-unnecessary-backticks)
|
|
30
|
-
- [Example
|
|
31
|
-
- [Example
|
|
29
|
+
- [Example double quote configuration](#example-double-quote-configuration)
|
|
30
|
+
- [Example single quote configuration](#example-single-quote-configuration)
|
|
32
31
|
- [vue/html-self-closing](#vuehtml-self-closing)
|
|
33
32
|
- [Other rules worth mentioning](#other-rules-worth-mentioning)
|
|
34
33
|
- [no-sequences](#no-sequences)
|
|
@@ -135,49 +134,6 @@ Exit codes:
|
|
|
135
134
|
- 1: Unexpected error.
|
|
136
135
|
- 2: Conflicting rules found.
|
|
137
136
|
|
|
138
|
-
## Example configuration
|
|
139
|
-
|
|
140
|
-
<!-- prettier-ignore -->
|
|
141
|
-
```json
|
|
142
|
-
{
|
|
143
|
-
"extends": [
|
|
144
|
-
"standard",
|
|
145
|
-
"plugin:@typescript-eslint/recommended",
|
|
146
|
-
"plugin:flowtype/recommended",
|
|
147
|
-
"plugin:react/recommended",
|
|
148
|
-
"plugin:unicorn/recommended",
|
|
149
|
-
"plugin:vue/recommended",
|
|
150
|
-
"prettier",
|
|
151
|
-
"prettier/@typescript-eslint",
|
|
152
|
-
"prettier/babel",
|
|
153
|
-
"prettier/flowtype",
|
|
154
|
-
"prettier/react",
|
|
155
|
-
"prettier/standard",
|
|
156
|
-
"prettier/unicorn",
|
|
157
|
-
"prettier/vue"
|
|
158
|
-
],
|
|
159
|
-
"plugins": [
|
|
160
|
-
"@typescript-eslint",
|
|
161
|
-
"babel",
|
|
162
|
-
"flowtype",
|
|
163
|
-
"react",
|
|
164
|
-
"standard",
|
|
165
|
-
"unicorn",
|
|
166
|
-
"vue"
|
|
167
|
-
],
|
|
168
|
-
"parserOptions": {
|
|
169
|
-
"sourceType": "module",
|
|
170
|
-
"ecmaFeatures": {
|
|
171
|
-
"jsx": true
|
|
172
|
-
}
|
|
173
|
-
},
|
|
174
|
-
"env": {
|
|
175
|
-
"es6": true,
|
|
176
|
-
"node": true
|
|
177
|
-
}
|
|
178
|
-
}
|
|
179
|
-
```
|
|
180
|
-
|
|
181
137
|
## Special rules
|
|
182
138
|
|
|
183
139
|
There a few rules that eslint-config-prettier disables that actually can be enabled in some cases.
|
|
@@ -586,7 +542,7 @@ If you’d like ESLint to enforce `` `could have been a regular string` `` being
|
|
|
586
542
|
- `"avoidEscape": true` to follow Prettier’s [string formatting rules].
|
|
587
543
|
- `"allowTemplateLiterals": false` to disallow unnecessary backticks.
|
|
588
544
|
|
|
589
|
-
##### Example
|
|
545
|
+
##### Example double quote configuration
|
|
590
546
|
|
|
591
547
|
ESLint:
|
|
592
548
|
|
|
@@ -612,7 +568,7 @@ Prettier (this is the default, so adding this is not required):
|
|
|
612
568
|
}
|
|
613
569
|
```
|
|
614
570
|
|
|
615
|
-
##### Example
|
|
571
|
+
##### Example single quote configuration
|
|
616
572
|
|
|
617
573
|
ESLint:
|
|
618
574
|
|
|
@@ -734,18 +690,19 @@ You can also supply a custom message if you want:
|
|
|
734
690
|
|
|
735
691
|
eslint-config-prettier has been tested with:
|
|
736
692
|
|
|
737
|
-
- ESLint
|
|
693
|
+
- ESLint 7.12.1
|
|
694
|
+
- eslint-config-prettier 6.11.0 and older were tested with ESLint 6.x
|
|
738
695
|
- eslint-config-prettier 5.1.0 and older were tested with ESLint 5.x
|
|
739
696
|
- eslint-config-prettier 2.10.0 and older were tested with ESLint 4.x
|
|
740
697
|
- eslint-config-prettier 2.1.1 and older were tested with ESLint 3.x
|
|
741
|
-
- prettier 2.
|
|
742
|
-
- @typescript-eslint/eslint-plugin
|
|
743
|
-
- eslint-plugin-babel 5.3.
|
|
744
|
-
- eslint-plugin-flowtype
|
|
745
|
-
- eslint-plugin-react 7.
|
|
746
|
-
- eslint-plugin-standard 4.0.
|
|
747
|
-
- eslint-plugin-unicorn
|
|
748
|
-
- eslint-plugin-vue
|
|
698
|
+
- prettier 2.1.2
|
|
699
|
+
- @typescript-eslint/eslint-plugin 4.6.0
|
|
700
|
+
- eslint-plugin-babel 5.3.1
|
|
701
|
+
- eslint-plugin-flowtype 5.2.0
|
|
702
|
+
- eslint-plugin-react 7.21.5
|
|
703
|
+
- eslint-plugin-standard 4.0.2
|
|
704
|
+
- eslint-plugin-unicorn 23.0.0
|
|
705
|
+
- eslint-plugin-vue 7.1.0
|
|
749
706
|
|
|
750
707
|
Have new rules been added since those versions? Have we missed any rules? Is there a plugin you would like to see exclusions for? Open an issue or a pull request!
|
|
751
708
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "eslint-config-prettier",
|
|
3
|
-
"version": "6.
|
|
3
|
+
"version": "6.15.0",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"author": "Simon Lydell",
|
|
6
6
|
"description": "Turns off all rules that are unnecessary or might conflict with Prettier.",
|
|
@@ -40,26 +40,26 @@
|
|
|
40
40
|
"get-stdin": "^6.0.0"
|
|
41
41
|
},
|
|
42
42
|
"devDependencies": {
|
|
43
|
-
"@typescript-eslint/eslint-plugin": "
|
|
44
|
-
"@typescript-eslint/parser": "
|
|
43
|
+
"@typescript-eslint/eslint-plugin": "4.6.0",
|
|
44
|
+
"@typescript-eslint/parser": "4.6.0",
|
|
45
45
|
"babel-eslint": "10.1.0",
|
|
46
|
-
"cross-spawn": "7.0.
|
|
46
|
+
"cross-spawn": "7.0.3",
|
|
47
47
|
"doctoc": "1.4.0",
|
|
48
|
-
"eslint": "
|
|
48
|
+
"eslint": "7.12.1",
|
|
49
49
|
"eslint-config-google": "0.14.0",
|
|
50
|
-
"eslint-find-rules": "3.
|
|
51
|
-
"eslint-plugin-babel": "5.3.
|
|
52
|
-
"eslint-plugin-flowtype": "
|
|
53
|
-
"eslint-plugin-prettier": "3.1.
|
|
54
|
-
"eslint-plugin-react": "7.
|
|
55
|
-
"eslint-plugin-standard": "4.0.
|
|
56
|
-
"eslint-plugin-unicorn": "
|
|
57
|
-
"eslint-plugin-vue": "
|
|
58
|
-
"jest": "
|
|
59
|
-
"prettier": "2.
|
|
60
|
-
"replace": "1.
|
|
50
|
+
"eslint-find-rules": "3.6.1",
|
|
51
|
+
"eslint-plugin-babel": "5.3.1",
|
|
52
|
+
"eslint-plugin-flowtype": "5.2.0",
|
|
53
|
+
"eslint-plugin-prettier": "3.1.4",
|
|
54
|
+
"eslint-plugin-react": "7.21.5",
|
|
55
|
+
"eslint-plugin-standard": "4.0.2",
|
|
56
|
+
"eslint-plugin-unicorn": "23.0.0",
|
|
57
|
+
"eslint-plugin-vue": "7.1.0",
|
|
58
|
+
"jest": "26.6.1",
|
|
59
|
+
"prettier": "2.1.2",
|
|
60
|
+
"replace": "1.2.0",
|
|
61
61
|
"rimraf": "3.0.2",
|
|
62
|
-
"typescript": "
|
|
62
|
+
"typescript": "4.0.5"
|
|
63
63
|
},
|
|
64
64
|
"peerDependencies": {
|
|
65
65
|
"eslint": ">=3.14.1"
|
package/vue.js
CHANGED
|
@@ -5,12 +5,17 @@ module.exports = {
|
|
|
5
5
|
"vue/html-self-closing": 0,
|
|
6
6
|
"vue/max-len": 0,
|
|
7
7
|
|
|
8
|
+
"vue/array-bracket-newline": "off",
|
|
8
9
|
"vue/array-bracket-spacing": "off",
|
|
9
10
|
"vue/arrow-spacing": "off",
|
|
10
11
|
"vue/block-spacing": "off",
|
|
12
|
+
"vue/block-tag-newline": "off",
|
|
11
13
|
"vue/brace-style": "off",
|
|
12
14
|
"vue/comma-dangle": "off",
|
|
15
|
+
"vue/comma-spacing": "off",
|
|
16
|
+
"vue/comma-style": "off",
|
|
13
17
|
"vue/dot-location": "off",
|
|
18
|
+
"vue/func-call-spacing": "off",
|
|
14
19
|
"vue/html-closing-bracket-newline": "off",
|
|
15
20
|
"vue/html-closing-bracket-spacing": "off",
|
|
16
21
|
"vue/html-end-tags": "off",
|
|
@@ -21,12 +26,18 @@ module.exports = {
|
|
|
21
26
|
"vue/max-attributes-per-line": "off",
|
|
22
27
|
"vue/multiline-html-element-content-newline": "off",
|
|
23
28
|
"vue/mustache-interpolation-spacing": "off",
|
|
29
|
+
"vue/no-extra-parens": "off",
|
|
24
30
|
"vue/no-multi-spaces": "off",
|
|
25
31
|
"vue/no-spaces-around-equal-signs-in-attribute": "off",
|
|
32
|
+
"vue/object-curly-newline": "off",
|
|
26
33
|
"vue/object-curly-spacing": "off",
|
|
34
|
+
"vue/object-property-newline": "off",
|
|
35
|
+
"vue/operator-linebreak": "off",
|
|
27
36
|
"vue/script-indent": "off",
|
|
28
37
|
"vue/singleline-html-element-content-newline": "off",
|
|
38
|
+
"vue/space-in-parens": "off",
|
|
29
39
|
"vue/space-infix-ops": "off",
|
|
30
40
|
"vue/space-unary-ops": "off",
|
|
41
|
+
"vue/template-curly-spacing": "off",
|
|
31
42
|
},
|
|
32
43
|
};
|