diff --git a/examples/es6/main.js b/examples/es6/main.js index 3c00835..b324d03 100644 --- a/examples/es6/main.js +++ b/examples/es6/main.js @@ -1,4 +1,4 @@ -import foo from './local-module'; +import foo from './local-module.js'; import fs from 'fs'; import path from 'path'; diff --git a/index.js b/index.js index abc57e1..08a1ac7 100644 --- a/index.js +++ b/index.js @@ -17,6 +17,7 @@ module.exports = { 'dot-notation': ['error', {allowPattern: '^[a-z]+(_[a-z]+)+$'}], eqeqeq: 'error', 'import/default': 'error', + 'import/extensions': ['error', 'always'], 'import/first': 'error', 'import/named': 'error', 'import/no-duplicates': 'error', diff --git a/react.js b/react.js index 2fa0117..ba4fd2d 100644 --- a/react.js +++ b/react.js @@ -2,6 +2,8 @@ module.exports = { extends: ['./index.js'], plugins: ['react', 'react-hooks'], parserOptions: { + ecmaVersion: 'latest', + sourceType: 'module', ecmaFeatures: { jsx: true, },