@lipemat/eslint-config 4.0.0-beta.3 → 4.0.1-beta.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/helpers/config.js +1 -13
- package/package.json +3 -6
package/helpers/config.js
CHANGED
|
@@ -1,6 +1,4 @@
|
|
|
1
1
|
import {getExtensionsConfig} from '@lipemat/js-boilerplate/helpers/config.js';
|
|
2
|
-
import {getPackageConfig} from '@lipemat/js-boilerplate/helpers/package-config.js';
|
|
3
|
-
import path from 'path';
|
|
4
2
|
|
|
5
3
|
|
|
6
4
|
/**
|
|
@@ -24,20 +22,10 @@ import path from 'path';
|
|
|
24
22
|
* }
|
|
25
23
|
* ```
|
|
26
24
|
*
|
|
27
|
-
* @return Linter.Config[]
|
|
25
|
+
* @return {Object[]} - `eslint.Linter.Config[]`
|
|
28
26
|
*/
|
|
29
27
|
export function getConfig( mergedConfig ) {
|
|
30
28
|
const BASE = {configs: mergedConfig};
|
|
31
29
|
mergedConfig = {...BASE, ...getExtensionsConfig( 'eslint.config', BASE )};
|
|
32
|
-
|
|
33
|
-
try {
|
|
34
|
-
const localConfig = require( path.resolve( getPackageConfig().packageDirectory + '/config', 'eslint.config' ) );
|
|
35
|
-
if ( 'function' === typeof localConfig ) {
|
|
36
|
-
mergedConfig = {...mergedConfig, ...localConfig( mergedConfig )};
|
|
37
|
-
} else {
|
|
38
|
-
mergedConfig = {...mergedConfig, ...localConfig};
|
|
39
|
-
}
|
|
40
|
-
} catch ( e ) {
|
|
41
|
-
}
|
|
42
30
|
return mergedConfig.configs;
|
|
43
31
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@lipemat/eslint-config",
|
|
3
|
-
"version": "4.0.
|
|
3
|
+
"version": "4.0.1-beta.2",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"description": "Eslint configuration for all @lipemat packages",
|
|
6
6
|
"engines": {
|
|
@@ -26,6 +26,7 @@
|
|
|
26
26
|
"dependencies": {
|
|
27
27
|
"@eslint/compat": "^1.2.4",
|
|
28
28
|
"@eslint/eslintrc": "^3.2.0",
|
|
29
|
+
"@lipemat/js-boilerplate": "^10.10.6",
|
|
29
30
|
"@stylistic/eslint-plugin-ts": "^2.12.1",
|
|
30
31
|
"@types/eslint": "^9",
|
|
31
32
|
"@typescript-eslint/eslint-plugin": "^8.18.0",
|
|
@@ -38,8 +39,7 @@
|
|
|
38
39
|
"globals": "^15.13.0"
|
|
39
40
|
},
|
|
40
41
|
"devDependencies": {
|
|
41
|
-
"@lipemat/js-boilerplate": "^
|
|
42
|
-
"@lipemat/js-boilerplate-svelte": "^2.0.0-beta.1",
|
|
42
|
+
"@lipemat/js-boilerplate-svelte": "^2.0.0",
|
|
43
43
|
"@types/jest": "^29.5.3",
|
|
44
44
|
"@types/node": "^20",
|
|
45
45
|
"execa": "^5.1.1",
|
|
@@ -47,8 +47,5 @@
|
|
|
47
47
|
"jest-runner-eslint": "^2.2.1",
|
|
48
48
|
"typescript": "^5.7.2"
|
|
49
49
|
},
|
|
50
|
-
"peerDependencies": {
|
|
51
|
-
"@lipemat/js-boilerplate": "^10.3.1"
|
|
52
|
-
},
|
|
53
50
|
"packageManager": "yarn@4.5.3"
|
|
54
51
|
}
|