Fix eslint in vscode (#369)
This commit is contained in:
Родитель
928be72ece
Коммит
003854cf43
|
@ -0,0 +1,10 @@
|
|||
{
|
||||
"changes": [
|
||||
{
|
||||
"packageName": "@cadl-lang/compiler",
|
||||
"comment": "",
|
||||
"type": "none"
|
||||
}
|
||||
],
|
||||
"packageName": "@cadl-lang/compiler"
|
||||
}
|
|
@ -0,0 +1,10 @@
|
|||
{
|
||||
"changes": [
|
||||
{
|
||||
"packageName": "@cadl-lang/eslint-config-cadl",
|
||||
"comment": "",
|
||||
"type": "none"
|
||||
}
|
||||
],
|
||||
"packageName": "@cadl-lang/eslint-config-cadl"
|
||||
}
|
|
@ -0,0 +1,10 @@
|
|||
{
|
||||
"changes": [
|
||||
{
|
||||
"packageName": "@cadl-lang/openapi",
|
||||
"comment": "",
|
||||
"type": "none"
|
||||
}
|
||||
],
|
||||
"packageName": "@cadl-lang/openapi"
|
||||
}
|
|
@ -0,0 +1,10 @@
|
|||
{
|
||||
"changes": [
|
||||
{
|
||||
"packageName": "@cadl-lang/openapi3",
|
||||
"comment": "",
|
||||
"type": "none"
|
||||
}
|
||||
],
|
||||
"packageName": "@cadl-lang/openapi3"
|
||||
}
|
|
@ -0,0 +1,10 @@
|
|||
{
|
||||
"changes": [
|
||||
{
|
||||
"packageName": "@cadl-lang/rest",
|
||||
"comment": "",
|
||||
"type": "none"
|
||||
}
|
||||
],
|
||||
"packageName": "@cadl-lang/rest"
|
||||
}
|
|
@ -0,0 +1,10 @@
|
|||
{
|
||||
"changes": [
|
||||
{
|
||||
"packageName": "@cadl-lang/versioning",
|
||||
"comment": "",
|
||||
"type": "none"
|
||||
}
|
||||
],
|
||||
"packageName": "@cadl-lang/versioning"
|
||||
}
|
|
@ -0,0 +1,10 @@
|
|||
{
|
||||
"changes": [
|
||||
{
|
||||
"packageName": "tmlanguage-generator",
|
||||
"comment": "",
|
||||
"type": "none"
|
||||
}
|
||||
],
|
||||
"packageName": "tmlanguage-generator"
|
||||
}
|
|
@ -2,5 +2,5 @@ require("@cadl-lang/eslint-config-cadl/patch/modern-module-resolution");
|
|||
|
||||
module.exports = {
|
||||
extends: "@cadl-lang/eslint-config-cadl",
|
||||
parserOptions: { project: "./tsconfig.json" },
|
||||
parserOptions: { tsconfigRootDir: __dirname },
|
||||
};
|
||||
|
|
|
@ -1,5 +1,6 @@
|
|||
module.exports = {
|
||||
parser: "@typescript-eslint/parser",
|
||||
parserOptions: { project: "./tsconfig.json" },
|
||||
plugins: ["@typescript-eslint/eslint-plugin", "prettier"],
|
||||
extends: ["eslint:recommended", "plugin:@typescript-eslint/recommended", "prettier"],
|
||||
env: {
|
||||
|
|
|
@ -2,5 +2,5 @@ require("@cadl-lang/eslint-config-cadl/patch/modern-module-resolution");
|
|||
|
||||
module.exports = {
|
||||
extends: "@cadl-lang/eslint-config-cadl",
|
||||
parserOptions: { project: "./tsconfig.json" },
|
||||
parserOptions: { tsconfigRootDir: __dirname },
|
||||
};
|
||||
|
|
|
@ -2,5 +2,5 @@ require("@cadl-lang/eslint-config-cadl/patch/modern-module-resolution");
|
|||
|
||||
module.exports = {
|
||||
extends: "@cadl-lang/eslint-config-cadl",
|
||||
parserOptions: { project: "./tsconfig.json" },
|
||||
parserOptions: { tsconfigRootDir: __dirname },
|
||||
};
|
||||
|
|
|
@ -2,7 +2,7 @@ require("@cadl-lang/eslint-config-cadl/patch/modern-module-resolution");
|
|||
|
||||
module.exports = {
|
||||
extends: "@cadl-lang/eslint-config-cadl",
|
||||
parserOptions: { project: "./tsconfig.json" },
|
||||
parserOptions: { tsconfigRootDir: __dirname },
|
||||
rules: {
|
||||
"@typescript-eslint/no-misused-promises": [
|
||||
"error",
|
||||
|
|
|
@ -2,5 +2,5 @@ require("@cadl-lang/eslint-config-cadl/patch/modern-module-resolution");
|
|||
|
||||
module.exports = {
|
||||
extends: "@cadl-lang/eslint-config-cadl",
|
||||
parserOptions: { project: "./tsconfig.json" },
|
||||
parserOptions: { tsconfigRootDir: __dirname },
|
||||
};
|
||||
|
|
|
@ -2,5 +2,5 @@ require("@cadl-lang/eslint-config-cadl/patch/modern-module-resolution");
|
|||
|
||||
module.exports = {
|
||||
extends: "@cadl-lang/eslint-config-cadl",
|
||||
parserOptions: { project: "./tsconfig.json" },
|
||||
parserOptions: { tsconfigRootDir: __dirname },
|
||||
};
|
||||
|
|
|
@ -2,5 +2,5 @@ require("@cadl-lang/eslint-config-cadl/patch/modern-module-resolution");
|
|||
|
||||
module.exports = {
|
||||
extends: "@cadl-lang/eslint-config-cadl",
|
||||
parserOptions: { project: "./tsconfig.json" },
|
||||
parserOptions: { tsconfigRootDir: __dirname },
|
||||
};
|
||||
|
|
Загрузка…
Ссылка в новой задаче