-
Notifications
You must be signed in to change notification settings - Fork 67
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Add recommended eslint configuration * Add new lint configuration to templates, cmra, and Modular project * Documentation & changeset * Remove repo-integrity test (duplicate of integration tests) & update snapshots
- Loading branch information
1 parent
2ca7fcd
commit 3141f92
Showing
147 changed files
with
354 additions
and
537 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
--- | ||
'modular-template-app': major | ||
'modular-template-esm-view': major | ||
'modular-template-package': major | ||
'modular-template-source': major | ||
'modular-template-view': major | ||
'create-modular-react-app': minor | ||
'eslint-config-modular-app': minor | ||
--- | ||
|
||
Added new recommended eslint configuration that includes import sorting - | ||
"modular-app/recommended" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
4 changes: 2 additions & 2 deletions
4
packages/create-modular-react-app/src/__tests__/index.test.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
66 changes: 0 additions & 66 deletions
66
packages/create-modular-react-app/src/__tests__/repo-integrity.test.ts
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,45 @@ | ||
'use strict'; | ||
/** | ||
* Stricter variant of the default index.js configuration | ||
* * Adds import sorting rules | ||
*/ | ||
|
||
module.exports = { | ||
extends: [require.resolve('./index')], | ||
overrides: [ | ||
{ | ||
files: ['**/*.ts?(x)', '**/*.js?(x)'], | ||
rules: { | ||
'no-multiple-empty-lines': 1, | ||
'sort-imports': [ | ||
1, | ||
{ | ||
ignoreDeclarationSort: true, | ||
ignoreCase: true, | ||
}, | ||
], | ||
'import/order': [ | ||
1, | ||
{ | ||
groups: [ | ||
'builtin', | ||
'external', | ||
'internal', | ||
['parent', 'sibling'], | ||
'type', | ||
], | ||
pathGroups: [ | ||
{ | ||
pattern: 'react+(|-native)', | ||
group: 'external', | ||
position: 'before', | ||
}, | ||
], | ||
pathGroupsExcludedImportTypes: ['react+(|-native'], | ||
'newlines-between': 'never', | ||
}, | ||
], | ||
}, | ||
}, | ||
], | ||
}; |
Oops, something went wrong.