Skip to content

Commit

Permalink
Merge pull request #9 from tritter/main
Browse files Browse the repository at this point in the history
Added sort imports
  • Loading branch information
isilher committed Jan 20, 2022
2 parents 37f47bd + 3cfea09 commit e443fcb
Show file tree
Hide file tree
Showing 4 changed files with 16 additions and 2 deletions.
11 changes: 11 additions & 0 deletions .eslintrc.js
Original file line number Diff line number Diff line change
Expand Up @@ -136,6 +136,17 @@ module.exports = {
},
],

// Sort imports in a default alphabetic order
'sort-imports': [
'error', {
'ignoreCase': false,
'ignoreDeclarationSort': false,
'ignoreMemberSort': false,
'memberSyntaxSortOrder': ["none", "all", "multiple", "single"],
'allowSeparatedGroups': false
}
],

// Sort RN styles, this will sort typed stylenames and style props in alphabetic order
'react-native/sort-styles': [
'error',
Expand Down
3 changes: 3 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,9 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0

## [Unreleased]

## [1.1.5] - 2022-01-19
- Added sorted imports: Sort imports using the recommended sort rule (https://eslint.org/docs/rules/sort-imports)

## [1.1.4] - 2021-05-27

### Added
Expand Down
2 changes: 1 addition & 1 deletion package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
"type": "git",
"url": "https://github.com/Mobiliteitsfabriek/eslint-config-mig-react-native.git"
},
"version": "1.1.4",
"version": "1.1.5",
"description": "eslint config for react native projects developed by the MIG",
"main": "index.js",
"scripts": {
Expand Down

0 comments on commit e443fcb

Please sign in to comment.