Initial commit

This commit is contained in:
2023-07-27 21:56:03 +02:00
commit 251589f71d
14 changed files with 5111 additions and 0 deletions

14
example/correct.js Normal file
View File

@ -0,0 +1,14 @@
'use strict';
module.exports = {
properties: 'This is not ugly, the whitespace is perfect, and the quotes are single',
object: { spacing: 'required!' },
functions: [
env => console.log(env.password),
function({ password }) {
console.log(password);
},
],
};

17
example/correct.svelte Normal file
View File

@ -0,0 +1,17 @@
<script>
const anotherObject = {
properties: 'This is not ugly, the whitespace is perfect, and the quotes are single',
object: { spacing: 'required!' },
functions: [
env => console.log(env.password),
function({ password }) {
console.log(password);
},
],
};
</script>
<div class={anotherObject.className} />

9
example/wrong.js Normal file
View File

@ -0,0 +1,9 @@
'why not use strict?';
module.exports = {
"properties" : `This is ugly, the whitespace is too much, and the backticks are unnecessary`,
object:{spacing:'required!'},
functions: [( env )=> console.log(env.password),function ({password}) { console.log( password )}]
}

15
example/wrong.svelte Normal file
View File

@ -0,0 +1,15 @@
<script>
export let property // unused
const anotherObject ={
"properties" : `This is ugly, the whitespace is too much, and the backticks are unnecessary`,
object:{spacing:'required!'},
functions: [( env )=> console.log(env.password),function ({password}) { console.log( password )}]
};
</script>
<div class="{anotherObject.className}"></div>