Regenerate nvim config
This commit is contained in:
@ -0,0 +1,2 @@
|
||||
let a = [
|
||||
]
|
||||
@ -0,0 +1,4 @@
|
||||
if_this_is_correct &&
|
||||
run_this_thing()
|
||||
.filter()
|
||||
.map()
|
||||
@ -0,0 +1,6 @@
|
||||
const itemById = Array.from(
|
||||
new Set()
|
||||
).reduce((byId, item) => {
|
||||
byId[item.id] = item
|
||||
return result;
|
||||
}, {})
|
||||
@ -0,0 +1,20 @@
|
||||
class IndentTest {
|
||||
async isEqual(paramOne, paramTwo) {
|
||||
if (paramOne === paramTwo) {
|
||||
return true
|
||||
}
|
||||
|
||||
return false
|
||||
}
|
||||
|
||||
async isNotEqual(
|
||||
paramOne,
|
||||
paramTwo,
|
||||
) {
|
||||
if (paramOne !== paramTwo) {
|
||||
return true
|
||||
}
|
||||
|
||||
return false
|
||||
}
|
||||
}
|
||||
@ -0,0 +1,51 @@
|
||||
const arrow_func = (
|
||||
a,
|
||||
b,
|
||||
c
|
||||
) => {
|
||||
log(a, b, c)
|
||||
}
|
||||
|
||||
const arrow_func_without_brace = (a, b, c) =>
|
||||
log(
|
||||
a,
|
||||
b,
|
||||
c
|
||||
)
|
||||
|
||||
function func_def(
|
||||
a,
|
||||
b,
|
||||
{ c = '' }
|
||||
) {
|
||||
log(a, b, c)
|
||||
}
|
||||
|
||||
func_call(
|
||||
a,
|
||||
(b) => b
|
||||
)
|
||||
|
||||
chained_func_call()
|
||||
.map()
|
||||
.filter()
|
||||
|
||||
func_call(
|
||||
chained_func_call()
|
||||
.map()
|
||||
.filter()
|
||||
)
|
||||
|
||||
function prepare_list_fetcher(filter) {
|
||||
return Object.assign(
|
||||
async () =>
|
||||
(
|
||||
await http.get('/list', {
|
||||
params: {
|
||||
filter: filter,
|
||||
},
|
||||
})
|
||||
).data,
|
||||
{ key: ['/list', filter] }
|
||||
)
|
||||
}
|
||||
@ -0,0 +1,13 @@
|
||||
if (cond1) {
|
||||
do_1()
|
||||
|
||||
if (cond1a) {
|
||||
do_1a()
|
||||
} else {
|
||||
do_1_fallback()
|
||||
}
|
||||
} else if (cond2) {
|
||||
do_2()
|
||||
} else {
|
||||
do_fallback()
|
||||
}
|
||||
@ -0,0 +1,16 @@
|
||||
function test() {
|
||||
return [
|
||||
{
|
||||
test: "test",
|
||||
test_one: "test",
|
||||
},
|
||||
{
|
||||
test: "test",
|
||||
test_one: "test",
|
||||
},
|
||||
{
|
||||
test: "test",
|
||||
test_one: "test",
|
||||
},
|
||||
];
|
||||
}
|
||||
@ -0,0 +1,2 @@
|
||||
class A {
|
||||
}
|
||||
@ -0,0 +1,5 @@
|
||||
const obj = {
|
||||
a: 1,
|
||||
b: "2",
|
||||
["c"]: `three`
|
||||
}
|
||||
@ -0,0 +1,8 @@
|
||||
switch (variable) {
|
||||
case 'case1':
|
||||
foo();
|
||||
break;
|
||||
|
||||
default:
|
||||
bar();
|
||||
}
|
||||
@ -0,0 +1,6 @@
|
||||
const value =
|
||||
condition
|
||||
? typeof number === 'string'
|
||||
? Number(number)
|
||||
: number
|
||||
: null;
|
||||
@ -0,0 +1,8 @@
|
||||
try {
|
||||
throw Error()
|
||||
} catch (err) {
|
||||
throw error
|
||||
} finally {
|
||||
console.log("42")
|
||||
}
|
||||
|
||||
@ -0,0 +1,6 @@
|
||||
let a =
|
||||
if_this_is_right() && then_this()
|
||||
|
||||
a = func_call()
|
||||
.map()
|
||||
.filter()
|
||||
Reference in New Issue
Block a user