Rename rule to no-primitive-constructors

This commit is contained in:
Andrew Clark
2017-02-28 15:59:45 -08:00
parent 1e9812e31b
commit 6ac5fd3c2b
5 changed files with 9 additions and 6 deletions

View File

@@ -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: {

View File

@@ -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'),
},
};

View File

@@ -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",

View File

@@ -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: