@mimica/eslint-config 3.0.2 → 3.2.0
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/index.mjs +2 -6
- package/package.json +7 -2
package/index.mjs
CHANGED
|
@@ -1,6 +1,3 @@
|
|
|
1
|
-
import path from "node:path";
|
|
2
|
-
import { fileURLToPath } from "node:url";
|
|
3
|
-
|
|
4
1
|
import js from "@eslint/js";
|
|
5
2
|
import { FlatCompat } from "@eslint/eslintrc";
|
|
6
3
|
|
|
@@ -12,10 +9,8 @@ import promise from "eslint-plugin-promise";
|
|
|
12
9
|
import youDontNeedLodashUnderscore from "eslint-plugin-you-dont-need-lodash-underscore";
|
|
13
10
|
import inker from "eslint-plugin-inker";
|
|
14
11
|
|
|
15
|
-
const __filename = fileURLToPath(import.meta.url);
|
|
16
|
-
const __dirname = path.dirname(__filename);
|
|
17
12
|
const compat = new FlatCompat({
|
|
18
|
-
baseDirectory:
|
|
13
|
+
baseDirectory: import.meta.dirname,
|
|
19
14
|
recommendedConfig: js.configs.recommended,
|
|
20
15
|
allConfig: js.configs.all,
|
|
21
16
|
});
|
|
@@ -243,6 +238,7 @@ export default [
|
|
|
243
238
|
},
|
|
244
239
|
],
|
|
245
240
|
"inker/no-true-as-default": 2,
|
|
241
|
+
"inker/node-req-header-casing": 2,
|
|
246
242
|
|
|
247
243
|
"import/order": [
|
|
248
244
|
2,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@mimica/eslint-config",
|
|
3
|
-
"version": "3.0
|
|
3
|
+
"version": "3.2.0",
|
|
4
4
|
"description": "Mimica eslint config",
|
|
5
5
|
"main": "index.mjs",
|
|
6
6
|
"module": "index.mjs",
|
|
@@ -32,10 +32,15 @@
|
|
|
32
32
|
"eslint-plugin-inker": "^2.2.2",
|
|
33
33
|
"eslint-plugin-promise": "^7.1.0",
|
|
34
34
|
"eslint-plugin-sonarjs": "^3.0.1",
|
|
35
|
-
"eslint-plugin-unicorn": "^
|
|
35
|
+
"eslint-plugin-unicorn": "^57.0.0",
|
|
36
36
|
"eslint-plugin-you-dont-need-lodash-underscore": "^6.12.0"
|
|
37
37
|
},
|
|
38
38
|
"devDependencies": {
|
|
39
39
|
"prettier": "^3.0.3"
|
|
40
|
+
},
|
|
41
|
+
"overrides": {
|
|
42
|
+
"eslint-config-airbnb-base": {
|
|
43
|
+
"eslint": "^9"
|
|
44
|
+
}
|
|
40
45
|
}
|
|
41
46
|
}
|