@storm-software/oxlint 0.0.2 → 0.0.3

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.
@@ -0,0 +1,16 @@
1
+ import config from 'eslint-plugin-prettier/recommended';
2
+
3
+ // src/configs/prettier.ts
4
+ function prettier() {
5
+ return {
6
+ jsPlugins: ["eslint-plugin-prettier"],
7
+ rules: {
8
+ ...config.rules,
9
+ "prettier/prettier": "error",
10
+ "arrow-body-style": "off",
11
+ "prefer-arrow-callback": "off"
12
+ }
13
+ };
14
+ }
15
+
16
+ export { prettier };
@@ -1,3 +1,4 @@
1
+ import { storybook } from './chunk-KRBDXNMO.js';
1
2
  import { test } from './chunk-IYISSAYD.js';
2
3
  import { tsdoc } from './chunk-ORLPYCNP.js';
3
4
  import { typescript } from './chunk-GSFW4I7Y.js';
@@ -7,11 +8,11 @@ import { GLOB_EXCLUDE } from './chunk-HZVUO4DQ.js';
7
8
  import { next } from './chunk-66XRZUEY.js';
8
9
  import { node } from './chunk-SGIBJGAV.js';
9
10
  import { pnpm } from './chunk-24KYXRHB.js';
11
+ import { prettier } from './chunk-GEMVBBN7.js';
10
12
  import { promise } from './chunk-WQ37FH6C.js';
11
13
  import { reactPerf } from './chunk-JHRYYA2I.js';
12
14
  import { react } from './chunk-7WK2CHER.js';
13
15
  import { regexp } from './chunk-I47UNAPW.js';
14
- import { storybook } from './chunk-KRBDXNMO.js';
15
16
  import { banner } from './chunk-5QRE5J4W.js';
16
17
  import { imports } from './chunk-5IA7BNJZ.js';
17
18
  import { javascript } from './chunk-UMR5HNLA.js';
@@ -2021,6 +2022,7 @@ async function getStormConfig(options = {}, ...userConfigs) {
2021
2022
  jsdoc: enableJsdoc = true,
2022
2023
  node: enableNode = true,
2023
2024
  promise: enablePromise = true,
2025
+ prettier: enablePrettier = true,
2024
2026
  pnpm: enablePnpm = true,
2025
2027
  tsdoc: enableTSDoc = true,
2026
2028
  unicorn: enableUnicorn = true,
@@ -2078,6 +2080,9 @@ async function getStormConfig(options = {}, ...userConfigs) {
2078
2080
  if (enablePromise) {
2079
2081
  configs.push(promise());
2080
2082
  }
2083
+ if (enablePrettier) {
2084
+ configs.push(prettier());
2085
+ }
2081
2086
  if (enableUnicorn) {
2082
2087
  configs.push(unicorn());
2083
2088
  }
@@ -0,0 +1,22 @@
1
+ 'use strict';
2
+
3
+ var config = require('eslint-plugin-prettier/recommended');
4
+
5
+ function _interopDefault (e) { return e && e.__esModule ? e : { default: e }; }
6
+
7
+ var config__default = /*#__PURE__*/_interopDefault(config);
8
+
9
+ // src/configs/prettier.ts
10
+ function prettier() {
11
+ return {
12
+ jsPlugins: ["eslint-plugin-prettier"],
13
+ rules: {
14
+ ...config__default.default.rules,
15
+ "prettier/prettier": "error",
16
+ "arrow-body-style": "off",
17
+ "prefer-arrow-callback": "off"
18
+ }
19
+ };
20
+ }
21
+
22
+ exports.prettier = prettier;
@@ -0,0 +1,8 @@
1
+ import { TypedConfigItem } from '../types.cjs';
2
+
3
+ /**
4
+ * Config for Prettier eslint integration
5
+ */
6
+ declare function prettier(): TypedConfigItem;
7
+
8
+ export { prettier };
@@ -0,0 +1,8 @@
1
+ import { TypedConfigItem } from '../types.js';
2
+
3
+ /**
4
+ * Config for Prettier eslint integration
5
+ */
6
+ declare function prettier(): TypedConfigItem;
7
+
8
+ export { prettier };
@@ -0,0 +1 @@
1
+ export { prettier } from '../chunk-GEMVBBN7.js';