eslint-config-turbo 2.4.3-canary.1 → 2.4.3-canary.2
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/cjs/flat.js +21 -0
- package/dist/cjs/index.js +10 -0
- package/dist/es/flat.d.mts +51 -0
- package/dist/es/flat.mjs +15 -0
- package/dist/es/index.d.mts +5 -0
- package/dist/es/index.mjs +8 -0
- package/package.json +29 -9
- package/.eslintrc.js +0 -3
- package/.turbo/turbo-build.log +0 -18
- package/dist/flat/index.js +0 -1
- package/dist/index.js +0 -1
- package/flat/index.ts +0 -13
- package/index.ts +0 -4
- package/tsconfig.json +0 -7
- package/tsup.config.ts +0 -10
- /package/dist/{flat/index.d.ts → cjs/flat.d.ts} +0 -0
- /package/dist/{index.d.ts → cjs/index.d.ts} +0 -0
package/dist/cjs/flat.js
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
Object.defineProperty(exports, '__esModule', { value: true });
|
|
2
|
+
|
|
3
|
+
var plugin = require('eslint-plugin-turbo');
|
|
4
|
+
|
|
5
|
+
function _interopDefault (e) { return e && e.__esModule ? e : { default: e }; }
|
|
6
|
+
|
|
7
|
+
var plugin__default = /*#__PURE__*/_interopDefault(plugin);
|
|
8
|
+
|
|
9
|
+
// eslint-disable-next-line import/no-default-export -- Matching old module.exports
|
|
10
|
+
var index = [
|
|
11
|
+
{
|
|
12
|
+
plugins: {
|
|
13
|
+
turbo: plugin__default.default
|
|
14
|
+
},
|
|
15
|
+
rules: {
|
|
16
|
+
"turbo/no-undeclared-env-vars": "error"
|
|
17
|
+
}
|
|
18
|
+
}
|
|
19
|
+
];
|
|
20
|
+
|
|
21
|
+
exports.default = index;
|
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
import * as eslint from 'eslint';
|
|
2
|
+
import * as eslint_plugin_turbo from 'eslint-plugin-turbo';
|
|
3
|
+
|
|
4
|
+
declare const _default: {
|
|
5
|
+
plugins: {
|
|
6
|
+
turbo: {
|
|
7
|
+
meta: {
|
|
8
|
+
name: string;
|
|
9
|
+
version: string;
|
|
10
|
+
};
|
|
11
|
+
rules: {
|
|
12
|
+
[x: string]: {
|
|
13
|
+
create: (context: eslint_plugin_turbo.RuleContextWithOptions) => eslint.Rule.RuleListener;
|
|
14
|
+
meta: eslint.Rule.RuleMetaData;
|
|
15
|
+
};
|
|
16
|
+
};
|
|
17
|
+
configs: {
|
|
18
|
+
recommended: {
|
|
19
|
+
settings: {
|
|
20
|
+
turbo: {
|
|
21
|
+
cacheKey: number | eslint_plugin_turbo.ProjectKey;
|
|
22
|
+
};
|
|
23
|
+
};
|
|
24
|
+
plugins: string[];
|
|
25
|
+
rules: {
|
|
26
|
+
[x: string]: "error";
|
|
27
|
+
};
|
|
28
|
+
};
|
|
29
|
+
"flat/recommended": {
|
|
30
|
+
plugins: {
|
|
31
|
+
readonly turbo: eslint.ESLint.Plugin;
|
|
32
|
+
};
|
|
33
|
+
name: string;
|
|
34
|
+
rules: {
|
|
35
|
+
[x: string]: "error";
|
|
36
|
+
};
|
|
37
|
+
settings: {
|
|
38
|
+
turbo: {
|
|
39
|
+
cacheKey: number | eslint_plugin_turbo.ProjectKey;
|
|
40
|
+
};
|
|
41
|
+
};
|
|
42
|
+
};
|
|
43
|
+
};
|
|
44
|
+
};
|
|
45
|
+
};
|
|
46
|
+
rules: {
|
|
47
|
+
"turbo/no-undeclared-env-vars": string;
|
|
48
|
+
};
|
|
49
|
+
}[];
|
|
50
|
+
|
|
51
|
+
export { _default as default };
|
package/dist/es/flat.mjs
ADDED
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import plugin from 'eslint-plugin-turbo';
|
|
2
|
+
|
|
3
|
+
// eslint-disable-next-line import/no-default-export -- Matching old module.exports
|
|
4
|
+
var index = [
|
|
5
|
+
{
|
|
6
|
+
plugins: {
|
|
7
|
+
turbo: plugin
|
|
8
|
+
},
|
|
9
|
+
rules: {
|
|
10
|
+
"turbo/no-undeclared-env-vars": "error"
|
|
11
|
+
}
|
|
12
|
+
}
|
|
13
|
+
];
|
|
14
|
+
|
|
15
|
+
export { index as default };
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "eslint-config-turbo",
|
|
3
|
-
"version": "2.4.3-canary.
|
|
3
|
+
"version": "2.4.3-canary.2",
|
|
4
4
|
"description": "ESLint config for Turborepo",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -17,17 +17,32 @@
|
|
|
17
17
|
"eslintconfig",
|
|
18
18
|
"eslint-config"
|
|
19
19
|
],
|
|
20
|
-
"main": "index.js",
|
|
20
|
+
"main": "./dist/cjs/index.js",
|
|
21
21
|
"exports": {
|
|
22
22
|
"./flat": {
|
|
23
|
-
"
|
|
24
|
-
|
|
23
|
+
"import": {
|
|
24
|
+
"types": "./dist/es/flat.d.mts",
|
|
25
|
+
"default": "./dist/es/flat.mjs"
|
|
26
|
+
},
|
|
27
|
+
"require": {
|
|
28
|
+
"types": "./dist/cjs/flat.d.ts",
|
|
29
|
+
"default": "./dist/cjs/flat.js"
|
|
30
|
+
}
|
|
25
31
|
},
|
|
26
|
-
".":
|
|
32
|
+
".": {
|
|
33
|
+
"import": {
|
|
34
|
+
"types": "./dist/es/index.d.mts",
|
|
35
|
+
"default": "./dist/es/index.mjs"
|
|
36
|
+
},
|
|
37
|
+
"require": {
|
|
38
|
+
"types": "./dist/cjs/index.d.ts",
|
|
39
|
+
"default": "./dist/cjs/index.js"
|
|
40
|
+
}
|
|
41
|
+
}
|
|
27
42
|
},
|
|
28
43
|
"author": "Vercel",
|
|
29
44
|
"dependencies": {
|
|
30
|
-
"eslint-plugin-turbo": "2.4.3-canary.
|
|
45
|
+
"eslint-plugin-turbo": "2.4.3-canary.2"
|
|
31
46
|
},
|
|
32
47
|
"peerDependencies": {
|
|
33
48
|
"eslint": ">6.6.0",
|
|
@@ -36,13 +51,18 @@
|
|
|
36
51
|
"license": "MIT",
|
|
37
52
|
"devDependencies": {
|
|
38
53
|
"@types/eslint": "^8.56.10",
|
|
39
|
-
"
|
|
54
|
+
"bunchee": "^6.3.4",
|
|
40
55
|
"@turbo/tsconfig": "0.0.0",
|
|
41
56
|
"@turbo/eslint-config": "0.0.0"
|
|
42
57
|
},
|
|
58
|
+
"files": [
|
|
59
|
+
"dist"
|
|
60
|
+
],
|
|
61
|
+
"module": "./dist/es/index.mjs",
|
|
62
|
+
"types": "./dist/cjs/index.d.ts",
|
|
43
63
|
"scripts": {
|
|
44
|
-
"build": "
|
|
45
|
-
"lint": "eslint
|
|
64
|
+
"build": "bunchee",
|
|
65
|
+
"lint": "eslint src",
|
|
46
66
|
"lint:prettier": "prettier -c . --cache --ignore-path=../../.prettierignore"
|
|
47
67
|
}
|
|
48
68
|
}
|
package/.eslintrc.js
DELETED
package/.turbo/turbo-build.log
DELETED
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
|
|
2
|
-
> eslint-config-turbo@2.4.3-canary.1 build /home/runner/work/turborepo/turborepo/packages/eslint-config-turbo
|
|
3
|
-
> tsup
|
|
4
|
-
|
|
5
|
-
CLI Building entry: index.ts, flat/index.ts
|
|
6
|
-
CLI Using tsconfig: tsconfig.json
|
|
7
|
-
CLI tsup v6.7.0
|
|
8
|
-
CLI Using tsup config: /home/runner/work/turborepo/turborepo/packages/eslint-config-turbo/tsup.config.ts
|
|
9
|
-
CLI Target: es2019
|
|
10
|
-
CLI Cleaning output folder
|
|
11
|
-
CJS Build start
|
|
12
|
-
CJS dist/index.js 521.00 B
|
|
13
|
-
CJS dist/flat/index.js 740.00 B
|
|
14
|
-
CJS ⚡️ Build success in 18ms
|
|
15
|
-
DTS Build start
|
|
16
|
-
DTS ⚡️ Build success in 736ms
|
|
17
|
-
DTS dist/index.d.ts 85.00 B
|
|
18
|
-
DTS dist/flat/index.d.ts 1.51 KB
|
package/dist/flat/index.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";var a=Object.create;var l=Object.defineProperty;var d=Object.getOwnPropertyDescriptor;var i=Object.getOwnPropertyNames;var s=Object.getPrototypeOf,b=Object.prototype.hasOwnProperty;var f=(r,e)=>{for(var o in e)l(r,o,{get:e[o],enumerable:!0})},t=(r,e,o,n)=>{if(e&&typeof e=="object"||typeof e=="function")for(let u of i(e))!b.call(r,u)&&u!==o&&l(r,u,{get:()=>e[u],enumerable:!(n=d(e,u))||n.enumerable});return r};var g=(r,e,o)=>(o=r!=null?a(s(r)):{},t(e||!r||!r.__esModule?l(o,"default",{value:r,enumerable:!0}):o,r)),m=r=>t(l({},"__esModule",{value:!0}),r);var c={};f(c,{default:()=>v});module.exports=m(c);var p=g(require("eslint-plugin-turbo")),v=[{plugins:{turbo:p.default},rules:{"turbo/no-undeclared-env-vars":"error"}}];
|
package/dist/index.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";var o=Object.defineProperty;var u=Object.getOwnPropertyDescriptor;var l=Object.getOwnPropertyNames;var m=Object.prototype.hasOwnProperty;var p=(d,e)=>{for(var n in e)o(d,n,{get:e[n],enumerable:!0})},x=(d,e,n,r)=>{if(e&&typeof e=="object"||typeof e=="function")for(let t of l(e))!m.call(d,t)&&t!==n&&o(d,t,{get:()=>e[t],enumerable:!(r=u(e,t))||r.enumerable});return d};var a=d=>x(o({},"__esModule",{value:!0}),d);var c={};p(c,{default:()=>b});module.exports=a(c);var b={extends:["plugin:turbo/recommended"]};
|
package/flat/index.ts
DELETED
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
import plugin from "eslint-plugin-turbo";
|
|
2
|
-
|
|
3
|
-
// eslint-disable-next-line import/no-default-export -- Matching old module.exports
|
|
4
|
-
export default [
|
|
5
|
-
{
|
|
6
|
-
plugins: {
|
|
7
|
-
turbo: plugin,
|
|
8
|
-
},
|
|
9
|
-
rules: {
|
|
10
|
-
"turbo/no-undeclared-env-vars": "error",
|
|
11
|
-
},
|
|
12
|
-
},
|
|
13
|
-
];
|
package/index.ts
DELETED
package/tsconfig.json
DELETED
package/tsup.config.ts
DELETED
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import { defineConfig, type Options } from "tsup";
|
|
2
|
-
|
|
3
|
-
// eslint-disable-next-line import/no-default-export -- Default export needed
|
|
4
|
-
export default defineConfig((options: Options) => ({
|
|
5
|
-
entry: ["index.ts", "flat/index.ts"],
|
|
6
|
-
clean: true,
|
|
7
|
-
minify: true,
|
|
8
|
-
dts: true,
|
|
9
|
-
...options,
|
|
10
|
-
}));
|
|
File without changes
|
|
File without changes
|