Skip to content

Commit

Permalink
style(import sorting): added eslint plugin
Browse files Browse the repository at this point in the history
- added eslint/import plugin
  - enabled alphabetical sorting
  - enabled grouping
  • Loading branch information
donni106 authored and Julian Kwast committed Jun 22, 2021
1 parent 624e367 commit 3e4de02
Show file tree
Hide file tree
Showing 3 changed files with 305 additions and 9 deletions.
7 changes: 7 additions & 0 deletions .eslintrc.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ parserOptions:
ecmaVersion: 2018
sourceType: module
plugins:
- import
- react
- react-native
- '@typescript-eslint'
Expand Down Expand Up @@ -54,6 +55,12 @@ rules:
- always
react/display-name:
- off
import/order:
- error
- newlines-between: always
alphabetize:
order: asc
caseInsensitive: true
react-native/no-unused-styles:
- error
react-native/no-inline-styles:
Expand Down
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -92,6 +92,7 @@
"babel-preset-expo": "8.3.0",
"eslint": "6.8.0",
"eslint-config-prettier": "^7.1.0",
"eslint-plugin-import": "^2.23.4",
"eslint-plugin-prettier": "^3.3.0",
"eslint-plugin-react": "7.20.6",
"eslint-plugin-react-native": "3.9.1",
Expand Down
Loading

0 comments on commit 3e4de02

Please sign in to comment.