eslint-config-prettier 6.12.0 → 6.13.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/CHANGELOG.md +4 -0
- package/README.md +8 -52
- package/package.json +7 -7
- package/vue.js +9 -0
package/CHANGELOG.md
CHANGED
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,19 +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 7.
|
|
693
|
+
- ESLint 7.11.0
|
|
738
694
|
- eslint-config-prettier 6.11.0 and older were tested with ESLint 6.x
|
|
739
695
|
- eslint-config-prettier 5.1.0 and older were tested with ESLint 5.x
|
|
740
696
|
- eslint-config-prettier 2.10.0 and older were tested with ESLint 4.x
|
|
741
697
|
- eslint-config-prettier 2.1.1 and older were tested with ESLint 3.x
|
|
742
698
|
- prettier 2.1.2
|
|
743
|
-
- @typescript-eslint/eslint-plugin 4.
|
|
699
|
+
- @typescript-eslint/eslint-plugin 4.4.1
|
|
744
700
|
- eslint-plugin-babel 5.3.1
|
|
745
701
|
- eslint-plugin-flowtype 5.2.0
|
|
746
|
-
- eslint-plugin-react 7.21.
|
|
702
|
+
- eslint-plugin-react 7.21.4
|
|
747
703
|
- eslint-plugin-standard 4.0.1
|
|
748
704
|
- eslint-plugin-unicorn 22.0.0
|
|
749
|
-
- eslint-plugin-vue
|
|
705
|
+
- eslint-plugin-vue 7.0.1
|
|
750
706
|
|
|
751
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!
|
|
752
708
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "eslint-config-prettier",
|
|
3
|
-
"version": "6.
|
|
3
|
+
"version": "6.13.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,22 +40,22 @@
|
|
|
40
40
|
"get-stdin": "^6.0.0"
|
|
41
41
|
},
|
|
42
42
|
"devDependencies": {
|
|
43
|
-
"@typescript-eslint/eslint-plugin": "4.
|
|
44
|
-
"@typescript-eslint/parser": "4.
|
|
43
|
+
"@typescript-eslint/eslint-plugin": "4.4.1",
|
|
44
|
+
"@typescript-eslint/parser": "4.4.1",
|
|
45
45
|
"babel-eslint": "10.1.0",
|
|
46
46
|
"cross-spawn": "7.0.3",
|
|
47
47
|
"doctoc": "1.4.0",
|
|
48
|
-
"eslint": "7.
|
|
48
|
+
"eslint": "7.11.0",
|
|
49
49
|
"eslint-config-google": "0.14.0",
|
|
50
50
|
"eslint-find-rules": "3.6.1",
|
|
51
51
|
"eslint-plugin-babel": "5.3.1",
|
|
52
52
|
"eslint-plugin-flowtype": "5.2.0",
|
|
53
53
|
"eslint-plugin-prettier": "3.1.4",
|
|
54
|
-
"eslint-plugin-react": "7.21.
|
|
54
|
+
"eslint-plugin-react": "7.21.4",
|
|
55
55
|
"eslint-plugin-standard": "4.0.1",
|
|
56
56
|
"eslint-plugin-unicorn": "22.0.0",
|
|
57
|
-
"eslint-plugin-vue": "
|
|
58
|
-
"jest": "26.
|
|
57
|
+
"eslint-plugin-vue": "7.0.1",
|
|
58
|
+
"jest": "26.5.3",
|
|
59
59
|
"prettier": "2.1.2",
|
|
60
60
|
"replace": "1.2.0",
|
|
61
61
|
"rimraf": "3.0.2",
|
package/vue.js
CHANGED
|
@@ -10,7 +10,10 @@ module.exports = {
|
|
|
10
10
|
"vue/block-spacing": "off",
|
|
11
11
|
"vue/brace-style": "off",
|
|
12
12
|
"vue/comma-dangle": "off",
|
|
13
|
+
"vue/comma-spacing": "off",
|
|
14
|
+
"vue/comma-style": "off",
|
|
13
15
|
"vue/dot-location": "off",
|
|
16
|
+
"vue/func-call-spacing": "off",
|
|
14
17
|
"vue/html-closing-bracket-newline": "off",
|
|
15
18
|
"vue/html-closing-bracket-spacing": "off",
|
|
16
19
|
"vue/html-end-tags": "off",
|
|
@@ -21,12 +24,18 @@ module.exports = {
|
|
|
21
24
|
"vue/max-attributes-per-line": "off",
|
|
22
25
|
"vue/multiline-html-element-content-newline": "off",
|
|
23
26
|
"vue/mustache-interpolation-spacing": "off",
|
|
27
|
+
"vue/no-extra-parens": "off",
|
|
24
28
|
"vue/no-multi-spaces": "off",
|
|
25
29
|
"vue/no-spaces-around-equal-signs-in-attribute": "off",
|
|
30
|
+
"vue/object-curly-newline": "off",
|
|
26
31
|
"vue/object-curly-spacing": "off",
|
|
32
|
+
"vue/object-property-newline": "off",
|
|
33
|
+
"vue/operator-linebreak": "off",
|
|
27
34
|
"vue/script-indent": "off",
|
|
28
35
|
"vue/singleline-html-element-content-newline": "off",
|
|
36
|
+
"vue/space-in-parens": "off",
|
|
29
37
|
"vue/space-infix-ops": "off",
|
|
30
38
|
"vue/space-unary-ops": "off",
|
|
39
|
+
"vue/template-curly-spacing": "off",
|
|
31
40
|
},
|
|
32
41
|
};
|