summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorValentin Popov <info@valentineus.link>2020-03-26 19:49:19 +0300
committerValentin Popov <info@valentineus.link>2020-03-26 19:49:19 +0300
commit582698ebfaa399e7d728380bd665ee81fb06cbeb (patch)
treee2e15dc6532a6f847e0df711aaa16be7fae74c78 /src
parent5d9c8c8b4e0874b0acb3a63159040e994b511887 (diff)
downloadeslint-config-582698ebfaa399e7d728380bd665ee81fb06cbeb.tar.xz
eslint-config-582698ebfaa399e7d728380bd665ee81fb06cbeb.zip
Fixed TypeScript error after create new file
Signed-off-by: Valentin Popov <info@valentineus.link>
Diffstat (limited to 'src')
-rw-r--r--src/typescript.ts3
-rw-r--r--src/vue-typescript.ts1
2 files changed, 4 insertions, 0 deletions
diff --git a/src/typescript.ts b/src/typescript.ts
index ace7ad7..6295159 100644
--- a/src/typescript.ts
+++ b/src/typescript.ts
@@ -9,6 +9,9 @@ module.exports = {
"plugin:import/typescript",
],
"parser": "@typescript-eslint/parser",
+ "parserOptions": {
+ createDefaultProgram: true,
+ },
"plugins": [
"@typescript-eslint",
],
diff --git a/src/vue-typescript.ts b/src/vue-typescript.ts
index bbef943..f44c6f2 100644
--- a/src/vue-typescript.ts
+++ b/src/vue-typescript.ts
@@ -10,6 +10,7 @@ module.exports = {
],
"parser": "vue-eslint-parser",
"parserOptions": {
+ createDefaultProgram: true,
extraFileExtensions: [
".vue",
],