We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 5e39d04 + 5d32888 commit e3eb9abCopy full SHA for e3eb9ab
examples/es6/main.js
@@ -1,4 +1,4 @@
1
-import foo from './local-module';
+import foo from './local-module.js';
2
import fs from 'fs';
3
import path from 'path';
4
index.js
@@ -17,6 +17,7 @@ module.exports = {
17
'dot-notation': ['error', {allowPattern: '^[a-z]+(_[a-z]+)+$'}],
18
eqeqeq: 'error',
19
'import/default': 'error',
20
+ 'import/extensions': ['error', 'always'],
21
'import/first': 'error',
22
'import/named': 'error',
23
'import/no-duplicates': 'error',
react.js
@@ -2,6 +2,8 @@ module.exports = {
extends: ['./index.js'],
plugins: ['react', 'react-hooks'],
parserOptions: {
5
+ ecmaVersion: 'latest',
6
+ sourceType: 'module',
7
ecmaFeatures: {
8
jsx: true,
9
},
0 commit comments