@socprime/master-configuration 1.1.3 → 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 +3 -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'],
|
|
@@ -124,7 +104,9 @@ const typescript = [
|
|
|
124
104
|
extensions: ['.ts', '.tsx', '.d.ts'],
|
|
125
105
|
},
|
|
126
106
|
typescript: {
|
|
127
|
-
project:
|
|
107
|
+
project: [
|
|
108
|
+
'./tsconfig.json',
|
|
109
|
+
],
|
|
128
110
|
},
|
|
129
111
|
},
|
|
130
112
|
},
|
|
@@ -156,7 +138,6 @@ module.exports = {
|
|
|
156
138
|
overrides: [
|
|
157
139
|
...js,
|
|
158
140
|
...typescript,
|
|
159
|
-
...html,
|
|
160
141
|
...json,
|
|
161
142
|
],
|
|
162
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",
|