+6865
-6845
lines changed Original file line number Diff line number Diff line change
@@ -17,6 +17,15 @@ module.exports = {
17
17
},
18
18
// add your custom rules here
19
19
rules: {
20
+
'prettier/prettier': [
21
+
'error',
22
+
{
23
+
endOfLine: 'auto',
24
+
semi: true,
25
+
singleQuote: true,
26
+
trailingComma: 'es5',
27
+
},
28
+
],
20
29
// allow paren-less arrow functions
21
30
'arrow-parens': 0,
22
31
// allow async-await
@@ -26,4 +35,4 @@ module.exports = {
26
35
'vue/multi-word-component-names': 0,
27
36
'vue/no-v-html': 0,
28
37
},
29
-
}
38
+
};
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
1
1
{
2
-
"semi": false,
2
+
"semi": true,
3
3
"singleQuote": true,
4
-
"endOfLine": "auto"
4
+
"endOfLine": "auto",
5
+
"trailingComma": "es5"
5
6
}
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
1
-
const { exec } = require('child_process')
1
+
const { exec } = require('child_process');
2
2
3
3
const files = [
4
4
'services/notification/Notification.js',
@@ -33,33 +33,33 @@ const files = [
33
33
'components/timepicker/TimePicker.vue',
34
34
'components/tooltip/Tooltip.vue',
35
35
'components/typeahead/Typeahead.vue',
36
-
]
36
+
];
37
37
38
38
function e(command, options) {
39
39
return new Promise((resolve, reject) => {
40
40
exec(command, options, (error, stdout, stderr) => {
41
41
if (error) {
42
-
console.error(`exec error: ${error}`)
43
-
reject(error)
44
-
process.exit(1)
42
+
console.error(`exec error: ${error}`);
43
+
reject(error);
44
+
process.exit(1);
45
45
}
46
-
console.log(`stdout: ${stdout}`)
47
-
console.error(`stderr: ${stderr}`)
48
-
resolve()
49
-
})
50
-
})
46
+
console.log(`stdout: ${stdout}`);
47
+
console.error(`stderr: ${stderr}`);
48
+
resolve();
49
+
});
50
+
});
51
51
}
52
52
53
-
;(async function () {
53
+
(async function () {
54
54
for (const file of files) {
55
-
const prefix = file.startsWith('directives') ? 'v_' : ''
55
+
const prefix = file.startsWith('directives') ? 'v_' : '';
56
56
57
57
await e('npx vite build -c build/vite.config.js', {
58
58
env: {
59
59
...process.env,
60
60
UIV_ENTRY: file,
61
61
UIV_FILENAME: `${prefix + file.split('/').pop().split('.')[0]}.js`,
62
62
},
63
-
})
63
+
});
64
64
}
65
-
})()
65
+
})();
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
1
-
import vue from '@vitejs/plugin-vue'
2
-
import vueJsx from '@vitejs/plugin-vue-jsx'
3
-
import { defineConfig } from 'vite'
4
-
import { resolve } from 'path'
1
+
import vue from '@vitejs/plugin-vue';
2
+
import vueJsx from '@vitejs/plugin-vue-jsx';
3
+
import { defineConfig } from 'vite';
4
+
import { resolve } from 'path';
5
5
6
-
const { UIV_ENTRY, UIV_FILENAME } = process.env
6
+
const { UIV_ENTRY, UIV_FILENAME } = process.env;
7
7
8
-
console.log('env:', UIV_ENTRY, UIV_FILENAME)
8
+
console.log('env:', UIV_ENTRY, UIV_FILENAME);
9
9
10
10
// https://vitejs.dev/config/
11
11
export default defineConfig({
@@ -31,4 +31,4 @@ export default defineConfig({
31
31
},
32
32
},
33
33
},
34
-
})
34
+
});
Original file line number Diff line number Diff line change
@@ -20,12 +20,12 @@ export default {
20
20
return {
21
21
alerts: [],
22
22
duration: 2000,
23
-
}
23
+
};
24
24
},
25
25
methods: {
26
26
addAutoDismissAlert() {
27
-
this.alerts.push({ key: new Date().getTime() })
27
+
this.alerts.push({ key: new Date().getTime() });
28
28
},
29
29
},
30
-
}
30
+
};
31
31
</script>
Original file line number Diff line number Diff line change
@@ -24,12 +24,12 @@ export default {
24
24
return {
25
25
show: true,
26
26
alerts: [],
27
-
}
27
+
};
28
28
},
29
29
methods: {
30
30
addDismissibleAlert() {
31
-
this.alerts.push({ key: new Date().getTime() })
31
+
this.alerts.push({ key: new Date().getTime() });
32
32
},
33
33
},
34
-
}
34
+
};
35
35
</script>
Original file line number Diff line number Diff line change
@@ -14,7 +14,7 @@ export default {
14
14
data() {
15
15
return {
16
16
show: true,
17
-
}
17
+
};
18
18
},
19
-
}
19
+
};
20
20
</script>
Original file line number Diff line number Diff line change
@@ -12,7 +12,7 @@ export default {
12
12
{ text: 'Library', href: '#' },
13
13
{ text: 'Data', href: '#' },
14
14
],
15
-
}
15
+
};
16
16
},
17
-
}
17
+
};
18
18
</script>
Original file line number Diff line number Diff line change
@@ -11,7 +11,7 @@ export default {
11
11
{ text: 'Home', to: '/', exact: true },
12
12
{ text: 'Breadcrumbs', to: '/breadcrumbs' },
13
13
],
14
-
}
14
+
};
15
15
},
16
-
}
16
+
};
17
17
</script>
Original file line number Diff line number Diff line change
@@ -23,7 +23,7 @@ export default {
23
23
data() {
24
24
return {
25
25
model: ['1'],
26
-
}
26
+
};
27
27
},
28
-
}
28
+
};
29
29
</script>
You can’t perform that action at this time.
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4