mirror of
https://github.com/garraflavatra/yeslint.git
synced 2025-06-28 04:55:11 +00:00
Initial commit
This commit is contained in:
14
example/correct.js
Normal file
14
example/correct.js
Normal 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
17
example/correct.svelte
Normal 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
9
example/wrong.js
Normal 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
15
example/wrong.svelte
Normal 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>
|
Reference in New Issue
Block a user