@cabify/eslint-config 3.0.1-beta-34 → 3.0.1-beta-35
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.
|
@@ -21,11 +21,15 @@ const getConditionalPackages = () => {
|
|
|
21
21
|
isJestAvailable = isPackageAvailable('jest');
|
|
22
22
|
|
|
23
23
|
if (isTSAvailable) {
|
|
24
|
+
// this file will be included in the build process
|
|
25
|
+
// eslint-disable-next-line import/no-unresolved
|
|
24
26
|
const tsModule = require('./ts.cjs');
|
|
25
27
|
tsConfigs = tsModule.tsLintConfig;
|
|
26
28
|
}
|
|
27
29
|
|
|
28
30
|
if (isJestAvailable) {
|
|
31
|
+
// this file will be included in the build process
|
|
32
|
+
// eslint-disable-next-line import/no-unresolved
|
|
29
33
|
const jestModule = require('./jest.cjs');
|
|
30
34
|
jestConfigs = jestModule.jestConf;
|
|
31
35
|
}
|
package/eslint.config.js
ADDED
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
// /* eslint-disable import/extensions */
|
|
2
|
+
// eslint-disable-next-line import/extensions
|
|
3
|
+
import defaultRules from './configs/base.js';
|
|
4
|
+
|
|
5
|
+
const globalIgnores = {
|
|
6
|
+
ignores: ['dist', 'node_modules/*', 'build', 'scripts', 'vite.config.js'],
|
|
7
|
+
};
|
|
8
|
+
|
|
9
|
+
export default [...defaultRules, globalIgnores];
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@cabify/eslint-config",
|
|
3
|
-
"version": "3.0.1-beta-
|
|
3
|
+
"version": "3.0.1-beta-35",
|
|
4
4
|
"description": "ESLint config for Cabify Javascript projects",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"scripts": {
|
|
@@ -41,11 +41,11 @@
|
|
|
41
41
|
"exports": {
|
|
42
42
|
".": {
|
|
43
43
|
"require": "./dist/eslint.config.cjs",
|
|
44
|
-
"import": "./eslint.config.js"
|
|
44
|
+
"import": "./dist/eslint.config.js"
|
|
45
45
|
}
|
|
46
46
|
},
|
|
47
47
|
"dependencies": {
|
|
48
|
-
"@typescript-eslint/eslint-plugin": "^8.
|
|
48
|
+
"@typescript-eslint/eslint-plugin": "^8.20.0",
|
|
49
49
|
"confusing-browser-globals": "^1.0.10",
|
|
50
50
|
"eslint-config-prettier": "^9.1.0",
|
|
51
51
|
"eslint-plugin-import": "^2.31.0",
|
|
@@ -66,7 +66,7 @@
|
|
|
66
66
|
"devDependencies": {
|
|
67
67
|
"@rollup/plugin-replace": "^6.0.2",
|
|
68
68
|
"eslint": "^9.11.1",
|
|
69
|
-
"prettier": "3.
|
|
69
|
+
"prettier": "3.4.2",
|
|
70
70
|
"rollup-plugin-copy": "^3.5.0",
|
|
71
71
|
"vite": "^6.0.5",
|
|
72
72
|
"vite-plugin-static-copy": "^2.2.0",
|
|
@@ -80,6 +80,7 @@
|
|
|
80
80
|
"yarn": "1.22.17"
|
|
81
81
|
},
|
|
82
82
|
"files": [
|
|
83
|
-
"dist"
|
|
83
|
+
"dist",
|
|
84
|
+
"eslint.config.js"
|
|
84
85
|
]
|
|
85
86
|
}
|