eslint-config-pebblecode
Advanced tools
Comparing version 1.4.0 to 1.5.0
{ | ||
"name": "eslint-config-pebblecode", | ||
"version": "1.4.0", | ||
"version": "1.5.0", | ||
"description": "pebblecode's ESLint config, following our styleguide, fork of airbnb styleguide", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
@@ -11,3 +11,3 @@ # eslint-config-pebblecode | ||
Our default export contains all of our ESLint rules, including EcmaScript 6+ | ||
Our default export contains all of our ESLint rules, including ES2015 | ||
and React. It requires `eslint` and `eslint-plugin-react`. | ||
@@ -18,5 +18,5 @@ | ||
### eslint-config-pebblecode/base | ||
### eslint-config-pebblecode/basestrict | ||
Lints ES6+ but does not lint React. Requires `eslint`. | ||
Lints ES2015 but does not lint React. Requires `eslint`. | ||
@@ -40,3 +40,3 @@ 1. `npm install --save-dev eslint-config-pebblecode eslint` | ||
Consider adding test cases if you're making complicated rules changes, like | ||
anything involving regexes. Perhaps in a distant future, we could use literate | ||
anything involving regexes. Perhaps in the distant future, we could use literate | ||
programming to structure our README as test cases for our .eslintrc? | ||
@@ -48,4 +48,21 @@ | ||
## Contributing | ||
In order to modify this package, you need to clone this repo. | ||
1. Make the changes you wish, including tests | ||
2. Try out the updated rules locally by installing from local dir | ||
3. Submit a PR back to the repo, or if you're flying by the seat of your pants, `GOTO 4` | ||
4. `npm version minor` | ||
5. `npm login` then `npm publish` | ||
6. Commit and push your changes back to the repo | ||
## Changelog | ||
### 1.4.0 | ||
- modify indent rule to include `{SwitchCase: 1}` | ||
### 1.3.0 | ||
- add babel-eslint as default parser | ||
### 1.0.0 | ||
@@ -52,0 +69,0 @@ - require `eslint` `v1.0.0` or higher |
@@ -22,4 +22,4 @@ module.exports = { | ||
// disallow use of synchronous methods (off by default) | ||
'no-sync': 0 | ||
'no-sync': 0. | ||
} | ||
}; |
module.exports = { | ||
'rules': { | ||
// babel inserts `'use strict';` for us | ||
'strict': [2, 'never'] | ||
// babel inserts `'use strict';` for us but we also run node without babel so strict is allowed. | ||
'strict': 0 | ||
} | ||
}; |
@@ -23,5 +23,5 @@ import test from 'tape'; | ||
return ` | ||
import React from 'react'; | ||
export default class MyComponent extends React.Component { | ||
${body} | ||
import React from 'react'; | ||
export default class MyComponent extends React.Component { | ||
${body} | ||
} | ||
@@ -28,0 +28,0 @@ `; |
26292
95