eslint-config-eventbrite-react
Advanced tools
Comparing version 1.1.2 to 1.2.0
@@ -0,1 +1,5 @@ | ||
## v1.2.0 (July 12, 2016) | ||
- (minor) Change `react/jsx-handler-names` `eventHandlerPrefix` to `_handle` from `handle` | ||
- (patch) Bump `eslint-config-eventbrite` dependency to 2.1.1 | ||
## v1.1.2 (June 22, 2016) | ||
@@ -2,0 +6,0 @@ - (dev ops) Bump `eslint-config-eventbrite` dependency to 2.1.0 |
{ | ||
"name": "eslint-config-eventbrite-react", | ||
"version": "1.1.2", | ||
"version": "1.2.0", | ||
"description": "Eventbrites's ESLint config that lints React & JSX, adhering to the Eventbrite JavaScript Coding Style Guide", | ||
@@ -36,3 +36,3 @@ "main": "index.js", | ||
"dependencies": { | ||
"eslint-config-eventbrite": "^2.1.0" | ||
"eslint-config-eventbrite": "^2.1.1" | ||
}, | ||
@@ -39,0 +39,0 @@ "devDependencies": { |
@@ -48,5 +48,8 @@ module.exports = { | ||
// Enforce event handler naming conventions in JSX: on* for props, handle* from functions | ||
// Enforce event handler naming conventions in JSX: on* for props, _handle* from methods/functions | ||
// https://github.com/yannickcr/eslint-plugin-react/blob/master/docs/rules/jsx-handler-names.md | ||
'react/jsx-handler-names': 'error', | ||
'react/jsx-handler-names': ['error', { | ||
eventHandlerPrefix: '_handle', | ||
eventHandlerPropPrefix: 'on' | ||
}], | ||
@@ -53,0 +56,0 @@ // Enforce 4 space JSX tag indentation |
15755
180