eslint-plugin-turmag-special-rules 1.0.12 → 1.0.13

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 CHANGED
@@ -8,13 +8,17 @@
8
8
  // Requirements
9
9
  //------------------------------------------------------------------------------
10
10
 
11
- import addVueExtension from './rules/add-vue-extension.js';
12
- import importEntitiesByColumnOrLine from './rules/import-entities-by-column-or-line.js';
11
+ import requireindex from 'requireindex';
12
+
13
+ //------------------------------------------------------------------------------
14
+ // Plugin Definition
15
+ //------------------------------------------------------------------------------
16
+
13
17
 
14
18
  // import all rules in lib/rules
15
19
  export default {
16
- rules: {
17
- 'add-vue-extension': addVueExtension,
18
- 'import-entities-by-column-or-line': importEntitiesByColumnOrLine,
19
- }
20
- }
20
+ rules: requireIndex(`${__dirname}/rules`)
21
+ }
22
+
23
+
24
+
@@ -1,7 +1,7 @@
1
1
  import path from 'node:path';
2
2
  import fs from 'node:fs';
3
3
 
4
- export default {
4
+ module.exports = {
5
5
  meta: {
6
6
  fixable: 'code',
7
7
  type: 'suggestion',
@@ -1,4 +1,4 @@
1
- export default {
1
+ module.exports = {
2
2
  meta: {
3
3
  fixable: 'code',
4
4
  type: 'suggestion',
@@ -16,7 +16,7 @@ const determineEntity = (value, specifiers) => {
16
16
  return entity;
17
17
  };
18
18
 
19
- export default {
19
+ module.exports = {
20
20
  meta: {
21
21
  fixable: 'code',
22
22
  type: 'suggestion',
@@ -1,4 +1,4 @@
1
- export default {
1
+ module.exports = {
2
2
  meta: {
3
3
  fixable: 'code',
4
4
  type: 'suggestion',
@@ -1,4 +1,4 @@
1
- export default {
1
+ module.exports = {
2
2
  meta: {
3
3
  fixable: 'code',
4
4
  type: 'suggestion',
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "eslint-plugin-turmag-special-rules",
3
- "version": "1.0.12",
4
- "type": "module",
3
+ "version": "1.0.13",
4
+ "type": "commonjs",
5
5
  "description": "Special eslint rules for your awesome projects",
6
6
  "keywords": [
7
7
  "eslint",