We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 5b9284b commit ce55de2Copy full SHA for ce55de2
packages/eslint-config-react-app/index.js
@@ -155,6 +155,15 @@ module.exports = {
155
'unicode-bom': ['warn', 'never'],
156
'use-isnan': 'warn',
157
'valid-typeof': 'warn',
158
+ 'no-restricted-properties': ['error', {
159
+ object: 'require',
160
+ property: 'ensure',
161
+ message: 'Please use import() instead. More info: https://webpack.js.org/guides/code-splitting-import/#dynamic-import'
162
+ }, {
163
+ object: 'System',
164
+ property: 'import',
165
166
+ }],
167
168
// https://github.com/benmosher/eslint-plugin-import/blob/master/docs/rules/
169
0 commit comments