@nx/eslint-plugin 0.0.0-pr-32490-e4fdfa9 → 0.0.0-pr-32868-a65a4a2
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/README.md +1 -1
- package/angular.d.ts +2 -4
- package/angular.d.ts.map +1 -1
- package/package.json +3 -3
- package/react.d.ts +2 -6
- package/react.d.ts.map +1 -1
- package/src/flat-configs/angular-template.d.ts +3 -2
- package/src/flat-configs/angular-template.d.ts.map +1 -1
- package/src/flat-configs/angular-template.js +2 -1
- package/src/flat-configs/angular.d.ts +3 -2
- package/src/flat-configs/angular.d.ts.map +1 -1
- package/src/flat-configs/angular.js +2 -1
- package/src/flat-configs/javascript.d.ts +3 -2
- package/src/flat-configs/javascript.d.ts.map +1 -1
- package/src/flat-configs/javascript.js +2 -1
- package/src/flat-configs/react-base.d.ts +3 -2
- package/src/flat-configs/react-base.d.ts.map +1 -1
- package/src/flat-configs/react-base.js +2 -1
- package/src/flat-configs/react-jsx.d.ts +3 -2
- package/src/flat-configs/react-jsx.d.ts.map +1 -1
- package/src/flat-configs/react-jsx.js +2 -1
- package/src/flat-configs/react-tmp.d.ts +3 -2
- package/src/flat-configs/react-tmp.d.ts.map +1 -1
- package/src/flat-configs/react-tmp.js +2 -1
- package/src/flat-configs/react-typescript.d.ts +3 -2
- package/src/flat-configs/react-typescript.d.ts.map +1 -1
- package/src/flat-configs/react-typescript.js +2 -1
- package/src/flat-configs/typescript.d.ts +3 -2
- package/src/flat-configs/typescript.d.ts.map +1 -1
- package/src/flat-configs/typescript.js +2 -1
- package/typescript.d.ts +2 -4
- package/typescript.d.ts.map +1 -1
package/README.md
CHANGED
|
@@ -22,7 +22,7 @@
|
|
|
22
22
|
|
|
23
23
|
# Nx: Smart Repos · Fast Builds
|
|
24
24
|
|
|
25
|
-
|
|
25
|
+
Get to green PRs in half the time. Nx optimizes your builds, scales your CI, and fixes failed PRs. Built for developers and AI agents.
|
|
26
26
|
|
|
27
27
|
This package is an ESLint plugin for Nx.
|
|
28
28
|
|
package/angular.d.ts
CHANGED
|
@@ -1,8 +1,6 @@
|
|
|
1
|
+
import type { ConfigArray } from 'typescript-eslint';
|
|
1
2
|
declare const plugin: {
|
|
2
|
-
configs:
|
|
3
|
-
angular: import("@typescript-eslint/utils/ts-eslint").FlatConfig.ConfigArray;
|
|
4
|
-
'angular-template': import("@typescript-eslint/utils/ts-eslint").FlatConfig.ConfigArray;
|
|
5
|
-
};
|
|
3
|
+
configs: Record<string, ConfigArray>;
|
|
6
4
|
rules: {};
|
|
7
5
|
};
|
|
8
6
|
export default plugin;
|
package/angular.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"angular.d.ts","sourceRoot":"","sources":["../../../packages/eslint-plugin/angular.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"angular.d.ts","sourceRoot":"","sources":["../../../packages/eslint-plugin/angular.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,mBAAmB,CAAC;AAIrD,QAAA,MAAM,MAAM;aAIL,MAAM,CAAC,MAAM,EAAE,WAAW,CAAC;;CAEjC,CAAC;AAGF,eAAe,MAAM,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@nx/eslint-plugin",
|
|
3
|
-
"version": "0.0.0-pr-
|
|
3
|
+
"version": "0.0.0-pr-32868-a65a4a2",
|
|
4
4
|
"private": false,
|
|
5
5
|
"description": "The eslint-plugin package is an ESLint plugin that contains a collection of recommended ESLint rule configurations which you can extend from in your own ESLint configs, as well as an Nx-specific lint rule called enforce-module-boundaries.",
|
|
6
6
|
"repository": {
|
|
@@ -34,8 +34,8 @@
|
|
|
34
34
|
}
|
|
35
35
|
},
|
|
36
36
|
"dependencies": {
|
|
37
|
-
"@nx/devkit": "0.0.0-pr-
|
|
38
|
-
"@nx/js": "0.0.0-pr-
|
|
37
|
+
"@nx/devkit": "0.0.0-pr-32868-a65a4a2",
|
|
38
|
+
"@nx/js": "0.0.0-pr-32868-a65a4a2",
|
|
39
39
|
"@phenomnomnominal/tsquery": "~5.0.1",
|
|
40
40
|
"@typescript-eslint/type-utils": "^8.0.0",
|
|
41
41
|
"@typescript-eslint/utils": "^8.0.0",
|
package/react.d.ts
CHANGED
|
@@ -1,10 +1,6 @@
|
|
|
1
|
+
import type { ConfigArray } from 'typescript-eslint';
|
|
1
2
|
declare const plugin: {
|
|
2
|
-
configs:
|
|
3
|
-
react: import("@typescript-eslint/utils/ts-eslint").FlatConfig.ConfigArray;
|
|
4
|
-
'react-base': import("@typescript-eslint/utils/ts-eslint").FlatConfig.ConfigArray;
|
|
5
|
-
'react-typescript': import("@typescript-eslint/utils/ts-eslint").FlatConfig.ConfigArray;
|
|
6
|
-
'react-jsx': import("@typescript-eslint/utils/ts-eslint").FlatConfig.ConfigArray;
|
|
7
|
-
};
|
|
3
|
+
configs: Record<string, ConfigArray>;
|
|
8
4
|
rules: {};
|
|
9
5
|
};
|
|
10
6
|
export default plugin;
|
package/react.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"react.d.ts","sourceRoot":"","sources":["../../../packages/eslint-plugin/react.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"react.d.ts","sourceRoot":"","sources":["../../../packages/eslint-plugin/react.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,mBAAmB,CAAC;AAMrD,QAAA,MAAM,MAAM;aAML,MAAM,CAAC,MAAM,EAAE,WAAW,CAAC;;CAEjC,CAAC;AAGF,eAAe,MAAM,CAAC"}
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { type ConfigArray } from 'typescript-eslint';
|
|
1
2
|
/**
|
|
2
3
|
* This configuration is intended to be applied to ALL .html files in Angular
|
|
3
4
|
* projects within an Nx workspace, as well as extracted inline templates from
|
|
@@ -12,6 +13,6 @@
|
|
|
12
13
|
* This configuration is intended to be combined with other configs from this
|
|
13
14
|
* package.
|
|
14
15
|
*/
|
|
15
|
-
declare const
|
|
16
|
-
export default
|
|
16
|
+
declare const config: ConfigArray;
|
|
17
|
+
export default config;
|
|
17
18
|
//# sourceMappingURL=angular-template.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"angular-template.d.ts","sourceRoot":"","sources":["../../../../../packages/eslint-plugin/src/flat-configs/angular-template.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"angular-template.d.ts","sourceRoot":"","sources":["../../../../../packages/eslint-plugin/src/flat-configs/angular-template.ts"],"names":[],"mappings":"AACA,OAAiB,EAAE,KAAK,WAAW,EAAE,MAAM,mBAAmB,CAAC;AAE/D;;;;;;;;;;;;;GAaG;AACH,QAAA,MAAM,MAAM,EAAE,WAOZ,CAAC;AAEH,eAAe,MAAM,CAAC"}
|
|
@@ -17,7 +17,7 @@ const typescript_eslint_1 = tslib_1.__importDefault(require("typescript-eslint")
|
|
|
17
17
|
* This configuration is intended to be combined with other configs from this
|
|
18
18
|
* package.
|
|
19
19
|
*/
|
|
20
|
-
|
|
20
|
+
const config = typescript_eslint_1.default.config({
|
|
21
21
|
files: ['**/*.html'],
|
|
22
22
|
extends: [
|
|
23
23
|
...angular_eslint_1.default.configs.templateRecommended,
|
|
@@ -25,3 +25,4 @@ exports.default = typescript_eslint_1.default.config({
|
|
|
25
25
|
],
|
|
26
26
|
rules: {},
|
|
27
27
|
});
|
|
28
|
+
exports.default = config;
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { type ConfigArray } from 'typescript-eslint';
|
|
1
2
|
/**
|
|
2
3
|
* This configuration is intended to be applied to ALL .ts files in Angular
|
|
3
4
|
* projects within an Nx workspace.
|
|
@@ -9,6 +10,6 @@
|
|
|
9
10
|
* This configuration is intended to be combined with other configs from this
|
|
10
11
|
* package.
|
|
11
12
|
*/
|
|
12
|
-
declare const
|
|
13
|
-
export default
|
|
13
|
+
declare const config: ConfigArray;
|
|
14
|
+
export default config;
|
|
14
15
|
//# sourceMappingURL=angular.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"angular.d.ts","sourceRoot":"","sources":["../../../../../packages/eslint-plugin/src/flat-configs/angular.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"angular.d.ts","sourceRoot":"","sources":["../../../../../packages/eslint-plugin/src/flat-configs/angular.ts"],"names":[],"mappings":"AAEA,OAAiB,EAAE,KAAK,WAAW,EAAE,MAAM,mBAAmB,CAAC;AAE/D;;;;;;;;;;GAUG;AACH,QAAA,MAAM,MAAM,EAAE,WAoBb,CAAC;AAEF,eAAe,MAAM,CAAC"}
|
|
@@ -15,7 +15,7 @@ const typescript_eslint_1 = tslib_1.__importDefault(require("typescript-eslint")
|
|
|
15
15
|
* This configuration is intended to be combined with other configs from this
|
|
16
16
|
* package.
|
|
17
17
|
*/
|
|
18
|
-
|
|
18
|
+
const config = typescript_eslint_1.default.config(...angular_eslint_1.default.configs.tsRecommended.map((c) => ({
|
|
19
19
|
// Files need to be specified or else typescript-eslint rules will be
|
|
20
20
|
// applied to non-TS files. For example, buildable/publishable libs
|
|
21
21
|
// add rules to *.json files, and TS rules should not apply to them.
|
|
@@ -33,3 +33,4 @@ exports.default = typescript_eslint_1.default.config(...angular_eslint_1.default
|
|
|
33
33
|
processor: angular_eslint_1.default.processInlineTemplates,
|
|
34
34
|
plugins: { '@angular-eslint': angular_eslint_1.default.tsPlugin },
|
|
35
35
|
});
|
|
36
|
+
exports.default = config;
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { type ConfigArray } from 'typescript-eslint';
|
|
1
2
|
/**
|
|
2
3
|
* This configuration is intended to be applied to ALL .js and .jsx files
|
|
3
4
|
* within an Nx workspace.
|
|
@@ -14,6 +15,6 @@
|
|
|
14
15
|
* breaking changes - we should also look to replace all the @typescript-eslint
|
|
15
16
|
* related plugins and rules below.
|
|
16
17
|
*/
|
|
17
|
-
declare const
|
|
18
|
-
export default
|
|
18
|
+
declare const config: ConfigArray;
|
|
19
|
+
export default config;
|
|
19
20
|
//# sourceMappingURL=javascript.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"javascript.d.ts","sourceRoot":"","sources":["../../../../../packages/eslint-plugin/src/flat-configs/javascript.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"javascript.d.ts","sourceRoot":"","sources":["../../../../../packages/eslint-plugin/src/flat-configs/javascript.ts"],"names":[],"mappings":"AAEA,OAAiB,EAAE,KAAK,WAAW,EAAE,MAAM,mBAAmB,CAAC;AAM/D;;;;;;;;;;;;;;;GAeG;AACH,QAAA,MAAM,MAAM,EAAE,WA8Db,CAAC;AAEF,eAAe,MAAM,CAAC"}
|
|
@@ -22,7 +22,7 @@ const isPrettierAvailable = (0, config_utils_1.packageExists)('prettier') && (0,
|
|
|
22
22
|
* breaking changes - we should also look to replace all the @typescript-eslint
|
|
23
23
|
* related plugins and rules below.
|
|
24
24
|
*/
|
|
25
|
-
|
|
25
|
+
const config = typescript_eslint_1.default.config({
|
|
26
26
|
files: ['**/*.js', '**/*.jsx', '**/*.cjs', '**/*.mjs'],
|
|
27
27
|
extends: [js_1.default.configs.recommended, ...typescript_eslint_1.default.configs.recommended],
|
|
28
28
|
}, {
|
|
@@ -80,3 +80,4 @@ exports.default = typescript_eslint_1.default.config({
|
|
|
80
80
|
* We include it last so it overrides the conflicting rules from the configuration blocks above.
|
|
81
81
|
*/
|
|
82
82
|
...(isPrettierAvailable ? [require('eslint-config-prettier')] : []));
|
|
83
|
+
exports.default = config;
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { type ConfigArray } from 'typescript-eslint';
|
|
1
2
|
/**
|
|
2
3
|
* This configuration is intended to be applied to ALL files within a React
|
|
3
4
|
* project in an Nx workspace.
|
|
@@ -12,6 +13,6 @@
|
|
|
12
13
|
* Rule set originally adapted from:
|
|
13
14
|
* https://github.com/facebook/create-react-app/blob/567f36c9235f1e1fd4a76dc6d1ae00be754ca047/packages/eslint-config-react-app/index.js
|
|
14
15
|
*/
|
|
15
|
-
declare const
|
|
16
|
-
export default
|
|
16
|
+
declare const config: ConfigArray;
|
|
17
|
+
export default config;
|
|
17
18
|
//# sourceMappingURL=react-base.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"react-base.d.ts","sourceRoot":"","sources":["../../../../../packages/eslint-plugin/src/flat-configs/react-base.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"react-base.d.ts","sourceRoot":"","sources":["../../../../../packages/eslint-plugin/src/flat-configs/react-base.ts"],"names":[],"mappings":"AAEA,OAAiB,EAAE,KAAK,WAAW,EAAE,MAAM,mBAAmB,CAAC;AAE/D;;;;;;;;;GASG;AAEH;;;GAGG;AACH,QAAA,MAAM,MAAM,EAAE,WAyIZ,CAAC;AAEH,eAAe,MAAM,CAAC"}
|
|
@@ -18,7 +18,7 @@ const typescript_eslint_1 = tslib_1.__importDefault(require("typescript-eslint")
|
|
|
18
18
|
* Rule set originally adapted from:
|
|
19
19
|
* https://github.com/facebook/create-react-app/blob/567f36c9235f1e1fd4a76dc6d1ae00be754ca047/packages/eslint-config-react-app/index.js
|
|
20
20
|
*/
|
|
21
|
-
|
|
21
|
+
const config = typescript_eslint_1.default.config({
|
|
22
22
|
files: [
|
|
23
23
|
'**/*.ts',
|
|
24
24
|
'**/*.cts',
|
|
@@ -153,3 +153,4 @@ exports.default = typescript_eslint_1.default.config({
|
|
|
153
153
|
'import/no-webpack-loader-syntax': 'error',
|
|
154
154
|
},
|
|
155
155
|
});
|
|
156
|
+
exports.default = config;
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { type ConfigArray } from 'typescript-eslint';
|
|
1
2
|
/**
|
|
2
3
|
* This configuration is intended to be applied to ONLY files which contain JSX/TSX
|
|
3
4
|
* code.
|
|
@@ -8,6 +9,6 @@
|
|
|
8
9
|
* This configuration is intended to be combined with other configs from this
|
|
9
10
|
* package.
|
|
10
11
|
*/
|
|
11
|
-
declare const
|
|
12
|
-
export default
|
|
12
|
+
declare const config: ConfigArray;
|
|
13
|
+
export default config;
|
|
13
14
|
//# sourceMappingURL=react-jsx.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"react-jsx.d.ts","sourceRoot":"","sources":["../../../../../packages/eslint-plugin/src/flat-configs/react-jsx.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"react-jsx.d.ts","sourceRoot":"","sources":["../../../../../packages/eslint-plugin/src/flat-configs/react-jsx.ts"],"names":[],"mappings":"AAGA,OAAiB,EAAE,KAAK,WAAW,EAAE,MAAM,mBAAmB,CAAC;AAE/D;;;;;;;;;GASG;AACH,QAAA,MAAM,MAAM,EAAE,WAkFb,CAAC;AAEF,eAAe,MAAM,CAAC"}
|
|
@@ -15,7 +15,7 @@ const typescript_eslint_1 = tslib_1.__importDefault(require("typescript-eslint")
|
|
|
15
15
|
* This configuration is intended to be combined with other configs from this
|
|
16
16
|
* package.
|
|
17
17
|
*/
|
|
18
|
-
|
|
18
|
+
const config = typescript_eslint_1.default.config({
|
|
19
19
|
files: [
|
|
20
20
|
'**/*.ts',
|
|
21
21
|
'**/*.cts',
|
|
@@ -94,3 +94,4 @@ exports.default = typescript_eslint_1.default.config({
|
|
|
94
94
|
'jsx-a11y/scope': 'warn',
|
|
95
95
|
},
|
|
96
96
|
});
|
|
97
|
+
exports.default = config;
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { type ConfigArray } from 'typescript-eslint';
|
|
1
2
|
/**
|
|
2
3
|
* THIS IS A TEMPORARY CONFIG WHICH MATCHES THE CURRENT BEHAVIOR
|
|
3
4
|
* of including all the rules for all file types within the ESLint
|
|
@@ -6,6 +7,6 @@
|
|
|
6
7
|
* It will be refactored in a follow up PR to correctly apply rules
|
|
7
8
|
* to the right file types via overrides.
|
|
8
9
|
*/
|
|
9
|
-
declare const
|
|
10
|
-
export default
|
|
10
|
+
declare const config: ConfigArray;
|
|
11
|
+
export default config;
|
|
11
12
|
//# sourceMappingURL=react-tmp.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"react-tmp.d.ts","sourceRoot":"","sources":["../../../../../packages/eslint-plugin/src/flat-configs/react-tmp.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"react-tmp.d.ts","sourceRoot":"","sources":["../../../../../packages/eslint-plugin/src/flat-configs/react-tmp.ts"],"names":[],"mappings":"AAAA,OAAiB,EAAE,KAAK,WAAW,EAAE,MAAM,mBAAmB,CAAC;AAK/D;;;;;;;GAOG;AACH,QAAA,MAAM,MAAM,EAAE,WAIb,CAAC;AAEF,eAAe,MAAM,CAAC"}
|
|
@@ -13,4 +13,5 @@ const react_jsx_1 = tslib_1.__importDefault(require("./react-jsx"));
|
|
|
13
13
|
* It will be refactored in a follow up PR to correctly apply rules
|
|
14
14
|
* to the right file types via overrides.
|
|
15
15
|
*/
|
|
16
|
-
|
|
16
|
+
const config = typescript_eslint_1.default.config(...react_base_1.default, ...react_typescript_1.default, ...react_jsx_1.default);
|
|
17
|
+
exports.default = config;
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { type ConfigArray } from 'typescript-eslint';
|
|
1
2
|
/**
|
|
2
3
|
* This configuration is intended to be applied to ONLY .ts and .tsx files within a
|
|
3
4
|
* React project in an Nx workspace.
|
|
@@ -8,6 +9,6 @@
|
|
|
8
9
|
* This configuration is intended to be combined with other configs from this
|
|
9
10
|
* package.
|
|
10
11
|
*/
|
|
11
|
-
declare const
|
|
12
|
-
export default
|
|
12
|
+
declare const config: ConfigArray;
|
|
13
|
+
export default config;
|
|
13
14
|
//# sourceMappingURL=react-typescript.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"react-typescript.d.ts","sourceRoot":"","sources":["../../../../../packages/eslint-plugin/src/flat-configs/react-typescript.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"react-typescript.d.ts","sourceRoot":"","sources":["../../../../../packages/eslint-plugin/src/flat-configs/react-typescript.ts"],"names":[],"mappings":"AAAA,OAAiB,EAAE,KAAK,WAAW,EAAE,MAAM,mBAAmB,CAAC;AAE/D;;;;;;;;;GASG;AACH,QAAA,MAAM,MAAM,EAAE,WAoDZ,CAAC;AAEH,eAAe,MAAM,CAAC"}
|
|
@@ -12,7 +12,7 @@ const typescript_eslint_1 = tslib_1.__importDefault(require("typescript-eslint")
|
|
|
12
12
|
* This configuration is intended to be combined with other configs from this
|
|
13
13
|
* package.
|
|
14
14
|
*/
|
|
15
|
-
|
|
15
|
+
const config = typescript_eslint_1.default.config({
|
|
16
16
|
files: [
|
|
17
17
|
'**/*.ts',
|
|
18
18
|
'**/*.cts',
|
|
@@ -64,3 +64,4 @@ exports.default = typescript_eslint_1.default.config({
|
|
|
64
64
|
],
|
|
65
65
|
},
|
|
66
66
|
});
|
|
67
|
+
exports.default = config;
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { type ConfigArray } from 'typescript-eslint';
|
|
1
2
|
/**
|
|
2
3
|
* This configuration is intended to be applied to ALL .ts and .tsx files
|
|
3
4
|
* within an Nx workspace.
|
|
@@ -5,6 +6,6 @@
|
|
|
5
6
|
* It should therefore NOT contain any rules or plugins which are specific
|
|
6
7
|
* to one ecosystem, such as React, Angular, Node etc.
|
|
7
8
|
*/
|
|
8
|
-
declare const
|
|
9
|
-
export default
|
|
9
|
+
declare const config: ConfigArray;
|
|
10
|
+
export default config;
|
|
10
11
|
//# sourceMappingURL=typescript.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"typescript.d.ts","sourceRoot":"","sources":["../../../../../packages/eslint-plugin/src/flat-configs/typescript.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"typescript.d.ts","sourceRoot":"","sources":["../../../../../packages/eslint-plugin/src/flat-configs/typescript.ts"],"names":[],"mappings":"AAEA,OAAiB,EAAE,KAAK,WAAW,EAAE,MAAM,mBAAmB,CAAC;AAM/D;;;;;;GAMG;AACH,QAAA,MAAM,MAAM,EAAE,WAuDb,CAAC;AAEF,eAAe,MAAM,CAAC"}
|
|
@@ -13,7 +13,7 @@ const isPrettierAvailable = (0, config_utils_1.packageExists)('prettier') && (0,
|
|
|
13
13
|
* It should therefore NOT contain any rules or plugins which are specific
|
|
14
14
|
* to one ecosystem, such as React, Angular, Node etc.
|
|
15
15
|
*/
|
|
16
|
-
|
|
16
|
+
const config = typescript_eslint_1.default.config({
|
|
17
17
|
files: ['**/*.ts', '**/*.tsx', '**/*.cts', '**/*.mts'],
|
|
18
18
|
extends: [js_1.default.configs.recommended, ...typescript_eslint_1.default.configs.recommended],
|
|
19
19
|
}, {
|
|
@@ -64,3 +64,4 @@ exports.default = typescript_eslint_1.default.config({
|
|
|
64
64
|
* We include it last so it overrides the conflicting rules from the configuration blocks above.
|
|
65
65
|
*/
|
|
66
66
|
...(isPrettierAvailable ? [require('eslint-config-prettier')] : []));
|
|
67
|
+
exports.default = config;
|
package/typescript.d.ts
CHANGED
|
@@ -1,8 +1,6 @@
|
|
|
1
|
+
import type { ConfigArray } from 'typescript-eslint';
|
|
1
2
|
declare const plugin: {
|
|
2
|
-
configs:
|
|
3
|
-
javascript: import("@typescript-eslint/utils/ts-eslint").FlatConfig.ConfigArray;
|
|
4
|
-
typescript: import("@typescript-eslint/utils/ts-eslint").FlatConfig.ConfigArray;
|
|
5
|
-
};
|
|
3
|
+
configs: Record<string, ConfigArray>;
|
|
6
4
|
rules: {};
|
|
7
5
|
};
|
|
8
6
|
export default plugin;
|
package/typescript.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"typescript.d.ts","sourceRoot":"","sources":["../../../packages/eslint-plugin/typescript.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"typescript.d.ts","sourceRoot":"","sources":["../../../packages/eslint-plugin/typescript.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,mBAAmB,CAAC;AAIrD,QAAA,MAAM,MAAM;aAIL,MAAM,CAAC,MAAM,EAAE,WAAW,CAAC;;CAEjC,CAAC;AAGF,eAAe,MAAM,CAAC"}
|