@socprime/master-configuration 1.1.2 → 1.1.4
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/.eslintrc.js +17 -28
- package/package.json +1 -4
package/.eslintrc.js
CHANGED
|
@@ -1,7 +1,3 @@
|
|
|
1
|
-
const { join } = require('path');
|
|
2
|
-
|
|
3
|
-
const tsConfigFile = require(join(__dirname, 'tsconfig.json'));
|
|
4
|
-
|
|
5
1
|
const extendAirBnBRules = [
|
|
6
2
|
'airbnb-base',
|
|
7
3
|
'airbnb/hooks',
|
|
@@ -9,7 +5,6 @@ const extendAirBnBRules = [
|
|
|
9
5
|
|
|
10
6
|
const javascriptRules = {
|
|
11
7
|
'no-plusplus': 0,
|
|
12
|
-
'arrow-body-style': 0,
|
|
13
8
|
'no-nested-ternary': 0,
|
|
14
9
|
'no-await-in-loop': 1,
|
|
15
10
|
'no-param-reassign': 1,
|
|
@@ -19,37 +14,30 @@ const javascriptRules = {
|
|
|
19
14
|
'no-empty-function': 1,
|
|
20
15
|
'no-empty': 1,
|
|
21
16
|
'no-use-before-define': 0,
|
|
17
|
+
'no-continue': 1,
|
|
18
|
+
'no-control-regex': 0,
|
|
19
|
+
'no-case-declarations': 0,
|
|
20
|
+
'no-restricted-syntax': 1,
|
|
21
|
+
'no-useless-constructor': 1,
|
|
22
|
+
'no-useless-catch': 1,
|
|
23
|
+
|
|
24
|
+
'arrow-body-style': 0,
|
|
22
25
|
'global-require': 1,
|
|
26
|
+
'max-len': 1,
|
|
27
|
+
'prefer-destructuring': 1,
|
|
28
|
+
camelcase: 1,
|
|
29
|
+
'class-methods-use-this': 1,
|
|
30
|
+
|
|
23
31
|
'import/order': 0,
|
|
32
|
+
'import/no-unresolved': 1,
|
|
24
33
|
'import/prefer-default-export': 0,
|
|
25
34
|
'import/extensions': 0,
|
|
26
35
|
'import/no-extraneous-dependencies': 0,
|
|
27
36
|
'import/no-relative-packages': 0,
|
|
28
|
-
'no-continue': 1,
|
|
29
37
|
'import/no-cycle': 1,
|
|
30
|
-
'class-methods-use-this': 1,
|
|
31
38
|
'import/no-dynamic-require': 1,
|
|
32
|
-
'no-restricted-syntax': 1,
|
|
33
|
-
'no-useless-constructor': 1,
|
|
34
|
-
'prefer-destructuring': 1,
|
|
35
39
|
};
|
|
36
40
|
|
|
37
|
-
const html = [
|
|
38
|
-
{
|
|
39
|
-
files: ['*.html'],
|
|
40
|
-
parser: '@html-eslint/parser',
|
|
41
|
-
plugins: [
|
|
42
|
-
'@html-eslint',
|
|
43
|
-
'html',
|
|
44
|
-
],
|
|
45
|
-
extends: ['plugin:@html-eslint/recommended'],
|
|
46
|
-
rules: {
|
|
47
|
-
'@html-eslint/no-duplicate-id': 'error',
|
|
48
|
-
'@html-eslint/indent': ['error', 2],
|
|
49
|
-
},
|
|
50
|
-
},
|
|
51
|
-
];
|
|
52
|
-
|
|
53
41
|
const json = [
|
|
54
42
|
{
|
|
55
43
|
files: ['*.json'],
|
|
@@ -116,7 +104,9 @@ const typescript = [
|
|
|
116
104
|
extensions: ['.ts', '.tsx', '.d.ts'],
|
|
117
105
|
},
|
|
118
106
|
typescript: {
|
|
119
|
-
project:
|
|
107
|
+
project: [
|
|
108
|
+
'./tsconfig.json',
|
|
109
|
+
],
|
|
120
110
|
},
|
|
121
111
|
},
|
|
122
112
|
},
|
|
@@ -148,7 +138,6 @@ module.exports = {
|
|
|
148
138
|
overrides: [
|
|
149
139
|
...js,
|
|
150
140
|
...typescript,
|
|
151
|
-
...html,
|
|
152
141
|
...json,
|
|
153
142
|
],
|
|
154
143
|
};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@socprime/master-configuration",
|
|
3
|
-
"version": "1.1.
|
|
3
|
+
"version": "1.1.4",
|
|
4
4
|
"author": "Pavel Nedzelskiy <pavlo.nedzelskyi@socprime.com>",
|
|
5
5
|
"license": "ISC",
|
|
6
6
|
"scripts": {
|
|
@@ -17,14 +17,11 @@
|
|
|
17
17
|
"@babel/preset-env": "^7.22.20",
|
|
18
18
|
"@babel/preset-react": "^7.22.15",
|
|
19
19
|
"@babel/preset-typescript": "^7.23.0",
|
|
20
|
-
"@html-eslint/eslint-plugin": "^0.19.1",
|
|
21
|
-
"@html-eslint/parser": "^0.19.1",
|
|
22
20
|
"@pmmmwh/react-refresh-webpack-plugin": "^0.5.11",
|
|
23
21
|
"@typescript-eslint/eslint-plugin": "^8.9.0",
|
|
24
22
|
"@typescript-eslint/parser": "^8.9.0",
|
|
25
23
|
"eslint": "^8.50.0",
|
|
26
24
|
"eslint-config-airbnb": "^19.0.4",
|
|
27
|
-
"eslint-plugin-html": "^7.1.0",
|
|
28
25
|
"eslint-plugin-import": "^2.31.0",
|
|
29
26
|
"eslint-plugin-jsonc": "^2.16.0",
|
|
30
27
|
"eslint-plugin-react-hooks": "^5.0.0",
|