add eslint setting for .vscode
This commit is contained in:
Родитель
455f8b5511
Коммит
828ebd54ed
|
@ -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*/**/*
|
||||
|
|
|
@ -0,0 +1,9 @@
|
|||
{
|
||||
"recommendations": [
|
||||
"dbaeumer.vscode-eslint"
|
||||
],
|
||||
|
||||
"unwantedRecommendations": [
|
||||
"ms-vscode.vscode-typescript-tslint-plugin"
|
||||
]
|
||||
}
|
|
@ -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"]
|
||||
},
|
||||
|
||||
|
|
Загрузка…
Ссылка в новой задаче