diff --git a/.eslintrc.js b/.eslintrc.js index 692593d26..5448d8d82 100644 --- a/.eslintrc.js +++ b/.eslintrc.js @@ -6,7 +6,5 @@ module.exports = createConfig('eslint', { 'import/no-dynamic-require': 'off', 'global-require': 'off', 'no-template-curly-in-string': 'off', - 'import/no-import-module-export': 'off', - 'react/function-component-definition': [2, { namedComponents: 'arrow-function' }], }, }); diff --git a/config/.eslintrc.js b/config/.eslintrc.js index 48dd6d5c2..78149d727 100644 --- a/config/.eslintrc.js +++ b/config/.eslintrc.js @@ -33,6 +33,8 @@ module.exports = { components: ['Link'], specialLink: ['to'], }], + 'import/no-import-module-export': 'off', + 'react/function-component-definition': [2, { namedComponents: 'arrow-function' }], }, globals: { newrelic: false, diff --git a/example/src/App.jsx b/example/src/App.jsx index fa92185af..2f1346339 100644 --- a/example/src/App.jsx +++ b/example/src/App.jsx @@ -4,6 +4,7 @@ import appleImg from './apple.jpg'; import './style.scss'; +// eslint-disable-next-line react/function-component-definition export default function App() { const newEnglandApples = ['macintosh', 'granny smith']; const allApples = [...newEnglandApples, 'fuji', 'golden delicious'];