Skip to content

Commit e9adb77

Browse files
committed
docs: Merge branch 'docs' into dev
2 parents 1fc001b + 67fea7f commit e9adb77

File tree

2 files changed

+12
-0
lines changed

2 files changed

+12
-0
lines changed

README.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,3 +3,11 @@
33
> eslint-config-typescript for vue-cli
44
55
See [eslint-plugin-typescript](https://github.com/nzakas/eslint-plugin-typescript) for available rules.
6+
7+
This config is specifically designed to be used by `vue-cli` setups
8+
and is not meant for outside use (it can be used but some adaptations
9+
on the user side might be needed - for details see the config file).
10+
11+
A part of its design is that this config may implicitly depend on
12+
other parts of `vue-cli` setups, such as `eslint-plugin-vue` being
13+
extended in the same resulting config.

index.js

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,9 @@
11
module.exports = {
22
plugins: ['typescript'],
3+
// Prerequisite `eslint-plugin-vue`, being extended, sets
4+
// root property `parser` to `'vue-eslint-parser'`, which, for code parsing,
5+
// in turn delegates to the parser, specified in `parserOptions.parser`:
6+
// https://github.com/vuejs/eslint-plugin-vue#what-is-the-use-the-latest-vue-eslint-parser-error
37
parserOptions: {
48
parser: require.resolve('typescript-eslint-parser')
59
},

0 commit comments

Comments
 (0)