Skip to content

Commit

Permalink
Switch from disabling rule on certain files to enabling it on certain…
Browse files Browse the repository at this point in the history
… files
  • Loading branch information
eps1lon committed Mar 25, 2021
1 parent fd8fa8a commit 9113a61
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
4 changes: 2 additions & 2 deletions .eslintrc.js
Original file line number Diff line number Diff line change
Expand Up @@ -118,7 +118,6 @@ module.exports = {
'jsx-a11y/no-autofocus': 'off',

'material-ui/docgen-ignore-before-comment': 'error',
'material-ui/mui-name-matches-component-name': 'error',
'material-ui/rules-of-use-theme-variants': 'error',

'react-hooks/exhaustive-deps': ['error', { additionalHooks: 'useEnhancedEffect' }],
Expand Down Expand Up @@ -179,7 +178,6 @@ module.exports = {
],

'material-ui/disallow-active-element-as-key-event-target': 'error',
// 'material-ui/mui-name-matches-component-name': 'off',

// upgraded level from recommended
'mocha/no-exclusive-tests': 'error',
Expand Down Expand Up @@ -358,6 +356,8 @@ module.exports = {
],
},
],

'material-ui/mui-name-matches-component-name': 'error',
},
},
],
Expand Down
1 change: 0 additions & 1 deletion packages/material-ui/src/styles/useThemeProps.spec.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
/* eslint-disable material-ui/mui-name-matches-component-name */
import { Theme, unstable_useThemeProps as useThemeProps } from '@material-ui/core/styles';
import { SliderProps } from '@material-ui/core/Slider';
import { expectType } from '@material-ui/types';
Expand Down

0 comments on commit 9113a61

Please sign in to comment.