Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Meta
create-react-app
Commits
09cfcde0
Commit
09cfcde0
authored
8 years ago
by
Tharaka Wijebandara
Committed by
Dan Abramov
8 years ago
Browse files
Options
Download
Email Patches
Plain Diff
Add lint rule to disallow require.ensure and System.import (#1536)
parent
0ef9e803
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
packages/eslint-config-react-app/index.js
+9
-0
packages/eslint-config-react-app/index.js
with
9 additions
and
0 deletions
+9
-0
packages/eslint-config-react-app/index.js
+
9
-
0
View file @
09cfcde0
...
@@ -155,6 +155,15 @@ module.exports = {
...
@@ -155,6 +155,15 @@ module.exports = {
'
unicode-bom
'
:
[
'
warn
'
,
'
never
'
],
'
unicode-bom
'
:
[
'
warn
'
,
'
never
'
],
'
use-isnan
'
:
'
warn
'
,
'
use-isnan
'
:
'
warn
'
,
'
valid-typeof
'
:
'
warn
'
,
'
valid-typeof
'
:
'
warn
'
,
'
no-restricted-properties
'
:
[
'
error
'
,
{
object
:
'
require
'
,
property
:
'
ensure
'
,
message
:
'
Please use import() instead. More info: https://webpack.js.org/guides/code-splitting-import/#dynamic-import
'
},
{
object
:
'
System
'
,
property
:
'
import
'
,
message
:
'
Please use import() instead. More info: https://webpack.js.org/guides/code-splitting-import/#dynamic-import
'
}],
// https://github.com/benmosher/eslint-plugin-import/blob/master/docs/rules/
// https://github.com/benmosher/eslint-plugin-import/blob/master/docs/rules/
...
...
This diff is collapsed.
Click to expand it.
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment