@mikey-pro/eslint-config 10.0.0 → 10.0.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/overrides.js +2 -6
- package/package.json +16 -2
package/overrides.js
CHANGED
|
@@ -1,6 +1,4 @@
|
|
|
1
1
|
// Modern overrides for different file types and frameworks
|
|
2
|
-
import path from 'node:path';
|
|
3
|
-
|
|
4
2
|
import html from '@html-eslint/eslint-plugin';
|
|
5
3
|
import htmlParser from '@html-eslint/parser';
|
|
6
4
|
import tsPlugin from '@typescript-eslint/eslint-plugin';
|
|
@@ -17,8 +15,6 @@ import jsoncParser from 'jsonc-eslint-parser';
|
|
|
17
15
|
import tomlParser from 'toml-eslint-parser';
|
|
18
16
|
import yamlParser from 'yaml-eslint-parser';
|
|
19
17
|
|
|
20
|
-
const currentDirectory = import.meta.dirname;
|
|
21
|
-
|
|
22
18
|
// TypeScript configuration
|
|
23
19
|
export const ts = {
|
|
24
20
|
files: ['**/*.ts', '**/*.tsx'],
|
|
@@ -28,8 +24,8 @@ export const ts = {
|
|
|
28
24
|
parserOptions: {
|
|
29
25
|
ecmaFeatures: { jsx: true },
|
|
30
26
|
extraFileExtensions: ['.vue', '.svelte'],
|
|
31
|
-
project:
|
|
32
|
-
tsconfigRootDir:
|
|
27
|
+
project: true,
|
|
28
|
+
tsconfigRootDir: process.cwd(),
|
|
33
29
|
},
|
|
34
30
|
sourceType: 'module',
|
|
35
31
|
},
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@mikey-pro/eslint-config",
|
|
3
|
-
"version": "10.0.
|
|
3
|
+
"version": "10.0.1",
|
|
4
4
|
"description": "Mikey Pro ESLint configuration - Ultimate coding style guide for excellence",
|
|
5
5
|
"main": "index.js",
|
|
6
6
|
"types": "index.d.ts",
|
|
@@ -88,7 +88,9 @@
|
|
|
88
88
|
"angular"
|
|
89
89
|
],
|
|
90
90
|
"author": "Mikl Wolfe <wolfe@mikl.io> (https://mikl.io)",
|
|
91
|
-
"browserslist": [
|
|
91
|
+
"browserslist": [
|
|
92
|
+
"defaults"
|
|
93
|
+
],
|
|
92
94
|
"type": "module",
|
|
93
95
|
"engines": {
|
|
94
96
|
"node": ">=20.19.0",
|
|
@@ -106,13 +108,25 @@
|
|
|
106
108
|
"import": "./flat.js",
|
|
107
109
|
"require": "./flat.js"
|
|
108
110
|
},
|
|
111
|
+
"./flat.js": {
|
|
112
|
+
"import": "./flat.js",
|
|
113
|
+
"require": "./flat.js"
|
|
114
|
+
},
|
|
109
115
|
"./overrides": {
|
|
110
116
|
"import": "./overrides.js",
|
|
111
117
|
"require": "./overrides.js"
|
|
112
118
|
},
|
|
119
|
+
"./overrides.js": {
|
|
120
|
+
"import": "./overrides.js",
|
|
121
|
+
"require": "./overrides.js"
|
|
122
|
+
},
|
|
113
123
|
"./base-config": {
|
|
114
124
|
"import": "./base-config.js",
|
|
115
125
|
"require": "./base-config.js"
|
|
126
|
+
},
|
|
127
|
+
"./base-config.js": {
|
|
128
|
+
"import": "./base-config.js",
|
|
129
|
+
"require": "./base-config.js"
|
|
116
130
|
}
|
|
117
131
|
}
|
|
118
132
|
}
|