Skip to content

Commit d89172d

Browse files
committed
Improve tooling
1 parent 8f6448c commit d89172d

10 files changed

+2204
-434
lines changed

.github/workflows/test-and-build.yml

+3
Original file line numberDiff line numberDiff line change
@@ -24,5 +24,8 @@ jobs:
2424
- name: Install dependencies
2525
run: npm ci
2626

27+
- name: Test
28+
run: npm test
29+
2730
- name: Build
2831
run: npm run build

.prettierrc.json

+7
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
{
2+
"$schema": "https://json.schemastore.org/prettierrc",
3+
"semi": true,
4+
"singleQuote": true,
5+
"arrowParens": "avoid"
6+
}
7+

README.md

+8
Original file line numberDiff line numberDiff line change
@@ -42,3 +42,11 @@ Instead of the `@result` event, the `usePlaceSearch()` composable can be used to
4242
</script>
4343
```
4444
With this, the map view will automatically be centered on the result geometry.
45+
46+
## Developing
47+
48+
To develop this plugin, it is recommended to set up a test app according to the instructions below, and use [npm link](https://docs.npmjs.com/cli/v10/commands/npm-link). When that is setup properly, use
49+
50+
npm run watch
51+
52+
to automatically update the linked package in the test application.

eslint.config.js

+19
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
import js from '@eslint/js';
2+
import pluginVue from 'eslint-plugin-vue';
3+
import skipFormatting from '@vue/eslint-config-prettier/skip-formatting';
4+
5+
export default [
6+
{
7+
name: 'app/files-to-lint',
8+
files: ['**/*.{js,mjs,jsx,vue}'],
9+
},
10+
11+
{
12+
name: 'app/files-to-ignore',
13+
ignores: ['**/dist/**', '**/dist-ssr/**', '**/coverage/**'],
14+
},
15+
16+
js.configs.recommended,
17+
...pluginVue.configs['flat/essential'],
18+
skipFormatting,
19+
];

0 commit comments

Comments
 (0)