@samitouri / QOS-React / commits / 6ac5fd3c2b

Rename rule to no-primitive-constructors

Andrew Clark committed Feb 28, 2017 at 15:59 UTC 6ac5fd3c2b7e1bd2bcd31eac9e812c1a29a41ef0
5 files changed +9 -6
.eslintrc.js
+1 -1
@@ -55,7 +55,7 @@ module.exports = {
55 // CUSTOM RULES
56 // the second argument of warning/invariant should be a literal string
57 'react-internal/warning-and-invariant-args': ERROR,
58 - 'react-internal/boolean-and-string-constructors': ERROR,
58 + 'react-internal/no-primitive-constructors': ERROR,
59 },
60
61 globals: {
eslint-rules/index.js
+1 -1
@@ -3,6 +3,6 @@
3 module.exports = {
4 rules: {
5 'warning-and-invariant-args': require('./warning-and-invariant-args'),
6 - 'boolean-and-string-constructors': require('./boolean-and-string-constructors'),
6 + 'no-primitive-constructors': require('./no-primitive-constructors'),
7 },
8 };
eslint-rules/no-primitive-constructors.js renamed
package.json
+1 -1
@@ -46,7 +46,7 @@
46 "eslint-plugin-babel": "^3.3.0",
47 "eslint-plugin-flowtype": "^2.25.0",
48 "eslint-plugin-react": "^6.7.1",
49 - "eslint-plugin-react-internal": "file:eslint-rules",
49 + "eslint-plugin-react-internal": "file:./eslint-rules",
50 "fbjs": "^0.8.9",
51 "fbjs-scripts": "^0.6.0",
52 "flow-bin": "^0.37.0",
yarn.lock
+6 -3
@@ -1846,6 +1846,9 @@ eslint-plugin-flowtype@^2.25.0:
1846 dependencies:
1847 lodash "^4.15.0"
1848
1849 +"eslint-plugin-react-internal@file:./eslint-rules":
1850 + version "0.0.0"
1851 +
1852 "eslint-plugin-react-internal@file:eslint-rules":
1853 version "0.0.0"
1854
@@ -3140,7 +3143,7 @@ jest-cli@^19.0.1:
3143 worker-farm "^1.3.1"
3144 yargs "^6.3.0"
3145
3143 -jest-config@^19.0.0, jest-config@^19.0.1:
3146 +jest-config@^19.0.1:
3147 version "19.0.1"
3148 resolved "https://registry.yarnpkg.com/jest-config/-/jest-config-19.0.1.tgz#a50698aca3b70949ff4e3898d339a13e166d8fb8"
3149 dependencies:
@@ -3191,7 +3194,7 @@ jest-haste-map@^19.0.0:
3194 sane "~1.5.0"
3195 worker-farm "^1.3.1"
3196
3194 -jest-jasmine2@^19.0.0, jest-jasmine2@^19.0.1:
3197 +jest-jasmine2@^19.0.1:
3198 version "19.0.1"
3199 resolved "https://registry.yarnpkg.com/jest-jasmine2/-/jest-jasmine2-19.0.1.tgz#9a9ee34573fc15c4856ec32e65a0865ee878756e"
3200 dependencies:
@@ -3246,7 +3249,7 @@ jest-resolve@^19.0.0:
3249 jest-haste-map "^19.0.0"
3250 resolve "^1.2.0"
3251
3249 -jest-runtime@^19.0.0, jest-runtime@^19.0.1:
3252 +jest-runtime@^19.0.1:
3253 version "19.0.1"
3254 resolved "https://registry.yarnpkg.com/jest-runtime/-/jest-runtime-19.0.1.tgz#7b584cbc690a500d9da148aba6a109bc9266a6b1"
3255 dependencies: