Skip to content

Commit

Permalink
Merge pull request #356 from wyne/eslint-import-order
Browse files Browse the repository at this point in the history
eslint import order
  • Loading branch information
wyne authored Nov 21, 2023
2 parents d48ae0e + 4b0ca81 commit 4d9e89d
Show file tree
Hide file tree
Showing 43 changed files with 808 additions and 92 deletions.
6 changes: 5 additions & 1 deletion .eslintrc.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ module.exports = {
jest: true,
},
parser: '@typescript-eslint/parser',
plugins: ['@typescript-eslint'],
plugins: ['@typescript-eslint', 'import'],
extends: [
'plugin:@typescript-eslint/recommended',
'plugin:jest/recommended',
Expand All @@ -16,6 +16,10 @@ module.exports = {
'jest/no-disabled-tests': 0,
'semi': ['error', 'always'],
'eol-last': ['error', 'always'],
'import/order': ['error', {
'groups': ['builtin', 'external', 'internal', 'parent', 'sibling', 'index'],
'newlines-between': 'always',
}],
},
ignorePatterns: ['web-build', '__mocks__'],
};
5 changes: 3 additions & 2 deletions App.tsx
Original file line number Diff line number Diff line change
@@ -1,12 +1,13 @@
import React from 'react';
import { Provider } from 'react-redux';
import { PersistGate } from 'redux-persist/integration/react';
import { store, persistor } from './redux/store';
import { StatusBar } from 'expo-status-bar';
import { Navigation } from './src/Navigation';
import { View } from 'react-native';
import { GestureHandlerRootView } from 'react-native-gesture-handler';
import analytics from '@react-native-firebase/analytics';

import { Navigation } from './src/Navigation';
import { store, persistor } from './redux/store';
import { AddendModalContextProvider } from './src/components/Sheets/AddendModalContext';
import { GameSheetContextProvider } from './src/components/Sheets/GameSheetContext';

Expand Down
Loading

0 comments on commit 4d9e89d

Please sign in to comment.