@powerlines/plugin-oxlint 0.7.3 → 0.7.4
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/dist/chunk-FBBMZ4NC.cjs +7 -0
- package/dist/chunk-UCUR73HG.js +7 -0
- package/dist/helpers/generate-config.cjs +51 -0
- package/dist/helpers/generate-config.d.cts +31 -0
- package/dist/helpers/generate-config.d.ts +31 -0
- package/dist/helpers/generate-config.js +51 -0
- package/dist/helpers/index.cjs +1 -0
- package/dist/helpers/index.d.cts +22 -0
- package/dist/helpers/index.d.ts +22 -0
- package/dist/helpers/index.js +1 -0
- package/dist/index-Dc_OruZK.d.cts +1377 -0
- package/dist/index-Dc_OruZK.d.ts +1377 -0
- package/dist/src/index.cjs +7 -0
- package/dist/src/index.d.cts +29 -0
- package/dist/src/index.d.ts +29 -0
- package/dist/src/index.js +7 -0
- package/dist/types/index.cjs +1 -0
- package/dist/types/index.d.cts +21 -0
- package/dist/types/index.d.ts +21 -0
- package/dist/types/index.js +1 -0
- package/dist/types/plugin.cjs +1 -0
- package/dist/types/plugin.d.cts +21 -0
- package/dist/types/plugin.d.ts +21 -0
- package/dist/types/plugin.js +0 -0
- package/package.json +11 -11
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
'use strict';var chunkFBBMZ4NC_cjs=require('../chunk-FBBMZ4NC.cjs'),neutral=require('@stryke/convert/neutral');/*****************************************
|
|
2
|
+
*
|
|
3
|
+
* ⚡ Built by Storm Software
|
|
4
|
+
*
|
|
5
|
+
*****************************************/
|
|
6
|
+
|
|
7
|
+
function u(r={}){return `{
|
|
8
|
+
"$schema": "./node_modules/oxlint/configuration_schema.json",
|
|
9
|
+
"plugins": [
|
|
10
|
+
"import",
|
|
11
|
+
"jsdoc",
|
|
12
|
+
"unicorn",
|
|
13
|
+
"typescript",
|
|
14
|
+
"oxc"
|
|
15
|
+
],
|
|
16
|
+
"ignorePatterns": [
|
|
17
|
+
"crates/**",
|
|
18
|
+
"dist/**",
|
|
19
|
+
"build/**",
|
|
20
|
+
"coverage/**",
|
|
21
|
+
"node_modules/**",
|
|
22
|
+
"temp/**",
|
|
23
|
+
"tests/fixtures/**"${r.ignorePatterns?`,
|
|
24
|
+
${neutral.toArray(r.ignorePatterns).map(o=>`"${o}"`).join(`,
|
|
25
|
+
`)}`:""}
|
|
26
|
+
],
|
|
27
|
+
"rules": {
|
|
28
|
+
"import/named": "error",
|
|
29
|
+
"import/namespace": [
|
|
30
|
+
"error",
|
|
31
|
+
{
|
|
32
|
+
"allowComputed": true
|
|
33
|
+
}
|
|
34
|
+
],
|
|
35
|
+
"no-unused-expressions": [
|
|
36
|
+
"warn",
|
|
37
|
+
{
|
|
38
|
+
"allowShortCircuit": true,
|
|
39
|
+
"allowTaggedTemplates": true
|
|
40
|
+
}
|
|
41
|
+
],
|
|
42
|
+
"no-unused-vars": [
|
|
43
|
+
"warn",
|
|
44
|
+
{
|
|
45
|
+
"varsIgnorePattern": "^_",
|
|
46
|
+
"argsIgnorePattern": "^_"
|
|
47
|
+
}
|
|
48
|
+
],
|
|
49
|
+
"unicorn/prefer-node-protocol": "error"
|
|
50
|
+
}
|
|
51
|
+
}`}chunkFBBMZ4NC_cjs.a(u,"generateConfig");exports.generateConfig=u;
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
import { O as OxlintPluginOptions } from '../index-Dc_OruZK.cjs';
|
|
2
|
+
import '@storm-software/build-tools/types';
|
|
3
|
+
import '@storm-software/config-tools/types';
|
|
4
|
+
import '@storm-software/config/types';
|
|
5
|
+
import '@stryke/types/base';
|
|
6
|
+
import '@stryke/types/configuration';
|
|
7
|
+
import '@stryke/types/file';
|
|
8
|
+
import 'vite';
|
|
9
|
+
import '@stryke/env/get-env-paths';
|
|
10
|
+
import '@stryke/types/package-json';
|
|
11
|
+
import 'jiti';
|
|
12
|
+
import 'oxc-parser';
|
|
13
|
+
import 'semver';
|
|
14
|
+
import 'unplugin';
|
|
15
|
+
import '@stryke/types/tsconfig';
|
|
16
|
+
import 'typescript';
|
|
17
|
+
import '@stryke/json/types';
|
|
18
|
+
import 'memfs';
|
|
19
|
+
import 'node:fs';
|
|
20
|
+
import 'unionfs';
|
|
21
|
+
import '@stryke/types/array';
|
|
22
|
+
|
|
23
|
+
/**
|
|
24
|
+
* Generates an Oxlint configuration file content based on the provided options.
|
|
25
|
+
*
|
|
26
|
+
* @param options - The options for the Oxlint plugin.
|
|
27
|
+
* @returns The generated configuration as a string.
|
|
28
|
+
*/
|
|
29
|
+
declare function generateConfig(options?: OxlintPluginOptions): string;
|
|
30
|
+
|
|
31
|
+
export { generateConfig };
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
import { O as OxlintPluginOptions } from '../index-Dc_OruZK.js';
|
|
2
|
+
import '@storm-software/build-tools/types';
|
|
3
|
+
import '@storm-software/config-tools/types';
|
|
4
|
+
import '@storm-software/config/types';
|
|
5
|
+
import '@stryke/types/base';
|
|
6
|
+
import '@stryke/types/configuration';
|
|
7
|
+
import '@stryke/types/file';
|
|
8
|
+
import 'vite';
|
|
9
|
+
import '@stryke/env/get-env-paths';
|
|
10
|
+
import '@stryke/types/package-json';
|
|
11
|
+
import 'jiti';
|
|
12
|
+
import 'oxc-parser';
|
|
13
|
+
import 'semver';
|
|
14
|
+
import 'unplugin';
|
|
15
|
+
import '@stryke/types/tsconfig';
|
|
16
|
+
import 'typescript';
|
|
17
|
+
import '@stryke/json/types';
|
|
18
|
+
import 'memfs';
|
|
19
|
+
import 'node:fs';
|
|
20
|
+
import 'unionfs';
|
|
21
|
+
import '@stryke/types/array';
|
|
22
|
+
|
|
23
|
+
/**
|
|
24
|
+
* Generates an Oxlint configuration file content based on the provided options.
|
|
25
|
+
*
|
|
26
|
+
* @param options - The options for the Oxlint plugin.
|
|
27
|
+
* @returns The generated configuration as a string.
|
|
28
|
+
*/
|
|
29
|
+
declare function generateConfig(options?: OxlintPluginOptions): string;
|
|
30
|
+
|
|
31
|
+
export { generateConfig };
|
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
import {a}from'../chunk-UCUR73HG.js';import {toArray}from'@stryke/convert/neutral';/*****************************************
|
|
2
|
+
*
|
|
3
|
+
* ⚡ Built by Storm Software
|
|
4
|
+
*
|
|
5
|
+
*****************************************/
|
|
6
|
+
|
|
7
|
+
function l(r={}){return `{
|
|
8
|
+
"$schema": "./node_modules/oxlint/configuration_schema.json",
|
|
9
|
+
"plugins": [
|
|
10
|
+
"import",
|
|
11
|
+
"jsdoc",
|
|
12
|
+
"unicorn",
|
|
13
|
+
"typescript",
|
|
14
|
+
"oxc"
|
|
15
|
+
],
|
|
16
|
+
"ignorePatterns": [
|
|
17
|
+
"crates/**",
|
|
18
|
+
"dist/**",
|
|
19
|
+
"build/**",
|
|
20
|
+
"coverage/**",
|
|
21
|
+
"node_modules/**",
|
|
22
|
+
"temp/**",
|
|
23
|
+
"tests/fixtures/**"${r.ignorePatterns?`,
|
|
24
|
+
${toArray(r.ignorePatterns).map(o=>`"${o}"`).join(`,
|
|
25
|
+
`)}`:""}
|
|
26
|
+
],
|
|
27
|
+
"rules": {
|
|
28
|
+
"import/named": "error",
|
|
29
|
+
"import/namespace": [
|
|
30
|
+
"error",
|
|
31
|
+
{
|
|
32
|
+
"allowComputed": true
|
|
33
|
+
}
|
|
34
|
+
],
|
|
35
|
+
"no-unused-expressions": [
|
|
36
|
+
"warn",
|
|
37
|
+
{
|
|
38
|
+
"allowShortCircuit": true,
|
|
39
|
+
"allowTaggedTemplates": true
|
|
40
|
+
}
|
|
41
|
+
],
|
|
42
|
+
"no-unused-vars": [
|
|
43
|
+
"warn",
|
|
44
|
+
{
|
|
45
|
+
"varsIgnorePattern": "^_",
|
|
46
|
+
"argsIgnorePattern": "^_"
|
|
47
|
+
}
|
|
48
|
+
],
|
|
49
|
+
"unicorn/prefer-node-protocol": "error"
|
|
50
|
+
}
|
|
51
|
+
}`}a(l,"generateConfig");export{l as generateConfig};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
'use strict';var generateConfig=require('./generate-config');Object.keys(generateConfig).forEach(function(k){if(k!=='default'&&!Object.prototype.hasOwnProperty.call(exports,k))Object.defineProperty(exports,k,{enumerable:true,get:function(){return generateConfig[k]}})});
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
export { generateConfig } from './generate-config.cjs';
|
|
2
|
+
import '../index-Dc_OruZK.cjs';
|
|
3
|
+
import '@storm-software/build-tools/types';
|
|
4
|
+
import '@storm-software/config-tools/types';
|
|
5
|
+
import '@storm-software/config/types';
|
|
6
|
+
import '@stryke/types/base';
|
|
7
|
+
import '@stryke/types/configuration';
|
|
8
|
+
import '@stryke/types/file';
|
|
9
|
+
import 'vite';
|
|
10
|
+
import '@stryke/env/get-env-paths';
|
|
11
|
+
import '@stryke/types/package-json';
|
|
12
|
+
import 'jiti';
|
|
13
|
+
import 'oxc-parser';
|
|
14
|
+
import 'semver';
|
|
15
|
+
import 'unplugin';
|
|
16
|
+
import '@stryke/types/tsconfig';
|
|
17
|
+
import 'typescript';
|
|
18
|
+
import '@stryke/json/types';
|
|
19
|
+
import 'memfs';
|
|
20
|
+
import 'node:fs';
|
|
21
|
+
import 'unionfs';
|
|
22
|
+
import '@stryke/types/array';
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
export { generateConfig } from './generate-config.js';
|
|
2
|
+
import '../index-Dc_OruZK.js';
|
|
3
|
+
import '@storm-software/build-tools/types';
|
|
4
|
+
import '@storm-software/config-tools/types';
|
|
5
|
+
import '@storm-software/config/types';
|
|
6
|
+
import '@stryke/types/base';
|
|
7
|
+
import '@stryke/types/configuration';
|
|
8
|
+
import '@stryke/types/file';
|
|
9
|
+
import 'vite';
|
|
10
|
+
import '@stryke/env/get-env-paths';
|
|
11
|
+
import '@stryke/types/package-json';
|
|
12
|
+
import 'jiti';
|
|
13
|
+
import 'oxc-parser';
|
|
14
|
+
import 'semver';
|
|
15
|
+
import 'unplugin';
|
|
16
|
+
import '@stryke/types/tsconfig';
|
|
17
|
+
import 'typescript';
|
|
18
|
+
import '@stryke/json/types';
|
|
19
|
+
import 'memfs';
|
|
20
|
+
import 'node:fs';
|
|
21
|
+
import 'unionfs';
|
|
22
|
+
import '@stryke/types/array';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export*from'./generate-config';
|