eslint-plugin-turmag-special-rules 1.0.5 → 1.0.7
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/lib/index.js +6 -6
- package/package.json +2 -1
package/lib/index.js
CHANGED
|
@@ -8,16 +8,16 @@
|
|
|
8
8
|
// Requirements
|
|
9
9
|
//------------------------------------------------------------------------------
|
|
10
10
|
|
|
11
|
-
import
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
// Plugin Definition
|
|
15
|
-
//------------------------------------------------------------------------------
|
|
11
|
+
import { directoryImport } from 'directory-import';
|
|
12
|
+
import path from 'path';
|
|
13
|
+
import { fileURLToPath } from 'url';
|
|
16
14
|
|
|
15
|
+
const __filename = fileURLToPath(import.meta.url);
|
|
16
|
+
const __dirname = path.dirname(__filename);
|
|
17
17
|
|
|
18
18
|
// import all rules in lib/rules
|
|
19
19
|
export default {
|
|
20
|
-
rules:
|
|
20
|
+
rules: directoryImport(`${__dirname}/rules`)
|
|
21
21
|
}
|
|
22
22
|
|
|
23
23
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "eslint-plugin-turmag-special-rules",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.7",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"description": "Special eslint rules for your awesome projects",
|
|
6
6
|
"keywords": [
|
|
@@ -22,6 +22,7 @@
|
|
|
22
22
|
"update:eslint-docs": "eslint-doc-generator"
|
|
23
23
|
},
|
|
24
24
|
"dependencies": {
|
|
25
|
+
"directory-import": "^3.3.2",
|
|
25
26
|
"requireindex": "^1.2.0"
|
|
26
27
|
},
|
|
27
28
|
"devDependencies": {
|