@socprime/master-configuration 1.1.3 → 1.1.5
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 +4 -22
- 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',
|
|
@@ -42,22 +38,6 @@ const javascriptRules = {
|
|
|
42
38
|
'import/no-dynamic-require': 1,
|
|
43
39
|
};
|
|
44
40
|
|
|
45
|
-
const html = [
|
|
46
|
-
{
|
|
47
|
-
files: ['*.html'],
|
|
48
|
-
parser: '@html-eslint/parser',
|
|
49
|
-
plugins: [
|
|
50
|
-
'@html-eslint',
|
|
51
|
-
'html',
|
|
52
|
-
],
|
|
53
|
-
extends: ['plugin:@html-eslint/recommended'],
|
|
54
|
-
rules: {
|
|
55
|
-
'@html-eslint/no-duplicate-id': 'error',
|
|
56
|
-
'@html-eslint/indent': ['error', 2],
|
|
57
|
-
},
|
|
58
|
-
},
|
|
59
|
-
];
|
|
60
|
-
|
|
61
41
|
const json = [
|
|
62
42
|
{
|
|
63
43
|
files: ['*.json'],
|
|
@@ -66,6 +46,7 @@ const json = [
|
|
|
66
46
|
'plugin:jsonc/all',
|
|
67
47
|
],
|
|
68
48
|
rules: {
|
|
49
|
+
'jsonc/array-bracket-newline': 0,
|
|
69
50
|
'jsonc/indent': ['error', 2],
|
|
70
51
|
},
|
|
71
52
|
},
|
|
@@ -124,7 +105,9 @@ const typescript = [
|
|
|
124
105
|
extensions: ['.ts', '.tsx', '.d.ts'],
|
|
125
106
|
},
|
|
126
107
|
typescript: {
|
|
127
|
-
project:
|
|
108
|
+
project: [
|
|
109
|
+
'./tsconfig.json',
|
|
110
|
+
],
|
|
128
111
|
},
|
|
129
112
|
},
|
|
130
113
|
},
|
|
@@ -156,7 +139,6 @@ module.exports = {
|
|
|
156
139
|
overrides: [
|
|
157
140
|
...js,
|
|
158
141
|
...typescript,
|
|
159
|
-
...html,
|
|
160
142
|
...json,
|
|
161
143
|
],
|
|
162
144
|
};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@socprime/master-configuration",
|
|
3
|
-
"version": "1.1.
|
|
3
|
+
"version": "1.1.5",
|
|
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",
|