@haltcase/style 2.0.0-canary.1 → 2.0.1-canary.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/eslint/_base.js CHANGED
@@ -5,7 +5,8 @@ const {
5
5
  ecmaVersion,
6
6
  javascriptFiles,
7
7
  levels: { off },
8
- scriptFiles
8
+ scriptFiles,
9
+ commonJsOverrides
9
10
  } = require("./constants");
10
11
 
11
12
  // see https://github.com/eslint/eslint/issues/3458
@@ -71,6 +72,11 @@ module.exports = {
71
72
  "no-console": "off",
72
73
  "unicorn/no-process-exit": "off"
73
74
  }
75
+ },
76
+
77
+ {
78
+ files: ["**/*.cjs"],
79
+ ...commonJsOverrides
74
80
  }
75
81
  ]
76
82
  };
package/eslint/cjs.js CHANGED
@@ -1,21 +1,12 @@
1
1
  "use strict";
2
2
 
3
- const {
4
- commonJsFiles,
5
- levels: { error, off }
6
- } = require("./constants");
3
+ const { commonJsFiles, commonJsOverrides } = require("./constants");
7
4
 
8
5
  module.exports = {
9
6
  overrides: [
10
7
  {
11
8
  files: commonJsFiles,
12
- parserOptions: {
13
- sourceType: "script"
14
- },
15
- rules: {
16
- strict: [error, "global"],
17
- "unicorn/prefer-module": off
18
- }
9
+ ...commonJsOverrides
19
10
  }
20
11
  ]
21
12
  };
@@ -16,5 +16,15 @@ module.exports = {
16
16
  scriptFiles: ["**/scripts/*", "**/prisma/*"],
17
17
 
18
18
  nextJsPageFiles: ["**/{pages,app}/**/*.{m,}{js,ts}x"],
19
- nextJsApiRoutes: ["**/{pages,app}/api/**/*.{m,}{js,ts}"]
19
+ nextJsApiRoutes: ["**/{pages,app}/api/**/*.{m,}{js,ts}"],
20
+
21
+ commonJsOverrides: {
22
+ parserOptions: {
23
+ sourceType: "script"
24
+ },
25
+ rules: {
26
+ strict: ["error", "global"],
27
+ "unicorn/prefer-module": "off"
28
+ }
29
+ }
20
30
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@haltcase/style",
3
- "version": "2.0.0-canary.1",
3
+ "version": "2.0.1-canary.1",
4
4
  "description": "haltcase's web ecosystem style guide & configurations",
5
5
  "keywords": [
6
6
  "eslint",