@microsoft/eslint-config-spfx 1.23.0-beta.0 → 1.23.0-rc.0

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.
@@ -49,7 +49,6 @@ const config = [
49
49
  // ---------------------------------------------------------------
50
50
  '@rushstack/import-requires-chunk-name': 'warn',
51
51
  '@rushstack/pair-react-dom-render-unmount': 'warn',
52
- '@typescript-eslint/no-var-requires': 'error',
53
52
  '@typescript-eslint/no-inferrable-types': 'off',
54
53
  '@typescript-eslint/no-empty-interface': 'off',
55
54
  '@microsoft/spfx/no-require-ensure': 'error',
@@ -85,14 +84,19 @@ const config = [
85
84
  'no-bitwise': 'off'
86
85
  }
87
86
  },
88
- // Match the current legacy profile: disable these rules for TypeScript files
87
+ // Match the current legacy profile: adjust these rules for TypeScript files
89
88
  {
90
89
  files: [
91
90
  '**/*.ts',
92
91
  '**/*.tsx'
93
92
  ],
94
93
  rules: {
95
- '@typescript-eslint/no-require-imports': 'off',
94
+ '@typescript-eslint/no-require-imports': [
95
+ 'error',
96
+ {
97
+ allowAsImport: true
98
+ }
99
+ ],
96
100
  '@typescript-eslint/no-empty-object-type': 'off'
97
101
  }
98
102
  }
@@ -45,7 +45,6 @@ const config = [
45
45
  // ---------------------------------------------------------------
46
46
  '@rushstack/import-requires-chunk-name': 'warn',
47
47
  '@rushstack/pair-react-dom-render-unmount': 'warn',
48
- '@typescript-eslint/no-var-requires': 'error',
49
48
  '@typescript-eslint/no-inferrable-types': 'off',
50
49
  '@typescript-eslint/no-empty-interface': 'off',
51
50
  '@microsoft/spfx/no-require-ensure': 'error',
@@ -81,14 +80,19 @@ const config = [
81
80
  'no-bitwise': 'off'
82
81
  }
83
82
  },
84
- // Match the current legacy profile: disable these rules for TypeScript files
83
+ // Match the current legacy profile: adjust these rules for TypeScript files
85
84
  {
86
85
  files: [
87
86
  '**/*.ts',
88
87
  '**/*.tsx'
89
88
  ],
90
89
  rules: {
91
- '@typescript-eslint/no-require-imports': 'off',
90
+ '@typescript-eslint/no-require-imports': [
91
+ 'error',
92
+ {
93
+ allowAsImport: true
94
+ }
95
+ ],
92
96
  '@typescript-eslint/no-empty-object-type': 'off'
93
97
  }
94
98
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@microsoft/eslint-config-spfx",
3
- "version": "1.23.0-beta.0",
3
+ "version": "1.23.0-rc.0",
4
4
  "description": "ESLint profiles for SharePoint Framework solutions",
5
5
  "homepage": "http://aka.ms/spfx",
6
6
  "license": "https://aka.ms/spfx/license",
@@ -33,12 +33,13 @@
33
33
  "dependencies": {
34
34
  "@rushstack/eslint-config": "4.6.4",
35
35
  "@rushstack/eslint-plugin": "0.23.2",
36
+ "@rushstack/eslint-plugin-security": "0.14.2",
36
37
  "@typescript-eslint/eslint-plugin": "8.56.1",
37
38
  "@typescript-eslint/parser": "8.56.1",
38
39
  "@typescript-eslint/utils": "8.56.1",
39
40
  "eslint-plugin-promise": "~7.2.1",
40
41
  "eslint-plugin-react-hooks": "5.2.0",
41
- "@microsoft/eslint-plugin-spfx": "1.23.0-beta.0"
42
+ "@microsoft/eslint-plugin-spfx": "1.23.0-rc.0"
42
43
  },
43
44
  "peerDependencies": {
44
45
  "eslint": "^6.0.0 || ^7.0.0 || ^8.0.0 || ^9.0.0"