eslint-config-turbo 2.4.3-canary.0 → 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.d.ts +51 -0
- package/dist/cjs/flat.js +21 -0
- package/dist/cjs/index.d.ts +5 -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 +33 -7
- package/.eslintrc.js +0 -3
- package/flat/index.js +0 -12
- package/index.js +0 -3
|
@@ -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/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,14 +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
|
-
"./flat":
|
|
23
|
-
|
|
22
|
+
"./flat": {
|
|
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
|
+
}
|
|
31
|
+
},
|
|
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
|
+
}
|
|
24
42
|
},
|
|
25
43
|
"author": "Vercel",
|
|
26
44
|
"dependencies": {
|
|
27
|
-
"eslint-plugin-turbo": "2.4.3-canary.
|
|
45
|
+
"eslint-plugin-turbo": "2.4.3-canary.2"
|
|
28
46
|
},
|
|
29
47
|
"peerDependencies": {
|
|
30
48
|
"eslint": ">6.6.0",
|
|
@@ -32,11 +50,19 @@
|
|
|
32
50
|
},
|
|
33
51
|
"license": "MIT",
|
|
34
52
|
"devDependencies": {
|
|
35
|
-
"@types/eslint": "^8.
|
|
53
|
+
"@types/eslint": "^8.56.10",
|
|
54
|
+
"bunchee": "^6.3.4",
|
|
55
|
+
"@turbo/tsconfig": "0.0.0",
|
|
36
56
|
"@turbo/eslint-config": "0.0.0"
|
|
37
57
|
},
|
|
58
|
+
"files": [
|
|
59
|
+
"dist"
|
|
60
|
+
],
|
|
61
|
+
"module": "./dist/es/index.mjs",
|
|
62
|
+
"types": "./dist/cjs/index.d.ts",
|
|
38
63
|
"scripts": {
|
|
39
|
-
"
|
|
64
|
+
"build": "bunchee",
|
|
65
|
+
"lint": "eslint src",
|
|
40
66
|
"lint:prettier": "prettier -c . --cache --ignore-path=../../.prettierignore"
|
|
41
67
|
}
|
|
42
68
|
}
|
package/.eslintrc.js
DELETED
package/flat/index.js
DELETED
package/index.js
DELETED