Skip to content

Commit bd7692c

Browse files
committed
Try to add some eslint rules
1 parent 3f32b67 commit bd7692c

File tree

2 files changed

+9
-2
lines changed

2 files changed

+9
-2
lines changed

config/eslint.js

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -201,6 +201,13 @@ module.exports = {
201201
// https://github.com/gajus/eslint-plugin-flowtype
202202
'flowtype/define-flow-type': 'warn',
203203
'flowtype/require-valid-file-annotation': 'warn',
204-
'flowtype/use-flow-type': 'warn'
204+
'flowtype/use-flow-type': 'warn',
205+
206+
// Jim Pick's style
207+
'semi': [ 'warn', 'never' ],
208+
'max-len': [ 'warn', 80, 2 ],
209+
'space-before-function-paren: [ 'warn', 'always' ],
210+
'react/wrap-multilines': 'warn',
211+
'react/prefer-stateless-function': 'off'
205212
}
206213
};

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@jimpick/react-scripts",
3-
"version": "0.3.0-alpha",
3+
"version": "0.3.0-alpha.1",
44
"description": "Configuration and scripts for Create React App.",
55
"repository": "facebookincubator/create-react-app",
66
"license": "BSD-3-Clause",

0 commit comments

Comments
 (0)