mirror of
https://github.com/zebrajr/react.git
synced 2026-01-15 12:15:22 +00:00
Rename rule to no-primitive-constructors
This commit is contained in:
@@ -55,7 +55,7 @@ module.exports = {
|
||||
// CUSTOM RULES
|
||||
// the second argument of warning/invariant should be a literal string
|
||||
'react-internal/warning-and-invariant-args': ERROR,
|
||||
'react-internal/boolean-and-string-constructors': ERROR,
|
||||
'react-internal/no-primitive-constructors': ERROR,
|
||||
},
|
||||
|
||||
globals: {
|
||||
|
||||
@@ -3,6 +3,6 @@
|
||||
module.exports = {
|
||||
rules: {
|
||||
'warning-and-invariant-args': require('./warning-and-invariant-args'),
|
||||
'boolean-and-string-constructors': require('./boolean-and-string-constructors'),
|
||||
'no-primitive-constructors': require('./no-primitive-constructors'),
|
||||
},
|
||||
};
|
||||
|
||||
@@ -46,7 +46,7 @@
|
||||
"eslint-plugin-babel": "^3.3.0",
|
||||
"eslint-plugin-flowtype": "^2.25.0",
|
||||
"eslint-plugin-react": "^6.7.1",
|
||||
"eslint-plugin-react-internal": "file:eslint-rules",
|
||||
"eslint-plugin-react-internal": "file:./eslint-rules",
|
||||
"fbjs": "^0.8.9",
|
||||
"fbjs-scripts": "^0.6.0",
|
||||
"flow-bin": "^0.37.0",
|
||||
|
||||
@@ -1846,6 +1846,9 @@ eslint-plugin-flowtype@^2.25.0:
|
||||
dependencies:
|
||||
lodash "^4.15.0"
|
||||
|
||||
"eslint-plugin-react-internal@file:./eslint-rules":
|
||||
version "0.0.0"
|
||||
|
||||
"eslint-plugin-react-internal@file:eslint-rules":
|
||||
version "0.0.0"
|
||||
|
||||
@@ -3140,7 +3143,7 @@ jest-cli@^19.0.1:
|
||||
worker-farm "^1.3.1"
|
||||
yargs "^6.3.0"
|
||||
|
||||
jest-config@^19.0.0, jest-config@^19.0.1:
|
||||
jest-config@^19.0.1:
|
||||
version "19.0.1"
|
||||
resolved "https://registry.yarnpkg.com/jest-config/-/jest-config-19.0.1.tgz#a50698aca3b70949ff4e3898d339a13e166d8fb8"
|
||||
dependencies:
|
||||
@@ -3191,7 +3194,7 @@ jest-haste-map@^19.0.0:
|
||||
sane "~1.5.0"
|
||||
worker-farm "^1.3.1"
|
||||
|
||||
jest-jasmine2@^19.0.0, jest-jasmine2@^19.0.1:
|
||||
jest-jasmine2@^19.0.1:
|
||||
version "19.0.1"
|
||||
resolved "https://registry.yarnpkg.com/jest-jasmine2/-/jest-jasmine2-19.0.1.tgz#9a9ee34573fc15c4856ec32e65a0865ee878756e"
|
||||
dependencies:
|
||||
@@ -3246,7 +3249,7 @@ jest-resolve@^19.0.0:
|
||||
jest-haste-map "^19.0.0"
|
||||
resolve "^1.2.0"
|
||||
|
||||
jest-runtime@^19.0.0, jest-runtime@^19.0.1:
|
||||
jest-runtime@^19.0.1:
|
||||
version "19.0.1"
|
||||
resolved "https://registry.yarnpkg.com/jest-runtime/-/jest-runtime-19.0.1.tgz#7b584cbc690a500d9da148aba6a109bc9266a6b1"
|
||||
dependencies:
|
||||
|
||||
Reference in New Issue
Block a user