Skip to content

Commit 1430fcf

Browse files
committed
fix: import
1 parent 859a03f commit 1430fcf

File tree

3 files changed

+9
-11
lines changed

3 files changed

+9
-11
lines changed

.changeset/curly-comics-confess.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
'@frontendfixer/eslint-config-react': patch
3+
---
4+
5+
fix import problem

index.js

Lines changed: 3 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ module.exports = {
44
root: true,
55
env: {
66
browser: true,
7-
// node: true,
7+
node: true,
88
commonjs: true,
99
es6: true,
1010
jquery: true,
@@ -23,23 +23,16 @@ module.exports = {
2323
},
2424
},
2525
extends: [
26-
'./rules/base.rules',
2726
'eslint:recommended',
2827
'plugin:react/recommended',
2928
'plugin:jsx-a11y/recommended',
3029
'plugin:import/recommended',
3130
'airbnb',
31+
'./rules/base.rules',
3232
'stylelint',
3333
'prettier',
3434
'plugin:prettier/recommended',
3535
],
36-
plugins: [
37-
'html',
38-
'import',
39-
'prettier',
40-
'react',
41-
'react-hooks',
42-
'simple-import-sort',
43-
],
36+
plugins: ['html', 'prettier', 'react', 'react-hooks', 'simple-import-sort'],
4437
ignorePatterns: ['node_modules/'],
4538
};

rules/base.rules.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ module.exports = {
1616
'import/no-cycle': 'off',
1717
'import/prefer-default-export': 'off',
1818
'import/newline-after-import': 'error',
19-
'import/extensions': ['off', 'never'],
19+
'import/extensions': ['warn', 'never'],
2020
'jsx-a11y/anchor-is-valid': [
2121
'warn',
2222
{

0 commit comments

Comments
 (0)