@microsoft/eslint-config-spfx 1.21.0-beta.0 → 1.21.0-beta.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/lib-commonjs/index.js +63 -0
- package/lib-commonjs/profiles/default.js +38 -0
- package/lib-commonjs/profiles/react.js +26 -0
- package/lib-dts/index.d.ts +3 -0
- package/lib-dts/profiles/default.d.ts +2 -0
- package/lib-dts/profiles/react.d.ts +2 -0
- package/lib-esm/index.js +4 -0
- package/{lib → lib-esm}/profiles/default.js +15 -5
- package/lib-esm/profiles/react.js +23 -0
- package/package.json +30 -9
- package/lib/index.d.ts +0 -3
- package/lib/index.d.ts.map +0 -1
- package/lib/index.js +0 -11
- package/lib/profiles/default.d.ts +0 -7
- package/lib/profiles/default.d.ts.map +0 -1
- package/lib/profiles/react.d.ts +0 -6
- package/lib/profiles/react.d.ts.map +0 -1
- package/lib/profiles/react.js +0 -15
|
@@ -0,0 +1,63 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", {
|
|
3
|
+
value: true
|
|
4
|
+
});
|
|
5
|
+
function _export(target, all) {
|
|
6
|
+
for(var name in all)Object.defineProperty(target, name, {
|
|
7
|
+
enumerable: true,
|
|
8
|
+
get: all[name]
|
|
9
|
+
});
|
|
10
|
+
}
|
|
11
|
+
_export(exports, {
|
|
12
|
+
Default: function() {
|
|
13
|
+
return _default;
|
|
14
|
+
},
|
|
15
|
+
React: function() {
|
|
16
|
+
return _react;
|
|
17
|
+
}
|
|
18
|
+
});
|
|
19
|
+
const _default = /*#__PURE__*/ _interop_require_wildcard(require("./profiles/default"));
|
|
20
|
+
const _react = /*#__PURE__*/ _interop_require_wildcard(require("./profiles/react"));
|
|
21
|
+
function _getRequireWildcardCache(nodeInterop) {
|
|
22
|
+
if (typeof WeakMap !== "function") return null;
|
|
23
|
+
var cacheBabelInterop = new WeakMap();
|
|
24
|
+
var cacheNodeInterop = new WeakMap();
|
|
25
|
+
return (_getRequireWildcardCache = function(nodeInterop) {
|
|
26
|
+
return nodeInterop ? cacheNodeInterop : cacheBabelInterop;
|
|
27
|
+
})(nodeInterop);
|
|
28
|
+
}
|
|
29
|
+
function _interop_require_wildcard(obj, nodeInterop) {
|
|
30
|
+
if (!nodeInterop && obj && obj.__esModule) {
|
|
31
|
+
return obj;
|
|
32
|
+
}
|
|
33
|
+
if (obj === null || typeof obj !== "object" && typeof obj !== "function") {
|
|
34
|
+
return {
|
|
35
|
+
default: obj
|
|
36
|
+
};
|
|
37
|
+
}
|
|
38
|
+
var cache = _getRequireWildcardCache(nodeInterop);
|
|
39
|
+
if (cache && cache.has(obj)) {
|
|
40
|
+
return cache.get(obj);
|
|
41
|
+
}
|
|
42
|
+
var newObj = {
|
|
43
|
+
__proto__: null
|
|
44
|
+
};
|
|
45
|
+
var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor;
|
|
46
|
+
for(var key in obj){
|
|
47
|
+
if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) {
|
|
48
|
+
var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null;
|
|
49
|
+
if (desc && (desc.get || desc.set)) {
|
|
50
|
+
Object.defineProperty(newObj, key, desc);
|
|
51
|
+
} else {
|
|
52
|
+
newObj[key] = obj[key];
|
|
53
|
+
}
|
|
54
|
+
}
|
|
55
|
+
}
|
|
56
|
+
newObj.default = obj;
|
|
57
|
+
if (cache) {
|
|
58
|
+
cache.set(obj, newObj);
|
|
59
|
+
}
|
|
60
|
+
return newObj;
|
|
61
|
+
}
|
|
62
|
+
|
|
63
|
+
//#sourceMappingUrl=./index.js.map
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", {
|
|
3
|
+
value: true
|
|
4
|
+
});
|
|
5
|
+
const config = {
|
|
6
|
+
root: true,
|
|
7
|
+
parser: '',
|
|
8
|
+
plugins: [
|
|
9
|
+
'@rushstack/eslint-plugin',
|
|
10
|
+
'@rushstack/eslint-plugin-security',
|
|
11
|
+
'@typescript-eslint/eslint-plugin',
|
|
12
|
+
'eslint-plugin-promise',
|
|
13
|
+
'@microsoft/eslint-plugin-spfx'
|
|
14
|
+
],
|
|
15
|
+
extends: [
|
|
16
|
+
'eslint:recommended',
|
|
17
|
+
'plugin:@typescript-eslint/recommended'
|
|
18
|
+
],
|
|
19
|
+
ignorePatterns: [
|
|
20
|
+
'*.scss.ts',
|
|
21
|
+
'*.d.ts'
|
|
22
|
+
],
|
|
23
|
+
overrides: [
|
|
24
|
+
{
|
|
25
|
+
files: [
|
|
26
|
+
'*.ts',
|
|
27
|
+
'*.tsx'
|
|
28
|
+
],
|
|
29
|
+
rules: {
|
|
30
|
+
'@typescript-eslint/no-require-imports': 'off',
|
|
31
|
+
'@typescript-eslint/no-empty-object-type': 'off'
|
|
32
|
+
}
|
|
33
|
+
}
|
|
34
|
+
]
|
|
35
|
+
};
|
|
36
|
+
module.exports = config;
|
|
37
|
+
|
|
38
|
+
//#sourceMappingUrl=./default.js.map
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", {
|
|
3
|
+
value: true
|
|
4
|
+
});
|
|
5
|
+
const config = {
|
|
6
|
+
extends: [
|
|
7
|
+
'./default',
|
|
8
|
+
'@rushstack/eslint-config/mixins/react'
|
|
9
|
+
],
|
|
10
|
+
plugins: [
|
|
11
|
+
'eslint-plugin-react-hooks'
|
|
12
|
+
],
|
|
13
|
+
overrides: [
|
|
14
|
+
{
|
|
15
|
+
files: [
|
|
16
|
+
'*.tsx'
|
|
17
|
+
],
|
|
18
|
+
rules: {
|
|
19
|
+
'react/jsx-no-bind': 'off'
|
|
20
|
+
}
|
|
21
|
+
}
|
|
22
|
+
]
|
|
23
|
+
};
|
|
24
|
+
module.exports = config;
|
|
25
|
+
|
|
26
|
+
//#sourceMappingUrl=./react.js.map
|
package/lib-esm/index.js
ADDED
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
"use strict";
|
|
2
1
|
const config = {
|
|
3
2
|
root: true,
|
|
4
3
|
parser: '',
|
|
@@ -9,11 +8,20 @@ const config = {
|
|
|
9
8
|
'eslint-plugin-promise',
|
|
10
9
|
'@microsoft/eslint-plugin-spfx'
|
|
11
10
|
],
|
|
12
|
-
extends: [
|
|
13
|
-
|
|
11
|
+
extends: [
|
|
12
|
+
'eslint:recommended',
|
|
13
|
+
'plugin:@typescript-eslint/recommended'
|
|
14
|
+
],
|
|
15
|
+
ignorePatterns: [
|
|
16
|
+
'*.scss.ts',
|
|
17
|
+
'*.d.ts'
|
|
18
|
+
],
|
|
14
19
|
overrides: [
|
|
15
20
|
{
|
|
16
|
-
files: [
|
|
21
|
+
files: [
|
|
22
|
+
'*.ts',
|
|
23
|
+
'*.tsx'
|
|
24
|
+
],
|
|
17
25
|
rules: {
|
|
18
26
|
'@typescript-eslint/no-require-imports': 'off',
|
|
19
27
|
'@typescript-eslint/no-empty-object-type': 'off'
|
|
@@ -22,4 +30,6 @@ const config = {
|
|
|
22
30
|
]
|
|
23
31
|
};
|
|
24
32
|
module.exports = config;
|
|
25
|
-
|
|
33
|
+
export { };
|
|
34
|
+
|
|
35
|
+
//#sourceMappingUrl=./default.js.map
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
const config = {
|
|
2
|
+
extends: [
|
|
3
|
+
'./default',
|
|
4
|
+
'@rushstack/eslint-config/mixins/react'
|
|
5
|
+
],
|
|
6
|
+
plugins: [
|
|
7
|
+
'eslint-plugin-react-hooks'
|
|
8
|
+
],
|
|
9
|
+
overrides: [
|
|
10
|
+
{
|
|
11
|
+
files: [
|
|
12
|
+
'*.tsx'
|
|
13
|
+
],
|
|
14
|
+
rules: {
|
|
15
|
+
'react/jsx-no-bind': 'off'
|
|
16
|
+
}
|
|
17
|
+
}
|
|
18
|
+
]
|
|
19
|
+
};
|
|
20
|
+
module.exports = config;
|
|
21
|
+
export { };
|
|
22
|
+
|
|
23
|
+
//#sourceMappingUrl=./react.js.map
|
package/package.json
CHANGED
|
@@ -1,27 +1,48 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@microsoft/eslint-config-spfx",
|
|
3
|
-
"version": "1.21.0-beta.
|
|
3
|
+
"version": "1.21.0-beta.2",
|
|
4
4
|
"description": "ESLint profiles for SharePoint Framework solutions",
|
|
5
5
|
"license": "https://aka.ms/spfx/license",
|
|
6
6
|
"homepage": "http://aka.ms/spfx",
|
|
7
|
-
"main": "lib/index.js",
|
|
8
|
-
"
|
|
7
|
+
"main": "lib-commonjs/index.js",
|
|
8
|
+
"module": "lib-esm/index.js",
|
|
9
|
+
"typings": "lib-dts/index.d.ts",
|
|
10
|
+
"exports": {
|
|
11
|
+
".": {
|
|
12
|
+
"import": "./lib-esm/index.js",
|
|
13
|
+
"require": "./lib-commonjs/index.js",
|
|
14
|
+
"types": "./lib-dts/index.d.ts"
|
|
15
|
+
},
|
|
16
|
+
"./lib/*": {
|
|
17
|
+
"import": "./lib-esm/*.js",
|
|
18
|
+
"require": "./lib-commonjs/*.js",
|
|
19
|
+
"types": "./lib-dts/*.d.ts"
|
|
20
|
+
},
|
|
21
|
+
"./package.json": "./package.json"
|
|
22
|
+
},
|
|
23
|
+
"typesVersions": {
|
|
24
|
+
"*": {
|
|
25
|
+
"lib/*": [
|
|
26
|
+
"lib-dts/*"
|
|
27
|
+
]
|
|
28
|
+
}
|
|
29
|
+
},
|
|
9
30
|
"engines": {
|
|
10
|
-
"node": ">=18.17.1 <19.0.0"
|
|
31
|
+
"node": ">=18.17.1 <19.0.0 || >=22.14.0 < 23.0.0"
|
|
11
32
|
},
|
|
12
33
|
"dependencies": {
|
|
13
|
-
"@rushstack/eslint-config": "4.
|
|
14
|
-
"@typescript-eslint/utils": "8.1
|
|
15
|
-
"@microsoft/eslint-plugin-spfx": "1.21.0-beta.
|
|
34
|
+
"@rushstack/eslint-config": "4.3.0",
|
|
35
|
+
"@typescript-eslint/utils": "8.26.1",
|
|
36
|
+
"@microsoft/eslint-plugin-spfx": "1.21.0-beta.2"
|
|
16
37
|
},
|
|
17
38
|
"peerDependencies": {
|
|
18
39
|
"eslint": "^6.0.0 || ^7.0.0 || ^8.0.0"
|
|
19
40
|
},
|
|
20
41
|
"devDependencies": {
|
|
21
|
-
"@rushstack/heft": "0.
|
|
42
|
+
"@rushstack/heft": "0.71.0",
|
|
22
43
|
"eslint": "8.57.1",
|
|
23
44
|
"typescript": "5.3.3",
|
|
24
|
-
"@
|
|
45
|
+
"@msinternal/internal-node-rig": "0.1.0"
|
|
25
46
|
},
|
|
26
47
|
"scripts": {
|
|
27
48
|
"build": "heft test --clean",
|
package/lib/index.d.ts
DELETED
package/lib/index.d.ts.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,IAAI,OAAO,EAAE,MAAM,oBAAoB,CAAC;AACxD,OAAO,EAAE,OAAO,IAAI,KAAK,EAAE,MAAM,kBAAkB,CAAC"}
|
package/lib/index.js
DELETED
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
3
|
-
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
|
-
};
|
|
5
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
-
exports.React = exports.Default = void 0;
|
|
7
|
-
var default_1 = require("./profiles/default");
|
|
8
|
-
Object.defineProperty(exports, "Default", { enumerable: true, get: function () { return __importDefault(default_1).default; } });
|
|
9
|
-
var react_1 = require("./profiles/react");
|
|
10
|
-
Object.defineProperty(exports, "React", { enumerable: true, get: function () { return __importDefault(react_1).default; } });
|
|
11
|
-
//# sourceMappingURL=index.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"default.d.ts","sourceRoot":"","sources":["../../src/profiles/default.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,0BAA0B,CAAC;AAEzD,QAAA,MAAM,MAAM,EAAE,OAAO,CAAC,QAAQ,CAAC,MAAM,CAAC,cAAc,GAAG;IAAE,IAAI,EAAE,OAAO,CAAC;IAAC,cAAc,EAAE,MAAM,EAAE,CAAA;CAAE,CAqBjG,CAAC;AAEF,SAAS,MAAM,CAAC"}
|
package/lib/profiles/react.d.ts
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"react.d.ts","sourceRoot":"","sources":["../../src/profiles/react.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,0BAA0B,CAAC;AAEzD,QAAA,MAAM,MAAM,EAAE,OAAO,CAAC,QAAQ,CAAC,MAAM,CAAC,cAAc,GAAG;IAAE,cAAc,EAAE,MAAM,EAAE,CAAA;CAAE,CAWlF,CAAC;AAEF,SAAS,MAAM,CAAC"}
|
package/lib/profiles/react.js
DELETED
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
const config = {
|
|
3
|
-
extends: ['./default', '@rushstack/eslint-config/mixins/react'],
|
|
4
|
-
plugins: ['eslint-plugin-react-hooks'],
|
|
5
|
-
overrides: [
|
|
6
|
-
{
|
|
7
|
-
files: ['*.tsx'],
|
|
8
|
-
rules: {
|
|
9
|
-
'react/jsx-no-bind': 'off'
|
|
10
|
-
}
|
|
11
|
-
}
|
|
12
|
-
]
|
|
13
|
-
};
|
|
14
|
-
module.exports = config;
|
|
15
|
-
//# sourceMappingURL=react.js.map
|