UNPKG
prettier-eslint-cli
Version:
alpha (9.0.0-alpha.2)
latest (9.2.1)
9.2.1
9.2.0
9.1.0
9.0.0
9.0.0-alpha.2
9.0.0-alpha.1
9.0.0-alpha.0
8.0.1
8.0.0
7.1.0
7.0.2
7.0.1
7.0.0
6.0.1
5.0.1
5.0.0
5.0.0-beta.0
4.7.1
4.7.0
4.6.1
4.6.0
4.5.0
4.4.3
4.4.2
4.4.1
4.4.0
4.3.2
4.3.1
4.3.0
4.2.4-beta.0
4.2.3
4.2.2
4.2.1
4.2.0
4.1.1
4.1.0
4.0.4
4.0.3
4.0.2
4.0.1
4.0.0
3.6.1
3.6.0
3.5.1
3.5.0
3.4.4
3.4.3
3.4.2
3.4.1
3.4.0
3.3.0
3.2.0
3.1.3
3.1.2
3.1.1
3.1.0
3.0.1
3.0.0
3.0.0-beta.0
2.0.1
2.0.0
1.2.0
1.1.1
1.1.0
1.0.3
1.0.2
1.0.1
1.0.0
1.0.0-beta.3
1.0.0-beta.2
1.0.0-beta.1
1.0.0-beta.0
0.1.0
0.0.0
CLI for prettier-eslint
github.com/prettier/prettier-eslint-cli
prettier/prettier-eslint-cli
prettier-eslint-cli
/
dist
/
argv.js
6 lines
(5 loc)
•
222 B
JavaScript
View Raw
1
2
3
4
5
6
export
function
normalize
(
options
) {
return
Object
.
entries
(options).
reduce
(
(
optionsAccumulator, [key, value]
) =>
key.
includes
(
'-'
) ? optionsAccumulator : { ...optionsAccumulator, [key]: value }, {}); }