mirror of
https://github.com/facebook/docusaurus.git
synced 2025-04-30 10:48:05 +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,
|
ERROR,
|
||||||
{ignore: ['^@theme', '^@docusaurus', '^@generated']},
|
{ignore: ['^@theme', '^@docusaurus', '^@generated']},
|
||||||
],
|
],
|
||||||
|
'import/extensions': OFF,
|
||||||
'header/header': [
|
'header/header': [
|
||||||
ERROR,
|
ERROR,
|
||||||
'block',
|
'block',
|
||||||
|
|
|
@ -5,7 +5,7 @@
|
||||||
* LICENSE file in the root directory of this source tree.
|
* 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 useHideableNavbar = hideOnScroll => {
|
||||||
const [isNavbarVisible, setIsNavbarVisible] = useState(true);
|
const [isNavbarVisible, setIsNavbarVisible] = useState(true);
|
||||||
|
|
|
@ -4,6 +4,7 @@
|
||||||
* This source code is licensed under the MIT license found in the
|
* This source code is licensed under the MIT license found in the
|
||||||
* LICENSE file in the root directory of this source tree.
|
* LICENSE file in the root directory of this source tree.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
import * as React from 'react';
|
import * as React from 'react';
|
||||||
|
|
||||||
const useTheme = () => {
|
const useTheme = () => {
|
||||||
|
|
Loading…
Add table
Reference in a new issue