Skip to content

Commit

Permalink
v0.1.2
Browse files Browse the repository at this point in the history
- Update ESLint Rules
  • Loading branch information
ndaidong committed Jun 13, 2016
1 parent 8353aa2 commit bf6877d
Show file tree
Hide file tree
Showing 7 changed files with 103 additions and 403 deletions.
390 changes: 0 additions & 390 deletions .eslintrc

This file was deleted.

99 changes: 99 additions & 0 deletions .eslintrc.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,99 @@
{
"parserOptions": {
"sourceType": "module",
"ecmaVersion": 6,
"ecmaFeatures": {
"binaryLiterals": true,
"blockBindings": true,
"defaultParams": true,
"forOf": true,
"generators": true,
"modules": true,
"objectLiteralComputedProperties": true,
"objectLiteralDuplicateProperties": true,
"objectLiteralShorthandMethods": true,
"objectLiteralShorthandProperties": true,
"octalLiterals": true,
"regexUFlag": true,
"regexYFlag": true,
"templateStrings": true,
"unicodeCodePointEscapes": true,
"jsx": true
}
},
"env": {
"browser": true,
"jasmine": true,
"node": true,
"es6": true,
"mocha": true
},

"globals": {

},

"plugins": [

],

"extends": "eslint:all",

"rules": {
"arrow-body-style": 0,
"dot-location": 0,
"global-require": 0,
"id-length": 0,
"indent": [
"error",
2,
{
"SwitchCase": 1
}
],
"init-declarations": 0,
"max-len": [
"error",
{
"code": 120,
"ignoreTrailingComments": true,
"ignoreComments": true,
"ignoreUrls": true
}
],
"max-statements": 0,
"newline-after-var": 0,
"newline-before-return": 0,
"newline-per-chained-call": 0,
"no-console": 0,
"no-magic-numbers": 0,
"no-param-reassign": 0,
"no-plusplus": 0,
"no-sync": 0,
"no-ternary": 0,
"no-underscore-dangle": 0,
"no-var": 0,
"object-curly-newline": 0,
"object-curly-spacing": 2,
"object-property-newline": 0,
"one-var": 0,
"padded-blocks": 0,
"prefer-const": 0,
"prefer-reflect": 0,
"prefer-template": 0,
"quotes": [
"error",
"single",
{
"allowTemplateLiterals": true
}
],
"quote-props": [
"error", "as-needed"
],
"require-jsdoc": 0,
"space-before-function-paren": [
"error", "never"
]
}
}
2 changes: 0 additions & 2 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,5 @@
* Starting app
* @ndaidong
**/
'use strict';

exports = module.exports = require('./src/main');
exports.version = require('./package').version;
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"version": "0.1.10",
"version": "0.1.2",
"name": "txtgen",
"description": "Util for generating random sentences, paragraphs and articles in English",
"homepage": "http://ndaidong.github.io/txtgen",
Expand Down
6 changes: 3 additions & 3 deletions src/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
if (typeof module !== 'undefined' && module.exports) {
module.exports = factory();
} else {
var root = window || {};
let root = window || {};
if (root.define && root.define.amd) {
root.define([], factory);
} else if (root.exports) {
Expand Down Expand Up @@ -143,7 +143,7 @@
noun: () => {
return rand(nouns);
},
'a_noun': () => {
a_noun: () => { // eslint-disable-line camelcase
return normalize(rand(nouns));
},
nouns: () => {
Expand All @@ -152,7 +152,7 @@
adjective: () => {
return rand(adjectives);
},
'an_adjective': () => {
an_adjective: () => { // eslint-disable-line camelcase
return normalize(rand(adjectives));
}
};
Expand Down
5 changes: 0 additions & 5 deletions test/specs/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,6 @@
* @ndaidong
*/

/* eslint no-undefined: 0*/
/* eslint no-array-constructor: 0*/
/* eslint no-new-func: 0*/
/* eslint no-console: 0*/

var path = require('path');
var test = require('tape');
var bella = require('bellajs');
Expand Down
2 changes: 0 additions & 2 deletions test/specs/txtgen.client.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,6 @@

/* global txtgen */

'use strict';

describe('Testing txtgen APIs', () => {
describe('General', () => {

Expand Down

0 comments on commit bf6877d

Please sign in to comment.