Skip to content

Commit

Permalink
chore: install eslint-plugin-import
Browse files Browse the repository at this point in the history
  • Loading branch information
kelp404 committed Mar 15, 2022
1 parent bc121b7 commit 978ff13
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 0 deletions.
9 changes: 9 additions & 0 deletions .eslintrc.js
Original file line number Diff line number Diff line change
Expand Up @@ -26,10 +26,19 @@ module.exports = {
},
plugins: [
'react',
'import',
],
rules: {
'no-eq-null': 0,
eqeqeq: ['error', 'allow-null'],
'valid-jsdoc': ['error'],

// Ensure absolute imports are above relative imports and that unassigned imports are ignored
// https://github.com/benmosher/eslint-plugin-import/blob/master/docs/rules/order.md
'import/order': ['error', {groups: [['builtin', 'external', 'internal']]}],

// Require a newline after the last import/require in a group
// https://github.com/benmosher/eslint-plugin-import/blob/master/docs/rules/newline-after-import.md
'import/newline-after-import': 'error',
},
};
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,7 @@
"eslint-config-xo": "0.40.0",
"eslint-config-xo-react": "0.26.0",
"eslint-config-xo-space": "0.32.0",
"eslint-plugin-import": "2.25.4",
"eslint-plugin-react": "7.29.4",
"eslint-plugin-react-hooks": "4.3.0",
"express": "4.17.3",
Expand Down

0 comments on commit 978ff13

Please sign in to comment.