@egy186/eslint-config 0.79.0 → 0.81.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/base.js +2 -1
- package/jest.js +1 -0
- package/package.json +11 -11
- package/typescript.js +2 -1
package/base.js
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
/* eslint max-lines: "off" */
|
|
4
4
|
|
|
5
5
|
module.exports = {
|
|
6
|
-
env: {
|
|
6
|
+
env: { es2021: true },
|
|
7
7
|
reportUnusedDisableDirectives: true,
|
|
8
8
|
rules: {
|
|
9
9
|
...{
|
|
@@ -99,6 +99,7 @@ module.exports = {
|
|
|
99
99
|
'id-length': 'off',
|
|
100
100
|
'id-match': 'off',
|
|
101
101
|
'init-declarations': 'error',
|
|
102
|
+
'logical-assignment-operators': 'off',
|
|
102
103
|
'max-classes-per-file': 'error',
|
|
103
104
|
'max-depth': 'error',
|
|
104
105
|
'max-lines': 'warn',
|
package/jest.js
CHANGED
|
@@ -24,6 +24,7 @@ module.exports = {
|
|
|
24
24
|
'jest/no-jasmine-globals': 'error',
|
|
25
25
|
'jest/no-large-snapshots': 'warn',
|
|
26
26
|
'jest/no-mocks-import': 'error',
|
|
27
|
+
'jest/no-restricted-jest-methods': 'off',
|
|
27
28
|
'jest/no-restricted-matchers': 'off',
|
|
28
29
|
'jest/no-standalone-expect': 'error',
|
|
29
30
|
'jest/no-test-prefixes': 'error',
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@egy186/eslint-config",
|
|
3
3
|
"description": "Eslint shareable config",
|
|
4
|
-
"version": "0.
|
|
4
|
+
"version": "0.81.0",
|
|
5
5
|
"author": "egy186",
|
|
6
6
|
"bugs": {
|
|
7
7
|
"url": "https://github.com/egy186/eslint-config/issues"
|
|
@@ -10,18 +10,18 @@
|
|
|
10
10
|
"lodash": "^4.17.21"
|
|
11
11
|
},
|
|
12
12
|
"devDependencies": {
|
|
13
|
-
"@typescript-eslint/eslint-plugin": "~5.
|
|
14
|
-
"@typescript-eslint/parser": "~5.
|
|
15
|
-
"eslint": "~8.
|
|
13
|
+
"@typescript-eslint/eslint-plugin": "~5.42.0",
|
|
14
|
+
"@typescript-eslint/parser": "~5.42.0",
|
|
15
|
+
"eslint": "~8.26.0",
|
|
16
16
|
"eslint-plugin-import": "~2.26.0",
|
|
17
|
-
"eslint-plugin-jest": "~27.
|
|
18
|
-
"eslint-plugin-jsdoc": "~39.
|
|
17
|
+
"eslint-plugin-jest": "~27.1.3",
|
|
18
|
+
"eslint-plugin-jsdoc": "~39.4.0",
|
|
19
19
|
"eslint-plugin-node": "~11.1.0",
|
|
20
|
-
"eslint-plugin-react": "~7.31.
|
|
20
|
+
"eslint-plugin-react": "~7.31.10",
|
|
21
21
|
"eslint-plugin-react-hooks": "~4.6.0",
|
|
22
22
|
"husky": "^8.0.1",
|
|
23
23
|
"require-dir": "^1.2.0",
|
|
24
|
-
"typescript": "^4.8.
|
|
24
|
+
"typescript": "^4.8.4"
|
|
25
25
|
},
|
|
26
26
|
"engines": {
|
|
27
27
|
"node": ">=14.19.1"
|
|
@@ -45,9 +45,9 @@
|
|
|
45
45
|
"license": "MIT",
|
|
46
46
|
"main": "index.js",
|
|
47
47
|
"peerDependencies": {
|
|
48
|
-
"@typescript-eslint/eslint-plugin": "^5.
|
|
49
|
-
"@typescript-eslint/parser": "^5.
|
|
50
|
-
"eslint": "^8.
|
|
48
|
+
"@typescript-eslint/eslint-plugin": "^5.42.0",
|
|
49
|
+
"@typescript-eslint/parser": "^5.42.0",
|
|
50
|
+
"eslint": "^8.24.0",
|
|
51
51
|
"eslint-plugin-import": "^2.25.3",
|
|
52
52
|
"eslint-plugin-jest": "^27.0.1",
|
|
53
53
|
"eslint-plugin-jsdoc": "^39.2.1",
|
package/typescript.js
CHANGED
|
@@ -124,6 +124,7 @@ module.exports = {
|
|
|
124
124
|
'@typescript-eslint/no-unsafe-argument': 'error',
|
|
125
125
|
'@typescript-eslint/no-unsafe-assignment': 'error',
|
|
126
126
|
'@typescript-eslint/no-unsafe-call': 'error',
|
|
127
|
+
'@typescript-eslint/no-unsafe-declaration-merging': 'error',
|
|
127
128
|
'@typescript-eslint/no-unsafe-member-access': 'error',
|
|
128
129
|
'@typescript-eslint/no-unsafe-return': 'error',
|
|
129
130
|
'@typescript-eslint/no-unused-expressions': ['error', { enforceForJSX: true }],
|
|
@@ -164,7 +165,7 @@ module.exports = {
|
|
|
164
165
|
'@typescript-eslint/restrict-template-expressions': 'error',
|
|
165
166
|
'@typescript-eslint/return-await': 'error',
|
|
166
167
|
'@typescript-eslint/semi': 'error',
|
|
167
|
-
'@typescript-eslint/sort-type-
|
|
168
|
+
'@typescript-eslint/sort-type-constituents': 'error',
|
|
168
169
|
'@typescript-eslint/space-before-blocks': 'error',
|
|
169
170
|
'@typescript-eslint/space-before-function-paren': ['error', 'always'],
|
|
170
171
|
'@typescript-eslint/space-infix-ops': 'error',
|