diff options
| author | Bartek IwaĆczuk <biwanczuk@gmail.com> | 2021-09-03 17:01:58 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2021-09-03 17:01:58 +0200 |
| commit | d93570a6195d2be5fe448bb0d33d4f64e839676e (patch) | |
| tree | a44431235693f484308aad70cda66827605f4568 /cli/tests/testdata/lint/lint_with_config | |
| parent | c3001fe280add8c695c288fe26b8f81b5f2f0261 (diff) | |
feat(lint): add support for config file and CLI flags for rules (#11776)
This commit adds support for following flags in deno lint subcommand:
--config - allows to load configuration file and parses "lint" object
--rules-tags=<tags> - allows specifying which set of tagged rules should be run
--rules-include=<rules> - allow specifying which rules should be run
--rules-exclude=<rules> - allow specifying which rules should not be run
Diffstat (limited to 'cli/tests/testdata/lint/lint_with_config')
| -rw-r--r-- | cli/tests/testdata/lint/lint_with_config/a.ts | 4 | ||||
| -rw-r--r-- | cli/tests/testdata/lint/lint_with_config/b.ts | 4 |
2 files changed, 8 insertions, 0 deletions
diff --git a/cli/tests/testdata/lint/lint_with_config/a.ts b/cli/tests/testdata/lint/lint_with_config/a.ts new file mode 100644 index 000000000..c378218a3 --- /dev/null +++ b/cli/tests/testdata/lint/lint_with_config/a.ts @@ -0,0 +1,4 @@ +// TODO: foo +function add(a: number, b: number): number { + return a + b; +} diff --git a/cli/tests/testdata/lint/lint_with_config/b.ts b/cli/tests/testdata/lint/lint_with_config/b.ts new file mode 100644 index 000000000..d5647067e --- /dev/null +++ b/cli/tests/testdata/lint/lint_with_config/b.ts @@ -0,0 +1,4 @@ +// TODO: this file should be ignored +function subtract(a: number, b: number): number { + return a - b; +} |
