Skip to content

Commit

Permalink
Add react-native plugin
Browse files Browse the repository at this point in the history
Adds the [ESLint plugin for React Native](https://www.npmjs.com/package/eslint-plugin-react-native)
  • Loading branch information
afestein authored and dblandin committed Mar 8, 2017
1 parent fa4b525 commit eca0a5f
Show file tree
Hide file tree
Showing 3 changed files with 57 additions and 1 deletion.
5 changes: 5 additions & 0 deletions lib/check_category_mapping.json
Original file line number Diff line number Diff line change
Expand Up @@ -321,6 +321,11 @@
"mongodb/check-update-calls": "Bug Risk",
"mongodb/no-replace": "Bug Risk",

"react-native/no-unused-styles": "Clarity",
"react-native/split-platform-components": "Clarity",
"react-native/no-inline-styles": "Clarity",
"react-native/no-color-literals": "Clarity",

"security/detect-buffer-noassert": "Security",
"security/detect-child-process": "Security",
"security/detect-disable-mustache-escape": "Security",
Expand Down
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,7 @@
"eslint-plugin-promise": "^3.5.0",
"eslint-plugin-react": "^6.4.1",
"eslint-plugin-react-intl": "^1.0.2",
"eslint-plugin-react-native": "^2.2.1",
"eslint-plugin-security": "^1.2.0",
"eslint-plugin-standard": "^2.1.1",
"eslint-plugin-xogroup": "^1.1.0",
Expand Down
52 changes: 51 additions & 1 deletion yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,7 @@ babel-core@^6.16.0, babel-core@^6.18.0:
slash "^1.0.0"
source-map "^0.5.0"

babel-eslint@^7.0.0:
babel-eslint@7.1.1, babel-eslint@^7.0.0:
version "7.1.1"
resolved "https://registry.yarnpkg.com/babel-eslint/-/babel-eslint-7.1.1.tgz#8a6a884f085aa7060af69cfc77341c2f99370fb2"
dependencies:
Expand Down Expand Up @@ -727,6 +727,13 @@ eslint-plugin-react-intl@^1.0.2:
version "1.0.2"
resolved "https://registry.yarnpkg.com/eslint-plugin-react-intl/-/eslint-plugin-react-intl-1.0.2.tgz#04a54d282665c67b7cab3bd7cdc2b4bc7908010e"

eslint-plugin-react-native@^2.2.1:
version "2.2.1"
resolved "https://registry.yarnpkg.com/eslint-plugin-react-native/-/eslint-plugin-react-native-2.2.1.tgz#9da90b76b234e6a71b06e2b9466b76f9017c16e0"
dependencies:
babel-eslint "7.1.1"
eslint "3.12.0"

eslint-plugin-react@^6.4.1:
version "6.9.0"
resolved "https://registry.yarnpkg.com/eslint-plugin-react/-/eslint-plugin-react-6.9.0.tgz#54c2e9906b76f9d10142030bdc34e9d6840a0bb2"
Expand All @@ -749,6 +756,45 @@ eslint-plugin-xogroup@^1.1.0:
version "1.1.0"
resolved "https://registry.yarnpkg.com/eslint-plugin-xogroup/-/eslint-plugin-xogroup-1.1.0.tgz#e5f726acc90e4856fa6049e02911da115bac9f04"

[email protected]:
version "3.12.0"
resolved "https://registry.yarnpkg.com/eslint/-/eslint-3.12.0.tgz#1dfa4ef0082e35feed90a0fb1f7996d1d426b249"
dependencies:
babel-code-frame "^6.16.0"
chalk "^1.1.3"
concat-stream "^1.4.6"
debug "^2.1.1"
doctrine "^1.2.2"
escope "^3.6.0"
espree "^3.3.1"
estraverse "^4.2.0"
esutils "^2.0.2"
file-entry-cache "^2.0.0"
glob "^7.0.3"
globals "^9.14.0"
ignore "^3.2.0"
imurmurhash "^0.1.4"
inquirer "^0.12.0"
is-my-json-valid "^2.10.0"
is-resolvable "^1.0.0"
js-yaml "^3.5.1"
json-stable-stringify "^1.0.0"
levn "^0.3.0"
lodash "^4.0.0"
mkdirp "^0.5.0"
natural-compare "^1.4.0"
optionator "^0.8.2"
path-is-inside "^1.0.1"
pluralize "^1.2.1"
progress "^1.1.8"
require-uncached "^1.0.2"
shelljs "^0.7.5"
strip-bom "^3.0.0"
strip-json-comments "~1.0.1"
table "^3.7.8"
text-table "~0.2.0"
user-home "^2.0.0"

eslint@^3.14.1:
version "3.14.1"
resolved "https://registry.yarnpkg.com/eslint/-/eslint-3.14.1.tgz#8a62175f2255109494747a1b25128d97b8eb3d97"
Expand Down Expand Up @@ -1517,6 +1563,10 @@ strip-bom@^3.0.0:
version "3.0.0"
resolved "https://registry.yarnpkg.com/strip-bom/-/strip-bom-3.0.0.tgz#2334c18e9c759f7bdd56fdef7e9ae3d588e68ed3"

strip-json-comments@~1.0.1:
version "1.0.4"
resolved "https://registry.yarnpkg.com/strip-json-comments/-/strip-json-comments-1.0.4.tgz#1e15fbcac97d3ee99bf2d73b4c656b082bbafb91"

strip-json-comments@~2.0.1:
version "2.0.1"
resolved "https://registry.yarnpkg.com/strip-json-comments/-/strip-json-comments-2.0.1.tgz#3c531942e908c2697c0ec344858c286c7ca0a60a"
Expand Down

0 comments on commit eca0a5f

Please sign in to comment.