Skip to content

Commit fcf407a

Browse files
committed
Babel transpilation ES6 src -> lib, jshint -> eslint
1 parent c5ccad3 commit fcf407a

37 files changed

+5419
-2995
lines changed

.eslintrc

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
{
2+
"parser": "babel-eslint",
3+
"env": {
4+
"es6": true,
5+
"node": true
6+
},
7+
"ecmaFeatures": {
8+
"destructuring": true,
9+
"modules": true
10+
},
11+
"rules": {
12+
"quotes": 0,
13+
"curly": 0,
14+
"camelcase": 0,
15+
"semi": 0,
16+
"eol-last": 0,
17+
"key-spacing": 0,
18+
"new-cap": 0,
19+
"comma-dangle": 0,
20+
"consistent-return": 0,
21+
"no-proto": 0,
22+
"no-use-before-define": 0,
23+
"no-trailing-spaces": 0,
24+
"no-multi-spaces": 0,
25+
"no-mixed-requires": 0,
26+
"no-underscore-dangle": 0
27+
}
28+
}

.jshintrc

Lines changed: 0 additions & 17 deletions
This file was deleted.

CONTRIBUTING.md

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,10 @@
44
[tests](https://github.com/tgriesser/bookshelf/tree/master/test).
55

66
* Use the same coding style as the rest of the
7-
[codebase](https://github.com/tgriesser/bookshelf/blob/master/bookshelf.js).
7+
[codebase](https://github.com/tgriesser/bookshelf/blob/master/src/bookshelf.js).
8+
9+
* Make changes in the /src directory, running "npm run dev" which will kick off
10+
transpilation from ES6 in the background
811

912
* Files in the `/browser` folder are built automatically. You don't need to edit them.
1013

bookshelf.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,4 +5,4 @@
55
// Bookshelf may be freely distributed under the MIT license.
66
// For all details and documentation:
77
// http://bookshelfjs.org
8-
module.exports = require('./lib')
8+
module.exports = require('./lib/bookshelf')

0 commit comments

Comments
 (0)