@mimica/eslint-config-typescript 5.1.1 → 5.2.1
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 -15
- package/package.json +2 -5
package/index.mjs
CHANGED
|
@@ -1,23 +1,10 @@
|
|
|
1
|
-
import path from "node:path";
|
|
2
|
-
import { fileURLToPath } from "node:url";
|
|
3
|
-
|
|
4
|
-
import js from "@eslint/js";
|
|
5
|
-
import { FlatCompat } from "@eslint/eslintrc";
|
|
6
|
-
import { fixupConfigRules } from "@eslint/compat";
|
|
7
1
|
import tsEslint from "typescript-eslint";
|
|
8
2
|
import stylisticTs from "@stylistic/eslint-plugin-ts";
|
|
9
3
|
import importPlugin from "eslint-plugin-import";
|
|
10
|
-
|
|
11
|
-
const __filename = fileURLToPath(import.meta.url);
|
|
12
|
-
const __dirname = path.dirname(__filename);
|
|
13
|
-
const compat = new FlatCompat({
|
|
14
|
-
baseDirectory: __dirname,
|
|
15
|
-
recommendedConfig: js.configs.recommended,
|
|
16
|
-
allConfig: js.configs.all,
|
|
17
|
-
});
|
|
4
|
+
import mimicaEslintConfig from "@mimica/eslint-config";
|
|
18
5
|
|
|
19
6
|
export default [
|
|
20
|
-
...
|
|
7
|
+
...mimicaEslintConfig,
|
|
21
8
|
...tsEslint.configs.strictTypeChecked,
|
|
22
9
|
...tsEslint.configs.stylisticTypeChecked,
|
|
23
10
|
importPlugin.flatConfigs.typescript,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@mimica/eslint-config-typescript",
|
|
3
|
-
"version": "5.
|
|
3
|
+
"version": "5.2.1",
|
|
4
4
|
"description": "Mimica eslint config",
|
|
5
5
|
"main": "index.mjs",
|
|
6
6
|
"module": "index.mjs",
|
|
@@ -25,10 +25,7 @@
|
|
|
25
25
|
},
|
|
26
26
|
"homepage": "https://github.com/mimica/eslint-config#readme",
|
|
27
27
|
"dependencies": {
|
|
28
|
-
"@eslint
|
|
29
|
-
"@eslint/eslintrc": "^3.2.0",
|
|
30
|
-
"@eslint/js": "^9.18.0",
|
|
31
|
-
"@mimica/eslint-config": "^2.4.0",
|
|
28
|
+
"@mimica/eslint-config": "^3.0.1",
|
|
32
29
|
"@stylistic/eslint-plugin-ts": "^2.12.1",
|
|
33
30
|
"eslint-plugin-import": "^2.31.0",
|
|
34
31
|
"typescript-eslint": "^8.19.1"
|