@fullstacksjs/eslint-config 6.7.0 → 6.8.1
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 +15 -0
- package/cypress.js +12 -0
- package/esm.js +13 -0
- package/index.js +1 -0
- package/package.json +15 -6
- package/rules/import.js +1 -1
package/README.md
CHANGED
|
@@ -13,26 +13,38 @@
|
|
|
13
13
|
## Installation
|
|
14
14
|
|
|
15
15
|
If you use [ESLint](https://eslint.org/) alongside [TypeScript](https://typescriptlang.org/)
|
|
16
|
+
|
|
16
17
|
### npm :
|
|
18
|
+
|
|
17
19
|
```sh
|
|
18
20
|
$ npm install --save-dev @fullstacksjs/eslint-config eslint prettier typescript
|
|
19
21
|
```
|
|
22
|
+
|
|
20
23
|
### yarn :
|
|
24
|
+
|
|
21
25
|
```sh
|
|
22
26
|
$ yarn add --dev @fullstacksjs/eslint-config eslint prettier typescript
|
|
23
27
|
```
|
|
28
|
+
|
|
24
29
|
for JavaScript development
|
|
30
|
+
|
|
25
31
|
### npm :
|
|
32
|
+
|
|
26
33
|
```sh
|
|
27
34
|
$ npm install --save-dev @fullstacksjs/eslint-config eslint prettier
|
|
28
35
|
```
|
|
36
|
+
|
|
29
37
|
### yarn :
|
|
38
|
+
|
|
30
39
|
```sh
|
|
31
40
|
$ yarn add --dev @fullstacksjs/eslint-config eslint prettier
|
|
32
41
|
```
|
|
42
|
+
|
|
33
43
|
optional dependencies (if you need):
|
|
44
|
+
|
|
34
45
|
* react
|
|
35
46
|
* jest
|
|
47
|
+
* cypress
|
|
36
48
|
|
|
37
49
|
## Usage
|
|
38
50
|
|
|
@@ -56,6 +68,8 @@ It reads your root `package.json` dependencies and includes necessary rules.
|
|
|
56
68
|
"@fullstacksjs/eslint-config/react",
|
|
57
69
|
"@fullstacksjs/eslint-config/typescript",
|
|
58
70
|
"@fullstacksjs/eslint-config/strict",
|
|
71
|
+
"@fullstacksjs/eslint-config/cypress",
|
|
72
|
+
"@fullstacksjs/eslint-config/esm", // for native ESM modules
|
|
59
73
|
"@fullstacksjs/eslint-config/typecheck" // ⚠️ Needs configurations (not included in default config)
|
|
60
74
|
]
|
|
61
75
|
}
|
|
@@ -82,6 +96,7 @@ If you need more advanced `typescript-eslint` rules, then you can extend from `"
|
|
|
82
96
|
* @typescript-eslint/eslint-plugin
|
|
83
97
|
* eslint-plugin-import
|
|
84
98
|
* eslint-plugin-jest
|
|
99
|
+
* eslint-plugin-cypress
|
|
85
100
|
* eslint-plugin-jsx-a11y
|
|
86
101
|
* eslint-plugin-prettier
|
|
87
102
|
* eslint-plugin-react
|
package/cypress.js
ADDED
package/esm.js
ADDED
package/index.js
CHANGED
|
@@ -14,5 +14,6 @@ module.exports = {
|
|
|
14
14
|
packages.ifAnyDep('jest', () => require.resolve('./jest')),
|
|
15
15
|
packages.ifAnyDep('react', () => require.resolve('./react')),
|
|
16
16
|
packages.ifAnyDep('typescript', () => require.resolve('./typescript')),
|
|
17
|
+
packages.ifAnyDep('cypress', () => require.resolve('./cypress')),
|
|
17
18
|
].filter(Boolean),
|
|
18
19
|
};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@fullstacksjs/eslint-config",
|
|
3
|
-
"version": "6.
|
|
3
|
+
"version": "6.8.1",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"author": "fullstacks <fullstacksjs@gmail.com>",
|
|
6
6
|
"description": "fullstacks eslint config",
|
|
@@ -16,9 +16,11 @@
|
|
|
16
16
|
"base.js",
|
|
17
17
|
"index.js",
|
|
18
18
|
"jest.js",
|
|
19
|
+
"cypress.js",
|
|
19
20
|
"react.js",
|
|
20
21
|
"typescript.js",
|
|
21
|
-
"typecheck.js"
|
|
22
|
+
"typecheck.js",
|
|
23
|
+
"esm.js"
|
|
22
24
|
],
|
|
23
25
|
"scripts": {
|
|
24
26
|
"lint": "eslint .",
|
|
@@ -42,7 +44,7 @@
|
|
|
42
44
|
"eslint-import-resolver-typescript": "2.5.0",
|
|
43
45
|
"eslint-plugin-cypress": "2.12.1",
|
|
44
46
|
"eslint-plugin-fp": "2.3.0",
|
|
45
|
-
"eslint-plugin-import": "2.
|
|
47
|
+
"eslint-plugin-import": "2.25.2",
|
|
46
48
|
"eslint-plugin-jest": "24.4.0",
|
|
47
49
|
"eslint-plugin-jsx-a11y": "6.4.1",
|
|
48
50
|
"eslint-plugin-node": "11.1.0",
|
|
@@ -66,10 +68,11 @@
|
|
|
66
68
|
"typescript": "4.4.3"
|
|
67
69
|
},
|
|
68
70
|
"peerDependencies": {
|
|
69
|
-
"eslint": "
|
|
70
|
-
"prettier": "
|
|
71
|
+
"eslint": "7",
|
|
72
|
+
"prettier": "2",
|
|
71
73
|
"react": ">=16",
|
|
72
|
-
"typescript": "
|
|
74
|
+
"typescript": "4",
|
|
75
|
+
"cypress": "8"
|
|
73
76
|
},
|
|
74
77
|
"peerDependenciesMeta": {
|
|
75
78
|
"typescript": {
|
|
@@ -77,6 +80,12 @@
|
|
|
77
80
|
},
|
|
78
81
|
"react": {
|
|
79
82
|
"optional": true
|
|
83
|
+
},
|
|
84
|
+
"cypress": {
|
|
85
|
+
"optional": true
|
|
86
|
+
},
|
|
87
|
+
"jest": {
|
|
88
|
+
"optional": true
|
|
80
89
|
}
|
|
81
90
|
}
|
|
82
91
|
}
|
package/rules/import.js
CHANGED
|
@@ -35,7 +35,7 @@ module.exports = {
|
|
|
35
35
|
'import/no-restricted-paths': 'off',
|
|
36
36
|
'import/no-self-import': 'error',
|
|
37
37
|
'import/no-unassigned-import': 'off',
|
|
38
|
-
'import/no-unresolved': 'error',
|
|
38
|
+
'import/no-unresolved': ['error', { caseSensitiveStrict: true }],
|
|
39
39
|
'import/no-unused-modules': 'off',
|
|
40
40
|
'import/no-useless-path-segments': 'off',
|
|
41
41
|
'import/no-webpack-loader-syntax': 'error',
|