Skip to content

Commit

Permalink
Merge pull request #3615 from wanlwanl/wanl/adapt-new-rules-to-old-rules
Browse files Browse the repository at this point in the history
Removed unnecessary rules
  • Loading branch information
wanlwanl authored Jan 26, 2025
2 parents a118650 + 06435c3 commit 2ad8682
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 67 deletions.
1 change: 0 additions & 1 deletion eng/tools/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@
"composite": true,
},
"references": [
{ "path": "./eslint-plugin-tsv" },
{ "path": "./specs-model" },
{ "path": "./suppressions" },
{ "path": "./tsp-client-tests" },
Expand Down
Original file line number Diff line number Diff line change
@@ -1,27 +1,19 @@
import parser from "yaml-eslint-parser";
import { NamedESLint } from "./interfaces/named-eslint.js";
import emitAutorest from "./rules/emit-autorest.js";
import kebabCaseOrg from "./rules/kebab-case-org.js";
import tspconfigValidationRules from "./rules/tspconfig-validation-rules.js";

const plugin: NamedESLint.Plugin = {
configs: { recommended: {} },
name: "tsv",
rules: {
[kebabCaseOrg.name]: kebabCaseOrg,
[emitAutorest.name]: emitAutorest,
},
rules: {},
};

plugin.configs.recommended = {
plugins: {
[plugin.name]: plugin,
},
files: ["*.yaml", "**/*.yaml"],
rules: {
[`${plugin.name}/${kebabCaseOrg.name}`]: "error",
[`${plugin.name}/${emitAutorest.name}`]: "error",
},
rules: {},
languageOptions: {
parser: parser,
},
Expand Down

This file was deleted.

0 comments on commit 2ad8682

Please sign in to comment.