Skip to content

Commit 0f22649

Browse files
authored
Install prettier, relint files (#157)
1 parent e187a4d commit 0f22649

File tree

14 files changed

+20093
-9310
lines changed

14 files changed

+20093
-9310
lines changed

.eslintrc

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

.eslintrc.json

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
{
2+
"env": {
3+
"browser": true
4+
},
5+
"extends": ["prettier"],
6+
"rules": {
7+
"brace-style": [2, "1tbs"],
8+
"comma-style": [2, "last"],
9+
"camelcase": 0,
10+
"curly": 2,
11+
"default-case": 2,
12+
"eqeqeq": 2,
13+
"guard-for-in": 2,
14+
"indent": [2, 2],
15+
"keyword-spacing": ["error", { "before": true }],
16+
"new-cap": 0,
17+
"no-console": 0,
18+
"no-debugger": 2,
19+
"no-empty": 2,
20+
"no-floating-decimal": 2,
21+
"no-nested-ternary": 2,
22+
"no-undefined": 2,
23+
"no-underscore-dangle": 0,
24+
"no-unreachable": 2,
25+
"radix": 2,
26+
"quotes": [2, "single"],
27+
"space-before-blocks": 2,
28+
"spaced-comment": [2, "always", { "exceptions": ["-"] }],
29+
"strict": [2, "global"],
30+
"valid-jsdoc": [2],
31+
"wrap-iife": [2, "any"]
32+
}
33+
}

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
.eslintcache
12
bower_components
23
coverage
34
node_modules

.travis.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
language: node_js
22
node_js:
3-
- "node"
3+
- 'node'
44
script: npm run travis

CONTRIBUTING.md

Lines changed: 8 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,25 +1,23 @@
1-
Contributing
2-
============
1+
# Contributing
32

43
Feel free to send your PR to fix any bug or add new functionality!
54
Follow these steps:
65

76
1. Fork the repository.
87
2. Make the changes. Follow the coding standards define in the ESLint configuration
9-
file.
8+
file.
109
3. Remember to add tests. Have a look at the `__tests__` folder to see the test
11-
suite covering the code. Want to run the tests? Run `npm test`. You will also get a code coverage report for free.
10+
suite covering the code. Want to run the tests? Run `npm test`. You will also get a code coverage report for free.
1211
4. Send a Pull Request.
1312

14-
Releasing a new version
15-
=======================
13+
# Releasing a new version
1614

1715
1. Update npm module version in the `package.json` file, using `npm version`
1816
2. Update bower version in the `bower.json` file to match the version from the npm package. Amend the commit generated in step 1.
1917
3. Push with tags: `git push --follow-tags`
20-
3. Draft a new release
21-
4. Generate the docs
22-
5. Publish a new npm package: `npm publish`
23-
6. Profit
18+
4. Draft a new release
19+
5. Generate the docs
20+
6. Publish a new npm package: `npm publish`
21+
7. Profit
2422

2523
Thanks for collaborating!

0 commit comments

Comments
 (0)