Skip to content

Commit 9edfde5

Browse files
docs: Apply suggestions from code review
Co-authored-by: Flo Edelmann <[email protected]>
1 parent ff7b4d6 commit 9edfde5

File tree

1 file changed

+7
-12
lines changed

1 file changed

+7
-12
lines changed

docs/user-guide/index.md

Lines changed: 7 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -56,30 +56,25 @@ npm install --save-dev eslint eslint-config-prettier eslint-plugin-vue globals t
5656
```ts
5757
import eslint from '@eslint/js';
5858
import eslintConfigPrettier from 'eslint-config-prettier';
59+
import eslintPluginVue from 'eslint-plugin-vue';
5960
import globals from 'globals';
60-
import pluginVue from 'eslint-plugin-vue';
61-
import tseslint from 'typescript-eslint';
61+
import typescriptEslint from 'typescript-eslint';
6262

6363
export default tseslint.config(
64-
{
65-
ignores: ['*.d.ts', '**/coverage', '**/dist'],
66-
},
64+
{ ignores: ['*.d.ts', '**/coverage', '**/dist'] },
6765
{
6866
extends: [
6967
eslint.configs.recommended,
70-
...tseslint.configs.recommended,
71-
...pluginVue.configs['flat/recommended'],
68+
...typescriptEslint.configs.recommended,
69+
...eslintPluginVue.configs['flat/recommended'],
7270
],
73-
plugins: {
74-
'@typescript-eslint': tseslint.plugin,
75-
},
7671
files: ['**/*.{ts,vue}'],
7772
languageOptions: {
78-
ecmaVersion: 2021,
73+
ecmaVersion: 'latest',
7974
sourceType: 'module',
8075
globals: globals.browser,
8176
parserOptions: {
82-
parser: tseslint.parser,
77+
parser: typescriptEslint.parser,
8378
},
8479
},
8580
rules: {

0 commit comments

Comments
 (0)