eslint-config-prettier 8.0.0 → 8.4.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 +3 -0
- package/LICENSE +1 -1
- package/babel.js +3 -0
- package/bin/cli.js +7 -10
- package/flowtype.js +3 -0
- package/index.js +5 -0
- package/package.json +1 -1
- package/react.js +3 -0
- package/standard.js +3 -0
- package/unicorn.js +3 -0
- package/vue.js +3 -0
package/LICENSE
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
The MIT License (MIT)
|
|
2
2
|
|
|
3
|
-
Copyright (c) 2017, 2018, 2019, 2020, 2021 Simon Lydell and contributors
|
|
3
|
+
Copyright (c) 2017, 2018, 2019, 2020, 2021, 2022 Simon Lydell and contributors
|
|
4
4
|
|
|
5
5
|
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
6
|
of this software and associated documentation files (the "Software"), to deal
|
package/babel.js
ADDED
package/bin/cli.js
CHANGED
|
@@ -30,10 +30,8 @@ if (module === require.main) {
|
|
|
30
30
|
|
|
31
31
|
Promise.all(args.map((file) => eslint.calculateConfigForFile(file)))
|
|
32
32
|
.then((configs) => {
|
|
33
|
-
const rules =
|
|
34
|
-
|
|
35
|
-
Object.entries(rules).map((entry) => [...entry, args[index]])
|
|
36
|
-
)
|
|
33
|
+
const rules = configs.flatMap(({ rules }, index) =>
|
|
34
|
+
Object.entries(rules).map((entry) => [...entry, args[index]])
|
|
37
35
|
);
|
|
38
36
|
const result = processRules(rules);
|
|
39
37
|
if (result.stderr) {
|
|
@@ -183,12 +181,11 @@ function processRules(configRules) {
|
|
|
183
181
|
}
|
|
184
182
|
|
|
185
183
|
function filterRules(rules, fn) {
|
|
186
|
-
return Object.
|
|
187
|
-
.
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
}, Object.create(null));
|
|
184
|
+
return Object.fromEntries(
|
|
185
|
+
Object.entries(rules)
|
|
186
|
+
.filter(([ruleName, value]) => fn(ruleName, value))
|
|
187
|
+
.map(([ruleName]) => [ruleName, true])
|
|
188
|
+
);
|
|
192
189
|
}
|
|
193
190
|
|
|
194
191
|
function filterRuleNames(rules, fn) {
|
package/flowtype.js
ADDED
package/index.js
CHANGED
|
@@ -92,6 +92,8 @@ module.exports = {
|
|
|
92
92
|
"wrap-iife": "off",
|
|
93
93
|
"wrap-regex": "off",
|
|
94
94
|
"yield-star-spacing": "off",
|
|
95
|
+
"@babel/object-curly-spacing": "off",
|
|
96
|
+
"@babel/semi": "off",
|
|
95
97
|
"@typescript-eslint/brace-style": "off",
|
|
96
98
|
"@typescript-eslint/comma-dangle": "off",
|
|
97
99
|
"@typescript-eslint/comma-spacing": "off",
|
|
@@ -111,7 +113,9 @@ module.exports = {
|
|
|
111
113
|
"flowtype/boolean-style": "off",
|
|
112
114
|
"flowtype/delimiter-dangle": "off",
|
|
113
115
|
"flowtype/generic-spacing": "off",
|
|
116
|
+
"flowtype/object-type-curly-spacing": "off",
|
|
114
117
|
"flowtype/object-type-delimiter": "off",
|
|
118
|
+
"flowtype/quotes": "off",
|
|
115
119
|
"flowtype/semi": "off",
|
|
116
120
|
"flowtype/space-after-type-colon": "off",
|
|
117
121
|
"flowtype/space-before-generic-bracket": "off",
|
|
@@ -166,6 +170,7 @@ module.exports = {
|
|
|
166
170
|
"vue/object-curly-spacing": "off",
|
|
167
171
|
"vue/object-property-newline": "off",
|
|
168
172
|
"vue/operator-linebreak": "off",
|
|
173
|
+
"vue/quote-props": "off",
|
|
169
174
|
"vue/script-indent": "off",
|
|
170
175
|
"vue/singleline-html-element-content-newline": "off",
|
|
171
176
|
"vue/space-in-parens": "off",
|
package/package.json
CHANGED
package/react.js
ADDED
package/standard.js
ADDED
package/unicorn.js
ADDED
package/vue.js
ADDED