@mikey-pro/eslint-config 8.0.10 → 8.0.12
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/overrides.js +4 -1
- package/package.json +1 -11
package/overrides.js
CHANGED
|
@@ -1,9 +1,12 @@
|
|
|
1
1
|
import path from 'node:path';
|
|
2
|
+
import { fileURLToPath } from 'node:url';
|
|
2
3
|
import typescriptParser from '@typescript-eslint/parser';
|
|
3
4
|
import typeScriptPlugin from '@typescript-eslint/eslint-plugin';
|
|
4
5
|
import importPlugin from 'eslint-plugin-import';
|
|
5
6
|
import markdownPlugin from 'eslint-plugin-markdownlint';
|
|
6
7
|
|
|
8
|
+
const currentDir = path.dirname(fileURLToPath(import.meta.url));
|
|
9
|
+
|
|
7
10
|
const ts = {
|
|
8
11
|
files: ['*.ts', '*.tsx'],
|
|
9
12
|
languageOptions: {
|
|
@@ -16,7 +19,7 @@ const ts = {
|
|
|
16
19
|
extraFileExtensions: ['.vue', '.svelte'],
|
|
17
20
|
sourceType: 'module',
|
|
18
21
|
project: 'tsconfig.json',
|
|
19
|
-
tsconfigRootDir: path.join(
|
|
22
|
+
tsconfigRootDir: path.join(currentDir, '../../..'),
|
|
20
23
|
},
|
|
21
24
|
},
|
|
22
25
|
plugins: {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@mikey-pro/eslint-config",
|
|
3
|
-
"version": "8.0.
|
|
3
|
+
"version": "8.0.12",
|
|
4
4
|
"description": "Mikey Pro ESLint configuration",
|
|
5
5
|
"main": "index.js",
|
|
6
6
|
"types": "index.d.ts",
|
|
@@ -52,16 +52,6 @@
|
|
|
52
52
|
"eslint-plugin-radar": "^0.2.1",
|
|
53
53
|
"eslint-plugin-optimize-regex": "^1.2.1"
|
|
54
54
|
},
|
|
55
|
-
"peerDependencies": {
|
|
56
|
-
"eslint": "^8.57.0",
|
|
57
|
-
"typescript": "^5.3.0",
|
|
58
|
-
"prettier": "^3.2.0",
|
|
59
|
-
"@babel/core": "^7.24.0",
|
|
60
|
-
"@typescript-eslint/parser": "^7.0.0",
|
|
61
|
-
"eslint-plugin-import": "^2.31.0",
|
|
62
|
-
"eslint-plugin-n": "^17.0.0",
|
|
63
|
-
"eslint-plugin-prettier": "^5.0.0"
|
|
64
|
-
},
|
|
65
55
|
"peerDependenciesMeta": {
|
|
66
56
|
"typescript": {
|
|
67
57
|
"optional": true
|