eslint-config-turbo 2.4.2 → 2.4.3-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/.turbo/turbo-build.log +18 -0
- package/dist/flat/index.d.ts +51 -0
- package/dist/flat/index.js +1 -0
- package/dist/index.d.ts +5 -0
- package/dist/index.js +1 -0
- package/flat/index.ts +13 -0
- package/index.ts +4 -0
- package/package.json +11 -5
- package/tsconfig.json +7 -0
- package/tsup.config.ts +10 -0
- package/flat/index.js +0 -12
- package/index.js +0 -3
|
@@ -0,0 +1,18 @@
|
|
|
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
|
|
@@ -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 };
|
|
@@ -0,0 +1 @@
|
|
|
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.d.ts
ADDED
package/dist/index.js
ADDED
|
@@ -0,0 +1 @@
|
|
|
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
ADDED
|
@@ -0,0 +1,13 @@
|
|
|
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
ADDED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "eslint-config-turbo",
|
|
3
|
-
"version": "2.4.
|
|
3
|
+
"version": "2.4.3-canary.1",
|
|
4
4
|
"description": "ESLint config for Turborepo",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -19,12 +19,15 @@
|
|
|
19
19
|
],
|
|
20
20
|
"main": "index.js",
|
|
21
21
|
"exports": {
|
|
22
|
-
"./flat":
|
|
22
|
+
"./flat": {
|
|
23
|
+
"types": "./dist/flat/index.d.ts",
|
|
24
|
+
"default": "./flat/index.js"
|
|
25
|
+
},
|
|
23
26
|
".": "./index.js"
|
|
24
27
|
},
|
|
25
28
|
"author": "Vercel",
|
|
26
29
|
"dependencies": {
|
|
27
|
-
"eslint-plugin-turbo": "2.4.
|
|
30
|
+
"eslint-plugin-turbo": "2.4.3-canary.1"
|
|
28
31
|
},
|
|
29
32
|
"peerDependencies": {
|
|
30
33
|
"eslint": ">6.6.0",
|
|
@@ -32,11 +35,14 @@
|
|
|
32
35
|
},
|
|
33
36
|
"license": "MIT",
|
|
34
37
|
"devDependencies": {
|
|
35
|
-
"@types/eslint": "^8.
|
|
38
|
+
"@types/eslint": "^8.56.10",
|
|
39
|
+
"tsup": "^6.2.0",
|
|
40
|
+
"@turbo/tsconfig": "0.0.0",
|
|
36
41
|
"@turbo/eslint-config": "0.0.0"
|
|
37
42
|
},
|
|
38
43
|
"scripts": {
|
|
39
|
-
"
|
|
44
|
+
"build": "tsup",
|
|
45
|
+
"lint": "eslint .",
|
|
40
46
|
"lint:prettier": "prettier -c . --cache --ignore-path=../../.prettierignore"
|
|
41
47
|
}
|
|
42
48
|
}
|
package/tsconfig.json
ADDED
package/tsup.config.ts
ADDED
|
@@ -0,0 +1,10 @@
|
|
|
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
|
+
}));
|
package/flat/index.js
DELETED
package/index.js
DELETED