Socket
Socket
Sign inDemoInstall

eslint-plugin-react

Package Overview
Dependencies
Maintainers
1
Versions
211
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

eslint-plugin-react - npm Package Compare versions

Comparing version 1.0.0 to 1.1.0

build/coverage/coverage.json

8

index.js

@@ -6,8 +6,12 @@ 'use strict';

'no-multi-comp': require('./lib/rules/no-multi-comp'),
'prop-types': require('./lib/rules/prop-types')
'prop-types': require('./lib/rules/prop-types'),
'display-name': require('./lib/rules/display-name'),
'wrap-multilines': require('./lib/rules/wrap-multilines')
},
rulesConfig: {
'no-multi-comp': 0,
'prop-types': 0
'prop-types': 0,
'display-name': 0,
'wrap-multilines': 0
}
};

@@ -7,5 +7,5 @@ /**

//------------------------------------------------------------------------------
// ------------------------------------------------------------------------------
// Rule Definition
//------------------------------------------------------------------------------
// ------------------------------------------------------------------------------

@@ -16,5 +16,5 @@ module.exports = function(context) {

//--------------------------------------------------------------------------
// --------------------------------------------------------------------------
// Public
//--------------------------------------------------------------------------
// --------------------------------------------------------------------------

@@ -21,0 +21,0 @@ return {

@@ -7,5 +7,5 @@ /**

//------------------------------------------------------------------------------
// ------------------------------------------------------------------------------
// Rule Definition
//------------------------------------------------------------------------------
// ------------------------------------------------------------------------------

@@ -16,2 +16,6 @@ module.exports = function(context) {

// --------------------------------------------------------------------------
// Public
// --------------------------------------------------------------------------
return {

@@ -18,0 +22,0 @@

{
"name": "eslint-plugin-react",
"version": "1.0.0",
"version": "1.1.0",
"description": "React specific linting rules for ESLint",
"main": "index.js",
"scripts": {
"test": "echo \"Error: no test specified\" && exit 1"
"test": "npm run lint && npm run unit-test --coverage && npm run check-coverage",
"lint": "eslint ./",
"unit-test": "istanbul test --dir build/coverage node_modules/mocha/bin/_mocha tests/**/*.js -- --recursive --reporter dot",
"check-coverage": "istanbul check-coverage --statement 100 --branch 100 --function 100 --lines 100",
"report-coverage-html": "istanbul report --dir build/coverage html"
},

@@ -19,2 +23,8 @@ "repository": {

],
"devDependencies": {
"eslint": "^0.11.0-alpha.0",
"eslint-tester": "^0.3.0",
"istanbul": "0.3.0",
"mocha": "1.21.4"
},
"author": "Yannick Croissant (https://github.com/yannickcr)",

@@ -21,0 +31,0 @@ "licenses": [

@@ -47,3 +47,5 @@ ESLint-plugin-React

"react/no-multi-comp": 1,
"react/prop-types": 1
"react/prop-types": 1,
"react/display-name": 1,
"react/wrap-multilines": 1
}

@@ -55,10 +57,12 @@ }

* no-multi-comp: Prevent multiple component definition per file
* prop-types: Prevent missing propTypes in a React component definition
* [no-multi-comp](docs/rules/no-multi-comp.md): Prevent multiple component definition per file
* [prop-types](docs/rules/prop-types.md): Prevent missing propTypes in a React component definition
* [display-name](docs/rules/display-name.md): Prevent missing displayName in a React component definition
* [wrap-multilines](docs/rules/wrap-multilines.md): Prevent missing parentheses around multilines JSX
## Not supported yet
## To Do
* display-name: Prevent missing displayName in a React component definition
* no-deprecated: Prevent usage of deprecated methods ([React 0.12 Updated API](http://facebook.github.io/react/blog/2014/10/28/react-v0.12.html#new-terminology-amp-updated-apis))
* no-classic: Prevent usage of "classic" methods ([#2700](https://github.com/facebook/react/pull/2700))
* [Implement rules from David Chang's React Style Guide](https://reactjsnews.com/react-style-guide-patterns-i-like)

@@ -65,0 +69,0 @@ [Any rule idea is welcome !](https://github.com/yannickcr/eslint-plugin-react/issues)

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc