Skip to content
This repository was archived by the owner on Mar 4, 2020. It is now read-only.

Commit 3115095

Browse files
committed
fix "@typescript-eslint/no-unused-vars"
1 parent 48fb258 commit 3115095

File tree

7 files changed

+3
-12
lines changed

7 files changed

+3
-12
lines changed

docs/src/app.tsx

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
import * as React from 'react'
2-
import * as _ from 'lodash'
32
import { Provider, themes } from '@stardust-ui/react'
43

54
import { mergeThemes } from 'src/lib'

docs/src/examples/components/Chat/Content/ChatExampleReactionGroupMeReacting.shorthand.tsx

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
import * as React from 'react'
2-
import * as _ from 'lodash'
32
import { Avatar, Chat } from '@stardust-ui/react'
43

54
const reactions = [

packages/internal-tooling/eslint/index.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,14 +9,15 @@ module.exports = {
99
rules: {
1010
// False positive on arg types:
1111
// https://github.com/typescript-eslint/typescript-eslint/issues/46
12-
// '@typescript-eslint/no-unused-vars': ['error', { args: 'none' }],
12+
'@typescript-eslint/no-unused-vars': ['error', { args: 'none' }],
13+
1314
'import/no-unresolved': 'off',
1415
'prettier/prettier': 'error',
1516
'react/jsx-filename-extension': ['error', { extensions: ['.js', '.tsx'] }],
17+
'no-unused-vars': 'off', // we use @typescript-eslint/no-unused-vars instead
1618
semi: ['error', 'never'],
1719

1820
// Temporary disabled rules
19-
'@typescript-eslint/no-unused-vars': 'off',
2021
'jsx-a11y/click-events-have-key-events': 'off',
2122
'jsx-a11y/no-static-element-interactions': 'off',
2223
'jsx-a11y/alt-text': 'off',
@@ -89,7 +90,6 @@ module.exports = {
8990
'no-underscore-dangle': 'off',
9091
'no-unused-expressions': 'off',
9192
'no-useless-return': 'off',
92-
'no-unused-vars': 'off',
9393
'no-empty-function': 'off',
9494
'no-useless-constructor': 'off',
9595
'no-useless-escape': 'off',

packages/react/src/lib/accessibility/FocusHandling/FocusContainer.ts

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
1-
import * as _ from 'lodash'
2-
31
export class ContainerFocusHandler {
42
private focusedIndex = 0
53

packages/react/src/themes/teams/components/Divider/dividerVariables.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
import * as _ from 'lodash'
21
import { FontWeightProperty } from 'csstype'
32

43
import { ColorValues } from '../../../types'

packages/react/src/themes/teams/components/Label/labelStyles.ts

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
1-
import * as _ from 'lodash'
2-
31
import { pxToRem } from '../../../../lib'
42
import { ComponentSlotStylesInput, ICSSInJSStyle } from '../../../types'
53
import { LabelProps } from '../../../../components/Label/Label'

perf/types.tsx

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
1-
import * as _ from 'lodash'
2-
31
declare global {
42
interface Window {
53
runMeasures: (filter?: string) => Promise<ProfilerMeasureCycle>

0 commit comments

Comments
 (0)