@ben_12/eslint-plugin-dprint 0.6.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/LICENSE +21 -0
- package/README.md +76 -0
- package/lib/configs/disable-conflict-rules.d.ts +110 -0
- package/lib/configs/disable-conflict-rules.js +114 -0
- package/lib/configs/disable-conflict-rules.js.map +1 -0
- package/lib/configs/recommended.d.ts +111 -0
- package/lib/configs/recommended.js +9 -0
- package/lib/configs/recommended.js.map +1 -0
- package/lib/dprint/config-schema.json +1312 -0
- package/lib/dprint/typescript.d.ts +8 -0
- package/lib/dprint/typescript.js +122 -0
- package/lib/dprint/typescript.js.map +1 -0
- package/lib/index.d.ts +1 -0
- package/lib/index.js +15 -0
- package/lib/index.js.map +1 -0
- package/lib/rules/dprint.d.ts +4 -0
- package/lib/rules/dprint.js +172 -0
- package/lib/rules/dprint.js.map +1 -0
- package/lib/util/difference-iterator.d.ts +49 -0
- package/lib/util/difference-iterator.js +127 -0
- package/lib/util/difference-iterator.js.map +1 -0
- package/lib/util/predicate.d.ts +10 -0
- package/lib/util/predicate.js +20 -0
- package/lib/util/predicate.js.map +1 -0
- package/package.json +66 -0
package/LICENSE
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2020 Toru Nagashima
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
in the Software without restriction, including without limitation the rights
|
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
furnished to do so, subject to the following conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
|
13
|
+
copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
+
SOFTWARE.
|
package/README.md
ADDED
|
@@ -0,0 +1,76 @@
|
|
|
1
|
+
# eslint-plugin-dprint
|
|
2
|
+
|
|
3
|
+
[](https://www.npmjs.com/package/@ben_12/eslint-plugin-dprint)
|
|
4
|
+
[](http://www.npmtrends.com/@ben_12/eslint-plugin-dprint)
|
|
5
|
+
|
|
6
|
+
> This is an updated fork of mysticatea/eslint-plugin-dprint. Some things are still being adjusted.
|
|
7
|
+
|
|
8
|
+
The plugin that runs [dprint] to format code in ESLint.
|
|
9
|
+
|
|
10
|
+
## 💿 Installation
|
|
11
|
+
|
|
12
|
+
Use [npm] or a compatible tool.
|
|
13
|
+
|
|
14
|
+
```
|
|
15
|
+
$ npm install -D eslint @ben_12/eslint-plugin-dprint
|
|
16
|
+
```
|
|
17
|
+
|
|
18
|
+
## 📖 Usage
|
|
19
|
+
|
|
20
|
+
Write your ESLint configuration. For example:
|
|
21
|
+
|
|
22
|
+
```js
|
|
23
|
+
module.exports = {
|
|
24
|
+
extends: ["eslint:recommended", "plugin:@ben_12/dprint/recommended"],
|
|
25
|
+
rules: {
|
|
26
|
+
"@ben_12/dprint/dprint": [
|
|
27
|
+
"error",
|
|
28
|
+
{
|
|
29
|
+
config: {
|
|
30
|
+
// The TypeScript configuration of dprint
|
|
31
|
+
// See also https://dprint.dev/plugins/typescript/config/
|
|
32
|
+
},
|
|
33
|
+
},
|
|
34
|
+
],
|
|
35
|
+
},
|
|
36
|
+
};
|
|
37
|
+
```
|
|
38
|
+
|
|
39
|
+
Then run ESLint with `--fix`!
|
|
40
|
+
|
|
41
|
+
### Available Rules
|
|
42
|
+
|
|
43
|
+
| Rule | Description |
|
|
44
|
+
| :------------------------ | :------------------------- |
|
|
45
|
+
| [@ben_12/dprint/dprint] | Format code with [dprint]. |
|
|
46
|
+
|
|
47
|
+
### Available Configs
|
|
48
|
+
|
|
49
|
+
| Config | Description |
|
|
50
|
+
| :----------------------------------------------- | :-------------------------------------------------------------------------------------------- |
|
|
51
|
+
| [plugin:@ben_12/dprint/disable-conflict-rules] | Disable rules where are conflicted with the [@ben_12/dprint/dprint] rule. |
|
|
52
|
+
| [plugin:@ben_12/dprint/recommended] | Enable the [@ben_12/dprint/dprint] rule along with the [plugin:@ben_12/dprint/disable-conflict-rules] preset. |
|
|
53
|
+
|
|
54
|
+
- Put the [plugin:@ben_12/dprint/recommended] or [plugin:@ben_12/dprint/disable-conflict-rules] config into the last of your `extends` list in order to ensure disabling conflict rules where came from other base configurations.
|
|
55
|
+
|
|
56
|
+
## 📰 Changelog
|
|
57
|
+
|
|
58
|
+
See [GitHub Releases](https://github.com/ben12/eslint-plugin-dprint/releases).
|
|
59
|
+
|
|
60
|
+
## ❤️ Contributing
|
|
61
|
+
|
|
62
|
+
Welcome contributing!
|
|
63
|
+
|
|
64
|
+
Please use GitHub's Issues/PRs.
|
|
65
|
+
|
|
66
|
+
### Development Tools
|
|
67
|
+
|
|
68
|
+
- `npm test` ... Run tests. It generates code coverage into `coverage` directory.
|
|
69
|
+
- `npm run watch` ... Run tests when files are edited.
|
|
70
|
+
- `npm version <patch|minor|major>` ... Bump a new version.
|
|
71
|
+
|
|
72
|
+
[dprint]: https://github.com/dprint/dprint
|
|
73
|
+
[npm]: https://www.npmjs.com/
|
|
74
|
+
[@ben_12/dprint/dprint]: docs/rules/dprint.md
|
|
75
|
+
[plugin:@ben_12/dprint/disable-conflict-rules]: https://github.com/ben12/eslint-plugin-dprint/blob/master/lib/configs/disable-conflict-rules.ts
|
|
76
|
+
[plugin:@ben_12/dprint/recommended]: https://github.com/ben12/eslint-plugin-dprint/blob/master/lib/configs/recommended.ts
|
|
@@ -0,0 +1,110 @@
|
|
|
1
|
+
export declare const disableConflictRules: {
|
|
2
|
+
plugins: string[];
|
|
3
|
+
rules: {
|
|
4
|
+
"array-bracket-newline": string;
|
|
5
|
+
"array-bracket-spacing": string;
|
|
6
|
+
"array-element-newline": string;
|
|
7
|
+
"arrow-body-style": string;
|
|
8
|
+
"arrow-parens": string;
|
|
9
|
+
"arrow-spacing": string;
|
|
10
|
+
"block-spacing": string;
|
|
11
|
+
"brace-style": string;
|
|
12
|
+
"comma-dangle": string;
|
|
13
|
+
"comma-spacing": string;
|
|
14
|
+
"comma-style": string;
|
|
15
|
+
"computed-property-spacing": string;
|
|
16
|
+
curly: string;
|
|
17
|
+
"dot-location": string;
|
|
18
|
+
"eol-last": string;
|
|
19
|
+
"func-call-spacing": string;
|
|
20
|
+
"function-call-argument-newline": string;
|
|
21
|
+
"function-paren-newline": string;
|
|
22
|
+
"generator-star": string;
|
|
23
|
+
"generator-star-spacing": string;
|
|
24
|
+
"implicit-arrow-linebreak": string;
|
|
25
|
+
indent: string;
|
|
26
|
+
"indent-legacy": string;
|
|
27
|
+
"jsx-quotes": string;
|
|
28
|
+
"key-spacing": string;
|
|
29
|
+
"keyword-spacing": string;
|
|
30
|
+
"linebreak-style": string;
|
|
31
|
+
"max-len": string;
|
|
32
|
+
"multiline-ternary": string;
|
|
33
|
+
"new-parens": string;
|
|
34
|
+
"newline-per-chained-call": string;
|
|
35
|
+
"no-arrow-condition": string;
|
|
36
|
+
"no-comma-dangle": string;
|
|
37
|
+
"no-confusing-arrow": string;
|
|
38
|
+
"no-extra-semi": string;
|
|
39
|
+
"no-floating-decimal": string;
|
|
40
|
+
"no-mixed-spaces-and-tabs": string;
|
|
41
|
+
"no-multi-spaces": string;
|
|
42
|
+
"no-multiple-empty-lines": string;
|
|
43
|
+
"no-reserved-keys": string;
|
|
44
|
+
"no-spaced-func": string;
|
|
45
|
+
"no-space-before-semi": string;
|
|
46
|
+
"no-tabs": string;
|
|
47
|
+
"no-trailing-spaces": string;
|
|
48
|
+
"no-whitespace-before-property": string;
|
|
49
|
+
"no-wrap-func": string;
|
|
50
|
+
"nonblock-statement-body-position": string;
|
|
51
|
+
"object-curly-newline": string;
|
|
52
|
+
"object-curly-spacing": string;
|
|
53
|
+
"object-property-newline": string;
|
|
54
|
+
"one-var-declaration-per-line": string;
|
|
55
|
+
"operator-linebreak": string;
|
|
56
|
+
"padded-blocks": string;
|
|
57
|
+
"quote-props": string;
|
|
58
|
+
quotes: string;
|
|
59
|
+
"rest-spread-spacing": string;
|
|
60
|
+
semi: string;
|
|
61
|
+
"semi-spacing": string;
|
|
62
|
+
"semi-style": string;
|
|
63
|
+
"space-after-function-name": string;
|
|
64
|
+
"space-after-keywords": string;
|
|
65
|
+
"space-before-blocks": string;
|
|
66
|
+
"space-before-function-paren": string;
|
|
67
|
+
"space-before-function-parentheses": string;
|
|
68
|
+
"space-before-keywords": string;
|
|
69
|
+
"space-in-brackets": string;
|
|
70
|
+
"space-in-parens": string;
|
|
71
|
+
"space-infix-ops": string;
|
|
72
|
+
"space-return-throw-case": string;
|
|
73
|
+
"space-unary-ops": string;
|
|
74
|
+
"space-unary-word-ops": string;
|
|
75
|
+
"switch-colon-spacing": string;
|
|
76
|
+
"template-curly-spacing": string;
|
|
77
|
+
"template-tag-spacing": string;
|
|
78
|
+
"unicode-bom": string;
|
|
79
|
+
"wrap-iife": string;
|
|
80
|
+
"wrap-regex": string;
|
|
81
|
+
"yield-star-spacing": string;
|
|
82
|
+
"@typescript-eslint/brace-style": string;
|
|
83
|
+
"@typescript-eslint/comma-spacing": string;
|
|
84
|
+
"@typescript-eslint/func-call-spacing": string;
|
|
85
|
+
"@typescript-eslint/indent": string;
|
|
86
|
+
"@typescript-eslint/keyword-spacing": string;
|
|
87
|
+
"@typescript-eslint/member-delimiter-style": string;
|
|
88
|
+
"@typescript-eslint/no-extra-parens": string;
|
|
89
|
+
"@typescript-eslint/no-extra-semi": string;
|
|
90
|
+
"@typescript-eslint/quotes": string;
|
|
91
|
+
"@typescript-eslint/semi": string;
|
|
92
|
+
"@typescript-eslint/space-before-function-paren": string;
|
|
93
|
+
"@typescript-eslint/type-annotation-spacing": string;
|
|
94
|
+
"react/jsx-child-element-spacing": string;
|
|
95
|
+
"react/jsx-closing-bracket-location": string;
|
|
96
|
+
"react/jsx-closing-tag-location": string;
|
|
97
|
+
"react/jsx-curly-newline": string;
|
|
98
|
+
"react/jsx-curly-spacing": string;
|
|
99
|
+
"react/jsx-equals-spacing": string;
|
|
100
|
+
"react/jsx-first-prop-new-line": string;
|
|
101
|
+
"react/jsx-indent": string;
|
|
102
|
+
"react/jsx-indent-props": string;
|
|
103
|
+
"react/jsx-max-props-per-line": string;
|
|
104
|
+
"react/jsx-one-expression-per-line": string;
|
|
105
|
+
"react/jsx-props-no-multi-spaces": string;
|
|
106
|
+
"react/jsx-space-before-closing": string;
|
|
107
|
+
"react/jsx-tag-spacing": string;
|
|
108
|
+
"react/jsx-wrap-multilines": string;
|
|
109
|
+
};
|
|
110
|
+
};
|
|
@@ -0,0 +1,114 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.disableConflictRules = void 0;
|
|
4
|
+
exports.disableConflictRules = {
|
|
5
|
+
plugins: ["@ben_12/dprint"],
|
|
6
|
+
rules: {
|
|
7
|
+
"array-bracket-newline": "off",
|
|
8
|
+
"array-bracket-spacing": "off",
|
|
9
|
+
"array-element-newline": "off",
|
|
10
|
+
"arrow-body-style": "off",
|
|
11
|
+
"arrow-parens": "off",
|
|
12
|
+
"arrow-spacing": "off",
|
|
13
|
+
"block-spacing": "off",
|
|
14
|
+
"brace-style": "off",
|
|
15
|
+
"comma-dangle": "off",
|
|
16
|
+
"comma-spacing": "off",
|
|
17
|
+
"comma-style": "off",
|
|
18
|
+
"computed-property-spacing": "off",
|
|
19
|
+
curly: "off",
|
|
20
|
+
"dot-location": "off",
|
|
21
|
+
"eol-last": "off",
|
|
22
|
+
"func-call-spacing": "off",
|
|
23
|
+
"function-call-argument-newline": "off",
|
|
24
|
+
"function-paren-newline": "off",
|
|
25
|
+
"generator-star": "off",
|
|
26
|
+
"generator-star-spacing": "off",
|
|
27
|
+
"implicit-arrow-linebreak": "off",
|
|
28
|
+
indent: "off",
|
|
29
|
+
"indent-legacy": "off",
|
|
30
|
+
"jsx-quotes": "off",
|
|
31
|
+
"key-spacing": "off",
|
|
32
|
+
"keyword-spacing": "off",
|
|
33
|
+
"linebreak-style": "off",
|
|
34
|
+
"max-len": "off",
|
|
35
|
+
"multiline-ternary": "off",
|
|
36
|
+
"new-parens": "off",
|
|
37
|
+
"newline-per-chained-call": "off",
|
|
38
|
+
"no-arrow-condition": "off",
|
|
39
|
+
"no-comma-dangle": "off",
|
|
40
|
+
"no-confusing-arrow": "off",
|
|
41
|
+
"no-extra-semi": "off",
|
|
42
|
+
"no-floating-decimal": "off",
|
|
43
|
+
"no-mixed-spaces-and-tabs": "off",
|
|
44
|
+
"no-multi-spaces": "off",
|
|
45
|
+
"no-multiple-empty-lines": "off",
|
|
46
|
+
"no-reserved-keys": "off",
|
|
47
|
+
"no-spaced-func": "off",
|
|
48
|
+
"no-space-before-semi": "off",
|
|
49
|
+
"no-tabs": "off",
|
|
50
|
+
"no-trailing-spaces": "off",
|
|
51
|
+
"no-whitespace-before-property": "off",
|
|
52
|
+
"no-wrap-func": "off",
|
|
53
|
+
"nonblock-statement-body-position": "off",
|
|
54
|
+
"object-curly-newline": "off",
|
|
55
|
+
"object-curly-spacing": "off",
|
|
56
|
+
"object-property-newline": "off",
|
|
57
|
+
"one-var-declaration-per-line": "off",
|
|
58
|
+
"operator-linebreak": "off",
|
|
59
|
+
"padded-blocks": "off",
|
|
60
|
+
"quote-props": "off",
|
|
61
|
+
quotes: "off",
|
|
62
|
+
"rest-spread-spacing": "off",
|
|
63
|
+
semi: "off",
|
|
64
|
+
"semi-spacing": "off",
|
|
65
|
+
"semi-style": "off",
|
|
66
|
+
"space-after-function-name": "off",
|
|
67
|
+
"space-after-keywords": "off",
|
|
68
|
+
"space-before-blocks": "off",
|
|
69
|
+
"space-before-function-paren": "off",
|
|
70
|
+
"space-before-function-parentheses": "off",
|
|
71
|
+
"space-before-keywords": "off",
|
|
72
|
+
"space-in-brackets": "off",
|
|
73
|
+
"space-in-parens": "off",
|
|
74
|
+
"space-infix-ops": "off",
|
|
75
|
+
"space-return-throw-case": "off",
|
|
76
|
+
"space-unary-ops": "off",
|
|
77
|
+
"space-unary-word-ops": "off",
|
|
78
|
+
"switch-colon-spacing": "off",
|
|
79
|
+
"template-curly-spacing": "off",
|
|
80
|
+
"template-tag-spacing": "off",
|
|
81
|
+
"unicode-bom": "off",
|
|
82
|
+
"wrap-iife": "off",
|
|
83
|
+
"wrap-regex": "off",
|
|
84
|
+
"yield-star-spacing": "off",
|
|
85
|
+
"@typescript-eslint/brace-style": "off",
|
|
86
|
+
"@typescript-eslint/comma-spacing": "off",
|
|
87
|
+
"@typescript-eslint/func-call-spacing": "off",
|
|
88
|
+
"@typescript-eslint/indent": "off",
|
|
89
|
+
"@typescript-eslint/keyword-spacing": "off",
|
|
90
|
+
"@typescript-eslint/member-delimiter-style": "off",
|
|
91
|
+
"@typescript-eslint/no-extra-parens": "off",
|
|
92
|
+
"@typescript-eslint/no-extra-semi": "off",
|
|
93
|
+
"@typescript-eslint/quotes": "off",
|
|
94
|
+
"@typescript-eslint/semi": "off",
|
|
95
|
+
"@typescript-eslint/space-before-function-paren": "off",
|
|
96
|
+
"@typescript-eslint/type-annotation-spacing": "off",
|
|
97
|
+
"react/jsx-child-element-spacing": "off",
|
|
98
|
+
"react/jsx-closing-bracket-location": "off",
|
|
99
|
+
"react/jsx-closing-tag-location": "off",
|
|
100
|
+
"react/jsx-curly-newline": "off",
|
|
101
|
+
"react/jsx-curly-spacing": "off",
|
|
102
|
+
"react/jsx-equals-spacing": "off",
|
|
103
|
+
"react/jsx-first-prop-new-line": "off",
|
|
104
|
+
"react/jsx-indent": "off",
|
|
105
|
+
"react/jsx-indent-props": "off",
|
|
106
|
+
"react/jsx-max-props-per-line": "off",
|
|
107
|
+
"react/jsx-one-expression-per-line": "off",
|
|
108
|
+
"react/jsx-props-no-multi-spaces": "off",
|
|
109
|
+
"react/jsx-space-before-closing": "off",
|
|
110
|
+
"react/jsx-tag-spacing": "off",
|
|
111
|
+
"react/jsx-wrap-multilines": "off",
|
|
112
|
+
},
|
|
113
|
+
};
|
|
114
|
+
//# sourceMappingURL=disable-conflict-rules.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"disable-conflict-rules.js","sourceRoot":"","sources":["../../../lib/configs/disable-conflict-rules.ts"],"names":[],"mappings":"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"}
|
|
@@ -0,0 +1,111 @@
|
|
|
1
|
+
export declare const recommended: {
|
|
2
|
+
plugins: string[];
|
|
3
|
+
rules: {
|
|
4
|
+
"@ben_12/dprint/dprint": string;
|
|
5
|
+
"array-bracket-newline": string;
|
|
6
|
+
"array-bracket-spacing": string;
|
|
7
|
+
"array-element-newline": string;
|
|
8
|
+
"arrow-body-style": string;
|
|
9
|
+
"arrow-parens": string;
|
|
10
|
+
"arrow-spacing": string;
|
|
11
|
+
"block-spacing": string;
|
|
12
|
+
"brace-style": string;
|
|
13
|
+
"comma-dangle": string;
|
|
14
|
+
"comma-spacing": string;
|
|
15
|
+
"comma-style": string;
|
|
16
|
+
"computed-property-spacing": string;
|
|
17
|
+
curly: string;
|
|
18
|
+
"dot-location": string;
|
|
19
|
+
"eol-last": string;
|
|
20
|
+
"func-call-spacing": string;
|
|
21
|
+
"function-call-argument-newline": string;
|
|
22
|
+
"function-paren-newline": string;
|
|
23
|
+
"generator-star": string;
|
|
24
|
+
"generator-star-spacing": string;
|
|
25
|
+
"implicit-arrow-linebreak": string;
|
|
26
|
+
indent: string;
|
|
27
|
+
"indent-legacy": string;
|
|
28
|
+
"jsx-quotes": string;
|
|
29
|
+
"key-spacing": string;
|
|
30
|
+
"keyword-spacing": string;
|
|
31
|
+
"linebreak-style": string;
|
|
32
|
+
"max-len": string;
|
|
33
|
+
"multiline-ternary": string;
|
|
34
|
+
"new-parens": string;
|
|
35
|
+
"newline-per-chained-call": string;
|
|
36
|
+
"no-arrow-condition": string;
|
|
37
|
+
"no-comma-dangle": string;
|
|
38
|
+
"no-confusing-arrow": string;
|
|
39
|
+
"no-extra-semi": string;
|
|
40
|
+
"no-floating-decimal": string;
|
|
41
|
+
"no-mixed-spaces-and-tabs": string;
|
|
42
|
+
"no-multi-spaces": string;
|
|
43
|
+
"no-multiple-empty-lines": string;
|
|
44
|
+
"no-reserved-keys": string;
|
|
45
|
+
"no-spaced-func": string;
|
|
46
|
+
"no-space-before-semi": string;
|
|
47
|
+
"no-tabs": string;
|
|
48
|
+
"no-trailing-spaces": string;
|
|
49
|
+
"no-whitespace-before-property": string;
|
|
50
|
+
"no-wrap-func": string;
|
|
51
|
+
"nonblock-statement-body-position": string;
|
|
52
|
+
"object-curly-newline": string;
|
|
53
|
+
"object-curly-spacing": string;
|
|
54
|
+
"object-property-newline": string;
|
|
55
|
+
"one-var-declaration-per-line": string;
|
|
56
|
+
"operator-linebreak": string;
|
|
57
|
+
"padded-blocks": string;
|
|
58
|
+
"quote-props": string;
|
|
59
|
+
quotes: string;
|
|
60
|
+
"rest-spread-spacing": string;
|
|
61
|
+
semi: string;
|
|
62
|
+
"semi-spacing": string;
|
|
63
|
+
"semi-style": string;
|
|
64
|
+
"space-after-function-name": string;
|
|
65
|
+
"space-after-keywords": string;
|
|
66
|
+
"space-before-blocks": string;
|
|
67
|
+
"space-before-function-paren": string;
|
|
68
|
+
"space-before-function-parentheses": string;
|
|
69
|
+
"space-before-keywords": string;
|
|
70
|
+
"space-in-brackets": string;
|
|
71
|
+
"space-in-parens": string;
|
|
72
|
+
"space-infix-ops": string;
|
|
73
|
+
"space-return-throw-case": string;
|
|
74
|
+
"space-unary-ops": string;
|
|
75
|
+
"space-unary-word-ops": string;
|
|
76
|
+
"switch-colon-spacing": string;
|
|
77
|
+
"template-curly-spacing": string;
|
|
78
|
+
"template-tag-spacing": string;
|
|
79
|
+
"unicode-bom": string;
|
|
80
|
+
"wrap-iife": string;
|
|
81
|
+
"wrap-regex": string;
|
|
82
|
+
"yield-star-spacing": string;
|
|
83
|
+
"@typescript-eslint/brace-style": string;
|
|
84
|
+
"@typescript-eslint/comma-spacing": string;
|
|
85
|
+
"@typescript-eslint/func-call-spacing": string;
|
|
86
|
+
"@typescript-eslint/indent": string;
|
|
87
|
+
"@typescript-eslint/keyword-spacing": string;
|
|
88
|
+
"@typescript-eslint/member-delimiter-style": string;
|
|
89
|
+
"@typescript-eslint/no-extra-parens": string;
|
|
90
|
+
"@typescript-eslint/no-extra-semi": string;
|
|
91
|
+
"@typescript-eslint/quotes": string;
|
|
92
|
+
"@typescript-eslint/semi": string;
|
|
93
|
+
"@typescript-eslint/space-before-function-paren": string;
|
|
94
|
+
"@typescript-eslint/type-annotation-spacing": string;
|
|
95
|
+
"react/jsx-child-element-spacing": string;
|
|
96
|
+
"react/jsx-closing-bracket-location": string;
|
|
97
|
+
"react/jsx-closing-tag-location": string;
|
|
98
|
+
"react/jsx-curly-newline": string;
|
|
99
|
+
"react/jsx-curly-spacing": string;
|
|
100
|
+
"react/jsx-equals-spacing": string;
|
|
101
|
+
"react/jsx-first-prop-new-line": string;
|
|
102
|
+
"react/jsx-indent": string;
|
|
103
|
+
"react/jsx-indent-props": string;
|
|
104
|
+
"react/jsx-max-props-per-line": string;
|
|
105
|
+
"react/jsx-one-expression-per-line": string;
|
|
106
|
+
"react/jsx-props-no-multi-spaces": string;
|
|
107
|
+
"react/jsx-space-before-closing": string;
|
|
108
|
+
"react/jsx-tag-spacing": string;
|
|
109
|
+
"react/jsx-wrap-multilines": string;
|
|
110
|
+
};
|
|
111
|
+
};
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.recommended = void 0;
|
|
4
|
+
const disable_conflict_rules_1 = require("./disable-conflict-rules");
|
|
5
|
+
exports.recommended = {
|
|
6
|
+
plugins: ["@ben_12/dprint"],
|
|
7
|
+
rules: Object.assign(Object.assign({}, disable_conflict_rules_1.disableConflictRules.rules), { "@ben_12/dprint/dprint": "warn" }),
|
|
8
|
+
};
|
|
9
|
+
//# sourceMappingURL=recommended.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"recommended.js","sourceRoot":"","sources":["../../../lib/configs/recommended.ts"],"names":[],"mappings":";;;AAAA,qEAA+D;AAElD,QAAA,WAAW,GAAG;IACvB,OAAO,EAAE,CAAC,gBAAgB,CAAC;IAC3B,KAAK,kCACE,6CAAoB,CAAC,KAAK,KAC7B,uBAAuB,EAAE,MAAM,GAClC;CACJ,CAAA"}
|