Skip to content

Commit

Permalink
wip
Browse files Browse the repository at this point in the history
  • Loading branch information
gajus committed Dec 17, 2024
1 parent 21f9595 commit c8353d2
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 135 deletions.
38 changes: 0 additions & 38 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -1239,44 +1239,6 @@ const foo = "bar";

The 1st option is an array of strings that cannot be contained in the codebase.

<a name="user-content-eslint-plugin-canonical-rules-no-unused-exports"></a>
<a name="eslint-plugin-canonical-rules-no-unused-exports"></a>
### <code>no-unused-exports</code>

Identifies unused TypeScript exports.

> **Note** This rule is implemented using [`ts-unused-exports`](https://github.com/pzavolinsky/ts-unused-exports).
<a name="user-content-eslint-plugin-canonical-rules-no-unused-exports-options-2"></a>
<a name="eslint-plugin-canonical-rules-no-unused-exports-options-2"></a>
#### Options

|Config|Type|Required|Default|Description|
|---|---|---|---|---|
|`tsConfigPath`|string|Required||Path to [tsconfig.json](https://www.typescriptlang.org/docs/handbook/tsconfig-json.html)|
|`allowUnusedEnums`|boolean||`false`|Allow unused `enum`s.|
|`allowUnusedTypes`|boolean||`false`|Allow unused `type` and `interface`.|

<details><summary>📖 Examples</summary>
The following patterns are considered problems:

```js
// Options: [{"tsConfigPath":"/Users/gajus/Developer/gajus/eslint-plugin-canonical/tests/fixtures/noUnusedExports/tsconfig.json"}]
export const FOO = '';

// Message: undefined
```

The following patterns are not considered problems:

```js
// Options: [{"tsConfigPath":"/Users/gajus/Developer/gajus/eslint-plugin-canonical/tests/fixtures/noUnusedExports/tsconfig.json"}]
export const BAR = '';

```

</details>

<a name="user-content-eslint-plugin-canonical-rules-no-use-extend-native"></a>
<a name="eslint-plugin-canonical-rules-no-use-extend-native"></a>
### <code>no-use-extend-native</code>
Expand Down
9 changes: 7 additions & 2 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 0 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,6 @@
"natural-compare": "^1.4.0",
"recast": "^0.23.9",
"roarr": "^7.21.1",
"ts-unused-exports": "^9.0.3",
"xregexp": "^5.1.1"
},
"description": "Canonical linting rules for ESLint.",
Expand Down
94 changes: 0 additions & 94 deletions src/rules/noUnusedExports.ts

This file was deleted.

0 comments on commit c8353d2

Please sign in to comment.