@kaizentech/eslint-config-base 1.2.0 → 1.3.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +21 -0
- package/index.js +5 -1
- package/package.json +1 -1
package/README.md
ADDED
@@ -0,0 +1,21 @@
|
|
1
|
+
# @kaizentech/eslint-config-base
|
2
|
+
|
3
|
+
This package contains base javascript style guide
|
4
|
+
|
5
|
+
## Installation
|
6
|
+
```bash
|
7
|
+
yarn add -D @kaizentech/eslint-config-base eslint prettier
|
8
|
+
```
|
9
|
+
|
10
|
+
## Usage
|
11
|
+
first of all create a .eslintrc.json file in the root of your project.
|
12
|
+
|
13
|
+
then add this
|
14
|
+
|
15
|
+
```json
|
16
|
+
{
|
17
|
+
"root": true,
|
18
|
+
"extends": "@kaizentech/base"
|
19
|
+
}
|
20
|
+
|
21
|
+
```
|
package/index.js
CHANGED
@@ -14,7 +14,7 @@ module.exports = {
|
|
14
14
|
'import/order': [
|
15
15
|
'error',
|
16
16
|
{
|
17
|
-
groups: ['builtin', 'external', 'internal'],
|
17
|
+
groups: ['builtin', 'external', 'internal', ['parent', 'sibling', 'index']],
|
18
18
|
pathGroups: [
|
19
19
|
{
|
20
20
|
pattern: 'react',
|
@@ -26,6 +26,10 @@ module.exports = {
|
|
26
26
|
group: 'sibling',
|
27
27
|
patternOptions: { matchBase: true },
|
28
28
|
position: 'after'
|
29
|
+
},
|
30
|
+
{
|
31
|
+
pattern: '@**/**',
|
32
|
+
group: 'internal'
|
29
33
|
}
|
30
34
|
],
|
31
35
|
pathGroupsExcludedImportTypes: ['react'],
|