@microsoft/eslint-config-spfx 1.20.2 → 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.
@@ -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
@@ -0,0 +1,3 @@
1
+ export * as Default from './profiles/default';
2
+ export * as React from './profiles/react';
3
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=default.d.ts.map
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=react.d.ts.map
@@ -0,0 +1,4 @@
1
+ export * as Default from './profiles/default';
2
+ export * as React from './profiles/react';
3
+
4
+ //#sourceMappingUrl=./index.js.map
@@ -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: ['eslint:recommended', 'plugin:@typescript-eslint/recommended'],
13
- ignorePatterns: ['*.scss.ts', '*.d.ts'],
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: ['*.ts', '*.tsx'],
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
- //# sourceMappingURL=default.js.map
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,34 +1,55 @@
1
1
  {
2
2
  "name": "@microsoft/eslint-config-spfx",
3
- "version": "1.20.2",
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
- "typings": "lib/index.d.ts",
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.0.2",
14
- "@typescript-eslint/utils": "8.1.0",
15
- "@microsoft/eslint-plugin-spfx": "1.20.2"
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.67.2",
42
+ "@rushstack/heft": "0.71.0",
22
43
  "eslint": "8.57.1",
23
44
  "typescript": "5.3.3",
24
- "@odsp-web-tools/internal-node-rig": "0.1.0"
45
+ "@msinternal/internal-node-rig": "0.1.0"
25
46
  },
26
47
  "scripts": {
27
48
  "build": "heft test --clean",
28
49
  "clean": "heft clean",
29
50
  "start": "heft start --clean",
51
+ "_phase:depscan": "heft depscan",
30
52
  "_phase:tool-build": "heft run --only build -- --clean",
31
- "_phase:build-incremental": "heft run --only build --",
32
- "_phase:depscan": ""
53
+ "_phase:tool-build:incremental": "heft run --only build --"
33
54
  }
34
55
  }
package/lib/index.d.ts DELETED
@@ -1,3 +0,0 @@
1
- export { default as Default } from './profiles/default';
2
- export { default as React } from './profiles/react';
3
- //# sourceMappingURL=index.d.ts.map
@@ -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,7 +0,0 @@
1
- import type { TSESLint } from '@typescript-eslint/utils';
2
- declare const config: Partial<TSESLint.Linter.ConfigOverride & {
3
- root: boolean;
4
- ignorePatterns: string[];
5
- }>;
6
- export = config;
7
- //# sourceMappingURL=default.d.ts.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"}
@@ -1,6 +0,0 @@
1
- import type { TSESLint } from '@typescript-eslint/utils';
2
- declare const config: Partial<TSESLint.Linter.ConfigOverride & {
3
- ignorePatterns: string[];
4
- }>;
5
- export = config;
6
- //# sourceMappingURL=react.d.ts.map
@@ -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"}
@@ -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