mirror of
https://github.com/facebook/docusaurus.git
synced 2025-04-30 02:37:59 +02:00
chore(v2): turn off import/extensions ESLint rule
This commit is contained in:
parent
22b1f66d11
commit
e39d76c40c
3 changed files with 3 additions and 1 deletions
|
@ -30,6 +30,7 @@ module.exports = {
|
|||
ERROR,
|
||||
{ignore: ['^@theme', '^@docusaurus', '^@generated']},
|
||||
],
|
||||
'import/extensions': OFF,
|
||||
'header/header': [
|
||||
ERROR,
|
||||
'block',
|
||||
|
|
|
@ -5,7 +5,7 @@
|
|||
* LICENSE file in the root directory of this source tree.
|
||||
*/
|
||||
|
||||
import React, {useState, useCallback, useEffect} from 'react'; // eslint-disable-line no-unused-vars
|
||||
import {useState, useCallback, useEffect} from 'react';
|
||||
|
||||
const useHideableNavbar = hideOnScroll => {
|
||||
const [isNavbarVisible, setIsNavbarVisible] = useState(true);
|
||||
|
|
|
@ -4,6 +4,7 @@
|
|||
* This source code is licensed under the MIT license found in the
|
||||
* LICENSE file in the root directory of this source tree.
|
||||
*/
|
||||
|
||||
import * as React from 'react';
|
||||
|
||||
const useTheme = () => {
|
||||
|
|
Loading…
Add table
Reference in a new issue