eslint-config-prettier 4.2.0 → 6.0.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 +80 -4
- package/README.md +42 -25
- package/bin/cli.js +1 -1
- package/bin/validators.js +2 -2
- package/package.json +15 -15
- package/react.js +2 -2
- package/vue.js +4 -0
package/@typescript-eslint.js
CHANGED
|
@@ -2,9 +2,11 @@
|
|
|
2
2
|
|
|
3
3
|
module.exports = {
|
|
4
4
|
rules: {
|
|
5
|
+
"@typescript-eslint/func-call-spacing": "off",
|
|
5
6
|
"@typescript-eslint/indent": "off",
|
|
6
7
|
"@typescript-eslint/member-delimiter-style": "off",
|
|
7
8
|
"@typescript-eslint/no-extra-parens": "off",
|
|
9
|
+
"@typescript-eslint/semi": "off",
|
|
8
10
|
"@typescript-eslint/type-annotation-spacing": "off"
|
|
9
11
|
}
|
|
10
12
|
};
|
package/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,71 @@
|
|
|
1
|
+
### Version 6.0.0 (2019-06-25)
|
|
2
|
+
|
|
3
|
+
- Changed: The CLI helper tool now considers [no-confusing-arrow] to conflict
|
|
4
|
+
if you use the default value of its `allowParens` option. The default was
|
|
5
|
+
changed to `true` in ESLint 6, which conflicts with Prettier.
|
|
6
|
+
|
|
7
|
+
If the CLI helper tool gives you errors about this after upgrading, the
|
|
8
|
+
solution is to change this:
|
|
9
|
+
|
|
10
|
+
```json
|
|
11
|
+
{
|
|
12
|
+
"rules": {
|
|
13
|
+
"no-confusing-arrow": ["error"]
|
|
14
|
+
}
|
|
15
|
+
}
|
|
16
|
+
```
|
|
17
|
+
|
|
18
|
+
Into this:
|
|
19
|
+
|
|
20
|
+
```json
|
|
21
|
+
{
|
|
22
|
+
"rules": {
|
|
23
|
+
"no-confusing-arrow": ["error", { "allowParens": false }]
|
|
24
|
+
}
|
|
25
|
+
}
|
|
26
|
+
```
|
|
27
|
+
|
|
28
|
+
The latter works in both ESLint 6 as well as in ESLint 5 and older.
|
|
29
|
+
|
|
30
|
+
- Improved: `eslint --print-config` usage instructions. The CLI tool help
|
|
31
|
+
text as well as the documentation has been updated to suggest commands that
|
|
32
|
+
work in ESLint 6.0 as well as in ESLint 5 and older. (Instead of `eslint
|
|
33
|
+
--print-config .`, use `eslint --print-config path/to/main.js`.)
|
|
34
|
+
|
|
35
|
+
### Version 5.1.0 (2019-06-25)
|
|
36
|
+
|
|
37
|
+
- Added: [react/jsx-curly-newline]. Thanks to Masafumi Koba (@ybiquitous)!
|
|
38
|
+
|
|
39
|
+
### Version 5.0.0 (2019-06-15)
|
|
40
|
+
|
|
41
|
+
- Removed: [react/self-closing-comp]. This rule was added in v4.1.0 not
|
|
42
|
+
because it _conflicted_ with Prettier but because it was _unnecessary_ when
|
|
43
|
+
using Prettier. However, in v1.18.0 [Prettier stopped converting empty
|
|
44
|
+
elements to self-closing elements][prettier-self-closing]. So the rule is
|
|
45
|
+
not unnecessary anymore.
|
|
46
|
+
|
|
47
|
+
If you use Prettier v1.17.1 or older you should be able to upgrade
|
|
48
|
+
eslint-config-prettier to v5.0.0 without having to do anything else.
|
|
49
|
+
|
|
50
|
+
If you use Prettier v1.18.0 or newer, you might get lint errors about for
|
|
51
|
+
example changing `<div></div>` into `<div />`. You have two options:
|
|
52
|
+
|
|
53
|
+
- Run `eslint --fix` if you prefer to enforce self-closing elements where
|
|
54
|
+
possible. This should fix all the errors.
|
|
55
|
+
- Add `"react/self-closing-comp": "off"` to your ESLint config if you use
|
|
56
|
+
autofix from your editor and you face the same [issue as Prettier
|
|
57
|
+
did][prettier-self-closing].
|
|
58
|
+
|
|
59
|
+
- Changed: Node.js 6 is no longer officially supported, but v5.0.0 should
|
|
60
|
+
still work with it.
|
|
61
|
+
|
|
62
|
+
### Version 4.3.0 (2019-05-16)
|
|
63
|
+
|
|
64
|
+
- Added: New [eslint-plugin-vue] rules: [vue/arrow-spacing],
|
|
65
|
+
[vue/block-spacing], [vue/brace-style] and [vue/comma-dangle].
|
|
66
|
+
- Added: New [@typescript-eslint/eslint-plugin] rules:
|
|
67
|
+
[@typescript-eslint/func-call-spacing] and [@typescript-eslint/semi].
|
|
68
|
+
|
|
1
69
|
### Version 4.2.0 (2019-04-25)
|
|
2
70
|
|
|
3
71
|
- Added: [@typescript-eslint/no-extra-parens]. Thanks to Keiichiro Amemiya
|
|
@@ -6,7 +74,7 @@
|
|
|
6
74
|
### Version 4.1.0 (2019-02-26)
|
|
7
75
|
|
|
8
76
|
- Added: [linebreak-style]. Use Prettier’s [end-of-line] option instead.
|
|
9
|
-
- Added: [self-closing-comp]. Thanks to Gaurav Gupta (@gaurav5430)!
|
|
77
|
+
- Added: [react/self-closing-comp]. Thanks to Gaurav Gupta (@gaurav5430)!
|
|
10
78
|
|
|
11
79
|
### Version 4.0.0 (2019-01-26)
|
|
12
80
|
|
|
@@ -218,15 +286,17 @@
|
|
|
218
286
|
- Initial release.
|
|
219
287
|
|
|
220
288
|
[@typescript-eslint/eslint-plugin]: https://github.com/typescript-eslint/typescript-eslint
|
|
289
|
+
[@typescript-eslint/func-call-spacing]: https://github.com/typescript-eslint/typescript-eslint/blob/master/packages/eslint-plugin/docs/rules/func-call-spacing.md
|
|
221
290
|
[@typescript-eslint/no-extra-parens]: https://github.com/typescript-eslint/typescript-eslint/blob/master/packages/eslint-plugin/docs/rules/no-extra-parens.md
|
|
222
|
-
[
|
|
223
|
-
[ESLint 4.6.0]: https://eslint.org/blog/2017/09/eslint-v4.6.0-released
|
|
291
|
+
[@typescript-eslint/semi]: https://github.com/typescript-eslint/typescript-eslint/blob/master/packages/eslint-plugin/docs/rules/semi.md
|
|
224
292
|
[array-bracket-newline]: https://eslint.org/docs/rules/array-bracket-newline
|
|
225
293
|
[array-element-newline]: https://eslint.org/docs/rules/array-element-newline
|
|
226
294
|
[arrow-body-style]: https://eslint.org/docs/rules/arrow-body-style
|
|
227
295
|
[arrow-special]: https://github.com/prettier/eslint-config-prettier/blob/2c842675e55b91aecaef6f997d234ebf2d220ffb/README.md#arrow-body-style-and-prefer-arrow-callback
|
|
228
296
|
[curly]: https://eslint.org/docs/rules/curly
|
|
229
297
|
[end-of-line]: https://prettier.io/docs/en/options.html#end-of-line
|
|
298
|
+
[ESLint 4.0.0]: https://eslint.org/blog/2017/06/eslint-v4.0.0-released
|
|
299
|
+
[ESLint 4.6.0]: https://eslint.org/blog/2017/09/eslint-v4.6.0-released
|
|
230
300
|
[eslint-plugin-flowtype]: https://github.com/gajus/eslint-plugin-flowtype
|
|
231
301
|
[eslint-plugin-prettier]: https://github.com/prettier/eslint-plugin-prettier
|
|
232
302
|
[eslint-plugin-react]: https://github.com/yannickcr/eslint-plugin-react
|
|
@@ -251,16 +321,22 @@
|
|
|
251
321
|
[nonblock-statement-body-position]: https://eslint.org/docs/rules/nonblock-statement-body-position
|
|
252
322
|
[one-var-declaration-per-line]: https://eslint.org/docs/rules/one-var-declaration-per-line
|
|
253
323
|
[prefer-arrow-callback]: https://eslint.org/docs/rules/prefer-arrow-callback
|
|
324
|
+
[prettier-self-closing]: https://prettier.io/blog/2019/06/06/1.18.0.html#stop-converting-empty-jsx-elements-to-self-closing-elements-6127-by-duailibe
|
|
254
325
|
[prettier]: https://github.com/prettier
|
|
255
326
|
[quotes-special]: https://github.com/prettier/eslint-config-prettier/blob/8d264cd0a7f06c12e2e05415e0282a4f8f21ebc9/README.md#quotes
|
|
256
327
|
[quotes]: https://eslint.org/docs/rules/quotes
|
|
257
328
|
[react/jsx-child-element-spacing]: https://github.com/yannickcr/eslint-plugin-react/blob/master/docs/rules/jsx-child-element-spacing.md
|
|
258
329
|
[react/jsx-closing-tag-location]: https://github.com/yannickcr/eslint-plugin-react/blob/master/docs/rules/jsx-closing-tag-location.md
|
|
330
|
+
[react/jsx-curly-newline]: https://github.com/yannickcr/eslint-plugin-react/blob/master/docs/rules/jsx-curly-newline.md
|
|
259
331
|
[react/jsx-one-expression-per-line]: https://github.com/yannickcr/eslint-plugin-react/blob/master/docs/rules/jsx-one-expression-per-line.md
|
|
260
332
|
[react/jsx-props-no-multi-spaces]: https://github.com/yannickcr/eslint-plugin-react/blob/master/docs/rules/jsx-props-no-multi-spaces.md
|
|
261
|
-
[self-closing-comp]: https://github.com/yannickcr/eslint-plugin-react/blob/master/docs/rules/self-closing-comp.md
|
|
333
|
+
[react/self-closing-comp]: https://github.com/yannickcr/eslint-plugin-react/blob/master/docs/rules/self-closing-comp.md
|
|
262
334
|
[semi-style]: https://eslint.org/docs/rules/semi-style
|
|
263
335
|
[switch-colon-spacing]: https://eslint.org/docs/rules/switch-colon-spacing
|
|
264
336
|
[template-tag-spacing]: https://eslint.org/docs/rules/template-tag-spacing
|
|
337
|
+
[vue/arrow-spacing]: https://github.com/vuejs/eslint-plugin-vue/blob/master/docs/rules/arrow-spacing.md
|
|
338
|
+
[vue/block-spacing]: https://github.com/vuejs/eslint-plugin-vue/blob/master/docs/rules/block-spacing.md
|
|
339
|
+
[vue/brace-style]: https://github.com/vuejs/eslint-plugin-vue/blob/master/docs/rules/brace-style.md
|
|
340
|
+
[vue/comma-dangle]: https://github.com/vuejs/eslint-plugin-vue/blob/master/docs/rules/comma-dangle.md
|
|
265
341
|
[vue/html-self-closing-special]: https://github.com/prettier/eslint-config-prettier/blob/d5e7af986221df5faedc12893d8dc3150a808693/README.md#vuehtml-self-closing
|
|
266
342
|
[vue/html-self-closing]: https://github.com/vuejs/eslint-plugin-vue/blob/master/docs/rules/html-self-closing.md
|
package/README.md
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
Turns off all rules that are unnecessary or might conflict with [Prettier].
|
|
4
4
|
|
|
5
|
-
This lets you use
|
|
5
|
+
This lets you use your favorite shareable config without letting its stylistic
|
|
6
6
|
choices get in the way when using Prettier.
|
|
7
7
|
|
|
8
8
|
Note that this config _only_ turns rules _off,_ so it only makes sense using
|
|
@@ -119,19 +119,27 @@ First, add a script for it to package.json:
|
|
|
119
119
|
```json
|
|
120
120
|
{
|
|
121
121
|
"scripts": {
|
|
122
|
-
"eslint-check": "eslint --print-config . | eslint-config-prettier-check"
|
|
122
|
+
"eslint-check": "eslint --print-config path/to/main.js | eslint-config-prettier-check"
|
|
123
123
|
}
|
|
124
124
|
}
|
|
125
125
|
```
|
|
126
126
|
|
|
127
|
-
Then run `npm run eslint-check`.
|
|
127
|
+
Then run `npm run eslint-check`. (Change `path/to/main.js` to a file that
|
|
128
|
+
exists in your project.)
|
|
128
129
|
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
130
|
+
In theory you need to run `eslint --print-config file.js |
|
|
131
|
+
eslint-config-prettier-check` for every single file in your project to be
|
|
132
|
+
100% sure that there are no conflicting rules, because ESLint supports having
|
|
133
|
+
different rules for different files. But usually you’ll have about the same
|
|
134
|
+
rules for all files, so it is enough to run the command on one file (pick one
|
|
135
|
+
that you won’t be moving). If you use [multiple configuration files] or
|
|
136
|
+
[overrides], you can (but you probably don’t need to!) run the above script
|
|
137
|
+
several times with different `--print-config` arguments, such as:
|
|
132
138
|
|
|
133
139
|
```
|
|
140
|
+
eslint --print-config index.js | eslint-config-prettier-check
|
|
134
141
|
eslint --print-config test/index.js | eslint-config-prettier-check
|
|
142
|
+
eslint --print-config legacy/main.js | eslint-config-prettier-check
|
|
135
143
|
```
|
|
136
144
|
|
|
137
145
|
Exit codes:
|
|
@@ -365,22 +373,14 @@ For example, the rule could warn about this line:
|
|
|
365
373
|
var x = a => 1 ? 2 : 3;
|
|
366
374
|
```
|
|
367
375
|
|
|
368
|
-
|
|
369
|
-
|
|
370
|
-
```js
|
|
371
|
-
var x = a => { return 1 ? 2 : 3; };
|
|
372
|
-
```
|
|
373
|
-
|
|
374
|
-
That causes no problems with Prettier.
|
|
375
|
-
|
|
376
|
-
With `{allowParens: true}`, adding parentheses is also considered a valid way to
|
|
377
|
-
avoid the arrow confusion:
|
|
376
|
+
With `{allowParens: true}` (the default since ESLint 6.0.0), adding
|
|
377
|
+
parentheses is considered a valid way to avoid the arrow confusion:
|
|
378
378
|
|
|
379
379
|
```js
|
|
380
380
|
var x = a => (1 ? 2 : 3);
|
|
381
381
|
```
|
|
382
382
|
|
|
383
|
-
While Prettier keeps
|
|
383
|
+
While Prettier keeps those parentheses, it removes them if the line is long
|
|
384
384
|
enough to introduce a line break:
|
|
385
385
|
|
|
386
386
|
```js
|
|
@@ -388,6 +388,15 @@ EnterpriseCalculator.prototype.calculateImportantNumbers = inputNumber =>
|
|
|
388
388
|
1 ? 2 : 3;
|
|
389
389
|
```
|
|
390
390
|
|
|
391
|
+
With `{allowParens: false}`, ESLint instead suggests switching to an explicit
|
|
392
|
+
return:
|
|
393
|
+
|
|
394
|
+
```js
|
|
395
|
+
var x = a => { return 1 ? 2 : 3; };
|
|
396
|
+
```
|
|
397
|
+
|
|
398
|
+
That causes no problems with Prettier.
|
|
399
|
+
|
|
391
400
|
If you like this rule, it can be used just fine with Prettier as long as the
|
|
392
401
|
`allowParens` option is off.
|
|
393
402
|
|
|
@@ -396,11 +405,18 @@ Example ESLint configuration:
|
|
|
396
405
|
```json
|
|
397
406
|
{
|
|
398
407
|
"rules": {
|
|
399
|
-
"no-confusing-arrow": "error"
|
|
408
|
+
"no-confusing-arrow": ["error", { "allowParens": false }]
|
|
400
409
|
}
|
|
401
410
|
}
|
|
402
411
|
```
|
|
403
412
|
|
|
413
|
+
(Note: The CLI helper tool considers `{allowParens: true}` to be the default,
|
|
414
|
+
which is the case since ESLint 6.0.0. The tool will produce a warning if you
|
|
415
|
+
use the default even if you use an older version of ESLint. It doesn’t hurt
|
|
416
|
+
to explicitly set `{allowParens: false}` even though it is technically
|
|
417
|
+
redundant. This way you are prepared for a future ESLint upgrade and the CLI
|
|
418
|
+
tool can be kept simple.)
|
|
419
|
+
|
|
404
420
|
### [no-mixed-operators]
|
|
405
421
|
|
|
406
422
|
**This rule requires special attention when writing code.**
|
|
@@ -764,17 +780,18 @@ You can also supply a custom message if you want:
|
|
|
764
780
|
|
|
765
781
|
eslint-config-prettier has been tested with:
|
|
766
782
|
|
|
767
|
-
- ESLint
|
|
783
|
+
- ESLint 6.0.1
|
|
784
|
+
- eslint-config-prettier 5.1.0 and older were tested with ESLint 5.x
|
|
768
785
|
- eslint-config-prettier 2.10.0 and older were tested with ESLint 4.x
|
|
769
786
|
- eslint-config-prettier 2.1.1 and older were tested with ESLint 3.x
|
|
770
|
-
- prettier 1.
|
|
771
|
-
- @typescript-eslint/eslint-plugin 1.
|
|
787
|
+
- prettier 1.18.2
|
|
788
|
+
- @typescript-eslint/eslint-plugin 1.11.0
|
|
772
789
|
- eslint-plugin-babel 5.3.0
|
|
773
|
-
- eslint-plugin-flowtype 3.
|
|
774
|
-
- eslint-plugin-react 7.
|
|
790
|
+
- eslint-plugin-flowtype 3.11.1
|
|
791
|
+
- eslint-plugin-react 7.14.2
|
|
775
792
|
- eslint-plugin-standard 4.0.0
|
|
776
|
-
- eslint-plugin-unicorn
|
|
777
|
-
- eslint-plugin-vue 5.
|
|
793
|
+
- eslint-plugin-unicorn 9.1.1
|
|
794
|
+
- eslint-plugin-vue 5.2.3
|
|
778
795
|
|
|
779
796
|
Have new rules been added since those versions? Have we missed any rules? Is
|
|
780
797
|
there a plugin you would like to see exclusions for? Open an issue or a pull
|
package/bin/cli.js
CHANGED
|
@@ -17,7 +17,7 @@ if (module === require.main) {
|
|
|
17
17
|
"This tool checks whether an ESLint configuration contains rules that are",
|
|
18
18
|
"unnecessary or conflict with Prettier. It’s supposed to be run like this:",
|
|
19
19
|
"",
|
|
20
|
-
" eslint --print-config . | eslint-config-prettier-check",
|
|
20
|
+
" eslint --print-config path/to/main.js | eslint-config-prettier-check",
|
|
21
21
|
" eslint --print-config test/index.js | eslint-config-prettier-check",
|
|
22
22
|
"",
|
|
23
23
|
"Exit codes:",
|
package/bin/validators.js
CHANGED
|
@@ -32,11 +32,11 @@ module.exports = {
|
|
|
32
32
|
|
|
33
33
|
"no-confusing-arrow"(options) {
|
|
34
34
|
if (options.length === 0) {
|
|
35
|
-
return
|
|
35
|
+
return false;
|
|
36
36
|
}
|
|
37
37
|
|
|
38
38
|
const firstOption = options[0];
|
|
39
|
-
return
|
|
39
|
+
return firstOption ? firstOption.allowParens === false : false;
|
|
40
40
|
},
|
|
41
41
|
|
|
42
42
|
"vue/html-self-closing"(options) {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "eslint-config-prettier",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "6.0.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.",
|
|
@@ -30,7 +30,7 @@
|
|
|
30
30
|
"test:lint-verify-fail": "eslint \"test-lint/*.{js,ts,vue}\" --config .eslintrc.base.js --format json",
|
|
31
31
|
"test:lint-rules": "eslint index.js --config test-config/.eslintrc.js --format json",
|
|
32
32
|
"test:jest": "jest",
|
|
33
|
-
"test:cli-sanity": "eslint --print-config . | node ./bin/cli.js",
|
|
33
|
+
"test:cli-sanity": "eslint --print-config index.js | node ./bin/cli.js",
|
|
34
34
|
"test:cli-sanity-warning": "eslint --print-config ./bin/cli.js | node ./bin/cli.js",
|
|
35
35
|
"test": "npm run test:lint && npm run test:jest && npm run test:cli-sanity && npm run test:cli-sanity-warning"
|
|
36
36
|
},
|
|
@@ -38,25 +38,25 @@
|
|
|
38
38
|
"get-stdin": "^6.0.0"
|
|
39
39
|
},
|
|
40
40
|
"devDependencies": {
|
|
41
|
-
"@typescript-eslint/eslint-plugin": "1.
|
|
42
|
-
"@typescript-eslint/parser": "1.
|
|
43
|
-
"babel-eslint": "10.0.
|
|
41
|
+
"@typescript-eslint/eslint-plugin": "1.11.0",
|
|
42
|
+
"@typescript-eslint/parser": "1.11.0",
|
|
43
|
+
"babel-eslint": "10.0.2",
|
|
44
44
|
"cross-spawn": "6.0.5",
|
|
45
45
|
"doctoc": "1.4.0",
|
|
46
|
-
"eslint": "
|
|
47
|
-
"eslint-config-google": "0.
|
|
46
|
+
"eslint": "6.0.1",
|
|
47
|
+
"eslint-config-google": "0.13.0",
|
|
48
48
|
"eslint-plugin-babel": "5.3.0",
|
|
49
|
-
"eslint-plugin-flowtype": "3.
|
|
50
|
-
"eslint-plugin-prettier": "3.0
|
|
51
|
-
"eslint-plugin-react": "7.
|
|
49
|
+
"eslint-plugin-flowtype": "3.11.1",
|
|
50
|
+
"eslint-plugin-prettier": "3.1.0",
|
|
51
|
+
"eslint-plugin-react": "7.14.2",
|
|
52
52
|
"eslint-plugin-standard": "4.0.0",
|
|
53
|
-
"eslint-plugin-unicorn": "
|
|
54
|
-
"eslint-plugin-vue": "
|
|
55
|
-
"jest": "24.
|
|
56
|
-
"prettier": "1.
|
|
53
|
+
"eslint-plugin-unicorn": "9.1.1",
|
|
54
|
+
"eslint-plugin-vue": "5.2.3",
|
|
55
|
+
"jest": "24.8.0",
|
|
56
|
+
"prettier": "1.18.2",
|
|
57
57
|
"replace": "1.1.0",
|
|
58
58
|
"rimraf": "2.6.3",
|
|
59
|
-
"typescript": "3.
|
|
59
|
+
"typescript": "3.5.2"
|
|
60
60
|
},
|
|
61
61
|
"peerDependencies": {
|
|
62
62
|
"eslint": ">=3.14.1"
|
package/react.js
CHANGED
|
@@ -5,6 +5,7 @@ module.exports = {
|
|
|
5
5
|
"react/jsx-child-element-spacing": "off",
|
|
6
6
|
"react/jsx-closing-bracket-location": "off",
|
|
7
7
|
"react/jsx-closing-tag-location": "off",
|
|
8
|
+
"react/jsx-curly-newline": "off",
|
|
8
9
|
"react/jsx-curly-spacing": "off",
|
|
9
10
|
"react/jsx-equals-spacing": "off",
|
|
10
11
|
"react/jsx-first-prop-new-line": "off",
|
|
@@ -15,7 +16,6 @@ module.exports = {
|
|
|
15
16
|
"react/jsx-props-no-multi-spaces": "off",
|
|
16
17
|
"react/jsx-space-before-closing": "off",
|
|
17
18
|
"react/jsx-tag-spacing": "off",
|
|
18
|
-
"react/jsx-wrap-multilines": "off"
|
|
19
|
-
"react/self-closing-comp": "off"
|
|
19
|
+
"react/jsx-wrap-multilines": "off"
|
|
20
20
|
}
|
|
21
21
|
};
|
package/vue.js
CHANGED
|
@@ -5,6 +5,10 @@ module.exports = {
|
|
|
5
5
|
"vue/html-self-closing": 0,
|
|
6
6
|
|
|
7
7
|
"vue/array-bracket-spacing": "off",
|
|
8
|
+
"vue/arrow-spacing": "off",
|
|
9
|
+
"vue/block-spacing": "off",
|
|
10
|
+
"vue/brace-style": "off",
|
|
11
|
+
"vue/comma-dangle": "off",
|
|
8
12
|
"vue/html-closing-bracket-newline": "off",
|
|
9
13
|
"vue/html-closing-bracket-spacing": "off",
|
|
10
14
|
"vue/html-end-tags": "off",
|