add eslint setting for .vscode

This commit is contained in:
Alexander T 2019-08-08 10:57:04 +03:00
Родитель 455f8b5511
Коммит 828ebd54ed
5 изменённых файлов: 27 добавлений и 3 удалений

3
.gitignore поставляемый
Просмотреть файл

@ -37,6 +37,7 @@ tests/cases/**/*.js
!tests/cases/docker/*.js/
tests/cases/**/*.js.map
*.config
scripts/eslint/built/
scripts/debug.bat
scripts/run.bat
scripts/word2md.js
@ -60,6 +61,8 @@ internal/
**/.vs
**/.vscode
!**/.vscode/tasks.json
!**/.vscode/settings.json
!**/.vscode/extensions.json
!tests/cases/projects/projectOption/**/node_modules
!tests/cases/projects/NodeModulesSearch/**/*
!tests/baselines/reference/project/nodeModules*/**/*

9
.vscode/extensions.json поставляемый Normal file
Просмотреть файл

@ -0,0 +1,9 @@
{
"recommendations": [
"dbaeumer.vscode-eslint"
],
"unwantedRecommendations": [
"ms-vscode.vscode-typescript-tslint-plugin"
]
}

12
.vscode/settings.json поставляемый Normal file
Просмотреть файл

@ -0,0 +1,12 @@
{
"eslint.validate": [
"javascript",
{
"language": "typescript",
"autoFix": true
}
],
"eslint.options": {
"rulePaths": ["./scripts/eslint/built/rules/"],
}
}

Просмотреть файл

@ -327,7 +327,7 @@ cleanTasks.push(cleanEslintRules);
task("clean-eslint-rules", cleanEslintRules);
task("clean-eslint-rules").description = "Cleans the outputs for the eslint rules";
const runEslintRulesTests = () => runConsoleTests("built/eslint/tests", "mocha-fivemat-progress-reporter", /*runInParallel*/ false, /*watchMode*/ false);
const runEslintRulesTests = () => runConsoleTests("scripts/eslint/built/tests", "mocha-fivemat-progress-reporter", /*runInParallel*/ false, /*watchMode*/ false);
task("run-eslint-rules-tests", series(buildEslintRules, runEslintRulesTests));
task("run-eslint-rules-tests").description = "Runs the eslint rule tests";
@ -337,7 +337,7 @@ const eslint = (path) => async () => {
const args = [
"node_modules/eslint/bin/eslint",
"--format", "autolinkable-stylish",
"--rulesdir", "built/eslint/rules/",
"--rulesdir", "scripts/eslint/built/rules",
"--ext", ".ts",
`"${ path }"`,
];

Просмотреть файл

@ -16,7 +16,7 @@
"strict": true,
"module": "commonjs",
"target": "es6",
"outDir": "../../built/eslint",
"outDir": "./built",
"lib": ["es2015", "es2016"]
},