eslint-config-reverentgeek 6.1.0 → 6.1.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.
Files changed (3) hide show
  1. package/blog.js +16 -11
  2. package/package.json +1 -1
  3. package/utils.js +0 -1
package/blog.js CHANGED
@@ -1,13 +1,18 @@
1
1
  "use strict";
2
- const styles = require( "@stylistic/eslint-plugin" );
3
-
4
- module.exports = {
5
- plugins: {
6
- "@stylistic": styles
7
- },
8
- rules: {
9
- "no-console": [ "off" ],
10
- "@stylistic/indent": [ "error", 2 ]
11
- }
12
- };
2
+
3
+ async function createConfig() {
4
+ const styles = await import( "@stylistic/eslint-plugin" );
5
+
6
+ return {
7
+ plugins: {
8
+ "@stylistic": styles.default
9
+ },
10
+ rules: {
11
+ "no-console": [ "off" ],
12
+ "@stylistic/indent": [ "error", 2 ]
13
+ }
14
+ };
15
+ }
16
+
17
+ module.exports = createConfig();
13
18
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "eslint-config-reverentgeek",
3
- "version": "6.1.0",
3
+ "version": "6.1.1",
4
4
  "description": "ESLint rules that ReverentGeek likes :)",
5
5
  "main": "index.js",
6
6
  "repository": {
package/utils.js CHANGED
@@ -1,5 +1,4 @@
1
1
  "use strict";
2
- // merge-configs.js
3
2
  // Utility to merge ESLint config objects for name, plugins, languageOptions, and rules
4
3
 
5
4
  function merge( ...configs ) {