chore(v2): turn off import/extensions ESLint rule

This commit is contained in:
Yangshun Tay 2019-12-22 11:33:18 +08:00
parent 22b1f66d11
commit e39d76c40c
3 changed files with 3 additions and 1 deletions

View file

@ -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',

View file

@ -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);

View file

@ -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 = () => {