Skip to content

Commit c857083

Browse files
authored
chore: Remove remaining tslint references (#7164)
1 parent d05a149 commit c857083

File tree

16 files changed

+6
-59
lines changed

16 files changed

+6
-59
lines changed

packages/core/src/components/html/html.md

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -40,12 +40,8 @@ See the [Running text](#core/typography.running-text) documentation for more inf
4040
@## Linting
4141

4242
The [**@blueprintjs/eslint-config**](https://www.npmjs.com/package/@blueprintjs/eslint-config)
43-
NPM package provides advanced configuration for [ESLint](https://eslint.org/). Blueprint is
44-
currently transitioning from [TSLint](https://palantir.github.io/tslint/) to ESLint, and as
45-
such, rules are being migrated from TSLint to ESLint. In the meantime, some TSLint rules are
46-
being run using ESLint.
47-
48-
The [**@blueprintjs/eslint-plugin**](https://www.npmjs.com/package/@blueprintjs/eslint-plugin)
43+
NPM package provides advanced configuration for [ESLint](https://eslint.org/). The
44+
[**@blueprintjs/eslint-plugin**](https://www.npmjs.com/package/@blueprintjs/eslint-plugin)
4945
package includes a custom `blueprint-html-components` rule that will warn on usages of
5046
JSX intrinsic elements (`<h1>`) that have a Blueprint alternative (`<H1>`). See
5147
the package's [README](https://www.npmjs.com/package/@blueprintjs/eslint-plugin)

packages/core/src/docs/classes.md

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -169,12 +169,8 @@ plugins: [
169169
@## Linting
170170

171171
The [**@blueprintjs/eslint-config**](https://www.npmjs.com/package/@blueprintjs/eslint-config)
172-
NPM package provides advanced configuration for [ESLint](https://eslint.org/). Blueprint is
173-
currently transitioning from [TSLint](https://palantir.github.io/tslint/) to ESLint, and as
174-
such, rules are being migrated from TSLint to ESLint. In the meantime, some TSLint rules are
175-
being run using ESLint.
176-
177-
The [**@blueprintjs/eslint-plugin**](https://www.npmjs.com/package/@blueprintjs/eslint-plugin)
172+
NPM package provides advanced configuration for [ESLint](https://eslint.org/). The
173+
[**@blueprintjs/eslint-plugin**](https://www.npmjs.com/package/@blueprintjs/eslint-plugin)
178174
NPM package includes a custom `blueprint-html-components` rule that will warn on usages of
179175
JSX intrinsic elements (`<h1>`) that have a Blueprint alternative (`<H1>`). See
180176
the package's [README](https://www.npmjs.com/package/@blueprintjs/eslint-plugin)

packages/docs-app/src/examples/core-examples/popoverDismissExample.tsx

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -64,15 +64,13 @@ export class PopoverDismissExample extends React.PureComponent<
6464
content={POPOVER_CONTENTS}
6565
placement="right"
6666
usePortal={false}
67-
// tslint:disable-next-line jsx-no-lambda
6867
renderTarget={({ isOpen, ...p }) => (
6968
<Button {...p} active={isOpen} text="Nested" rightIcon="caret-right" />
7069
)}
7170
/>
7271
</div>
7372
</>
7473
}
75-
// tslint:disable-next-line jsx-no-lambda
7674
renderTarget={({ isOpen, ...p }) => (
7775
<Button {...p} active={isOpen} intent="primary" text="Try it out" />
7876
)}

packages/docs-app/src/examples/core-examples/popoverInteractionKindExample.tsx

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,6 @@ export class PopoverInteractionKindExample extends React.PureComponent<ExamplePr
4747
placement="bottom-end"
4848
interactionKind={interactionKind}
4949
content={<FileMenu shouldDismissPopover={false} />}
50-
// tslint:disable-next-line jsx-no-lambda
5150
renderTarget={({ isOpen, ...p }) => (
5251
<Button {...p} active={isOpen} intent={Intent.PRIMARY} text={interactionKind} />
5352
)}

packages/docs-app/src/examples/core-examples/popoverMinimalExample.tsx

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,14 +32,12 @@ export class PopoverMinimalExample extends React.PureComponent<ExampleProps> {
3232
<Popover
3333
{...baseProps}
3434
minimal={true}
35-
// tslint:disable-next-line jsx-no-lambda
3635
renderTarget={({ isOpen, ...p }) => (
3736
<Button {...p} active={isOpen} intent={Intent.PRIMARY} text="Minimal" />
3837
)}
3938
/>
4039
<Popover
4140
{...baseProps}
42-
// tslint:disable-next-line jsx-no-lambda
4341
renderTarget={({ isOpen, ...p }) => <Button {...p} active={isOpen} text="Default" />}
4442
/>
4543
</Example>

packages/docs-app/src/examples/core-examples/popoverPortalExample.tsx

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,6 @@ export class PopoverPortalExample extends React.PureComponent<ExampleProps, Popo
7878
isOpen={this.state.isOpen}
7979
usePortal={true}
8080
// strip out `isOpen` so that it is not rendered to HTML element
81-
// tslint:disable-next-line jsx-no-lambda
8281
renderTarget={({ isOpen, ...p }) => <Code {...p}>{`usePortal={true}`}</Code>}
8382
/>
8483
</div>
@@ -98,7 +97,6 @@ export class PopoverPortalExample extends React.PureComponent<ExampleProps, Popo
9897
preventOverflow: { enabled: false },
9998
}}
10099
// strip out `isOpen` so that it is not rendered to HTML element
101-
// tslint:disable-next-line jsx-no-lambda
102100
renderTarget={({ isOpen, ...p }) => <Code {...p}>{`usePortal={false}`}</Code>}
103101
/>
104102
</div>

packages/docs-app/src/examples/core-examples/popoverSizingExample.tsx

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,6 @@ export class PopoverSizingExample extends React.PureComponent<ExampleProps> {
3030
<Popover
3131
content={<FileMenu className="docs-popover-sizing-example" />}
3232
placement="bottom-end"
33-
// tslint:disable-next-line jsx-no-lambda
3433
renderTarget={({ isOpen, ...p }) => <Button {...p} active={isOpen} text="Open..." />}
3534
/>
3635
</Example>

packages/docs-app/src/examples/core-examples/toastExample.tsx

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -178,7 +178,6 @@ export class ToastExample extends React.PureComponent<ExampleProps<BlueprintExam
178178
}
179179

180180
private renderToastDemo = (toast: ToastDemo, index: number) => {
181-
// tslint:disable-next-line:jsx-no-lambda
182181
return <Button intent={toast.intent} key={index} text={toast.button} onClick={() => this.addToast(toast)} />;
183182
};
184183

packages/docs-app/src/examples/table-examples/tableSortableExample.tsx

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -158,7 +158,6 @@ class RecordSortableColumn extends AbstractSortableColumn {
158158
/>
159159
</Menu>
160160
);
161-
// tslint:enable:jsx-no-lambda
162161
}
163162

164163
private transformCompare(transform: (a: any) => any, reverse: boolean) {

packages/eslint-config/index.js

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -56,20 +56,13 @@ module.exports = {
5656
env: {
5757
browser: true,
5858
},
59-
plugins: ["@typescript-eslint", "@typescript-eslint/tslint", "deprecation"],
59+
plugins: ["@typescript-eslint", "deprecation"],
6060
parser: "@typescript-eslint/parser",
6161
parserOptions: {
6262
sourceType: "module",
6363
project: ["{src,test}/tsconfig.json"],
6464
},
6565
rules: {
66-
// run the tslint rules which are not yet converted (run inside eslint)
67-
"@typescript-eslint/tslint/config": [
68-
"error",
69-
{
70-
lintFile: path.resolve(__dirname, "./tslint.json"),
71-
},
72-
],
7366
...tsEslintRules,
7467
"deprecation/deprecation": "error",
7568
},

0 commit comments

Comments
 (0)