@neovici/cfg 1.12.2 → 1.13.2
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/eslint/index.js +1 -8
- package/package.json +7 -8
- package/eslint/node-enhanced.js +0 -26
package/eslint/index.js
CHANGED
|
@@ -1,5 +1,3 @@
|
|
|
1
|
-
const path = require('path');
|
|
2
|
-
|
|
3
1
|
module.exports = {
|
|
4
2
|
env: {
|
|
5
3
|
browser: true,
|
|
@@ -135,10 +133,5 @@ module.exports = {
|
|
|
135
133
|
files: ['**/*.test.js'],
|
|
136
134
|
extends: './test'
|
|
137
135
|
}
|
|
138
|
-
]
|
|
139
|
-
settings: {
|
|
140
|
-
'import/resolver': {
|
|
141
|
-
[path.resolve(__dirname, 'node-enhanced.js')]: {},
|
|
142
|
-
}
|
|
143
|
-
}
|
|
136
|
+
]
|
|
144
137
|
};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@neovici/cfg",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.13.2",
|
|
4
4
|
"description": "Configuration for Neovici packages",
|
|
5
5
|
"homepage": "https://github.com/Neovici/cfg#readme",
|
|
6
6
|
"bugs": {
|
|
@@ -45,25 +45,24 @@
|
|
|
45
45
|
]
|
|
46
46
|
},
|
|
47
47
|
"dependencies": {
|
|
48
|
-
"@babel/core": "^7.
|
|
48
|
+
"@babel/core": "^7.18.0",
|
|
49
49
|
"@babel/eslint-parser": "^7.16.0",
|
|
50
|
+
"@web/test-runner": "^0.13.27",
|
|
50
51
|
"@web/test-runner-playwright": "^0.8.8",
|
|
51
|
-
"
|
|
52
|
-
"eslint": "^8.2.0",
|
|
52
|
+
"eslint": "^8.15.0",
|
|
53
53
|
"eslint-config-prettier": "^8.4.0",
|
|
54
54
|
"eslint-import-resolver-alias": "^1.1.2",
|
|
55
55
|
"eslint-plugin-html": "^6.2.0",
|
|
56
56
|
"eslint-plugin-import": "^2.25.0",
|
|
57
57
|
"eslint-plugin-mocha": "^10.0.0",
|
|
58
|
-
"is-core-module": "^2.8.1",
|
|
59
58
|
"prettier": "^2.5.0"
|
|
60
59
|
},
|
|
61
60
|
"devDependencies": {
|
|
62
|
-
"@commitlint/cli": "^
|
|
63
|
-
"@commitlint/config-conventional": "^
|
|
61
|
+
"@commitlint/cli": "^17.0.0",
|
|
62
|
+
"@commitlint/config-conventional": "^17.0.0",
|
|
64
63
|
"@semantic-release/changelog": "^6.0.0",
|
|
65
64
|
"@semantic-release/git": "^10.0.0",
|
|
66
|
-
"husky": "^
|
|
65
|
+
"husky": "^8.0.0",
|
|
67
66
|
"semantic-release": "^19.0.0"
|
|
68
67
|
}
|
|
69
68
|
}
|
package/eslint/node-enhanced.js
DELETED
|
@@ -1,26 +0,0 @@
|
|
|
1
|
-
/* eslint-env node */
|
|
2
|
-
/* eslint-disable import/group-exports */
|
|
3
|
-
const { create } = require('enhanced-resolve'),
|
|
4
|
-
path = require('path'),
|
|
5
|
-
isCore = require('is-core-module');
|
|
6
|
-
|
|
7
|
-
let resolver;
|
|
8
|
-
|
|
9
|
-
exports.interfaceVersion = 2;
|
|
10
|
-
|
|
11
|
-
exports.resolve = (source, file, config = {}) => {
|
|
12
|
-
resolver = resolver || create.sync(config);
|
|
13
|
-
if (isCore(source)) {
|
|
14
|
-
return { found: true, path: null };
|
|
15
|
-
}
|
|
16
|
-
|
|
17
|
-
try {
|
|
18
|
-
const resolved = resolver({}, path.dirname(file), source);
|
|
19
|
-
return {
|
|
20
|
-
found: true,
|
|
21
|
-
path: resolved,
|
|
22
|
-
};
|
|
23
|
-
} catch (err) {
|
|
24
|
-
return { found: false };
|
|
25
|
-
}
|
|
26
|
-
};
|