diff --git a/.eslintrc b/.eslintrc new file mode 100644 index 0000000000000000000000000000000000000000..35b58c76d008415724622c26e2ebf4df12c8ae14 --- /dev/null +++ b/.eslintrc @@ -0,0 +1,19 @@ +{ + "rules": { + "indent": [ 2, 4 ], + "quotes": [ 2, "single" ], + "linebreak-style": [ 2, "unix" ], + "semi": [ 2, "always" ], + "no-unused-vars": [ 2, { + "vars": "all", + "args": "none" + } ], + "spaced-comment": [ 2, "always" ] + }, + "env": { + "node": true, + "mocha": true, + "browser": true + }, + "extends": "eslint:recommended" +} \ No newline at end of file diff --git a/package.json b/package.json index 75b60c966bbaf302a02a013ad8d030367c9ce55b..4a61414355b9c51ed153df736c95632c855bf07f 100644 --- a/package.json +++ b/package.json @@ -1,74 +1,75 @@ { - "name": "gitbook-plugin-theme-default", - "description": "Default theme for GitBook > 3.0.0", - "main": "./index.js", - "version": "1.0.0-pre.5", - "engines": { - "gitbook": ">=3.0.0" - }, - "dependencies": {}, - "devDependencies": { - "less": "2.6.0", - "less-plugin-clean-css": "1.5.1", - "browserify": "13.0.0", - "uglify-js": "2.6.1", - "lodash": "3.10.1", - "jquery": "2.1.4", - "mousetrap": "1.5.3", - "font-awesome": "4.5.0", - "gitbook-markdown-css": "1.0.1", - "gitbook-logos": "git+https://github.com/GitbookIO/logos.git#2.0.2" - }, - "scripts": { - "prepublish": "./src/build.sh" - }, - "repository": { - "type": "git", - "url": "https://github.com/GitbookIO/theme-default.git" - }, - "author": "FriendCode Inc. ", - "license": "Apache-2.0", - "bugs": { - "url": "https://github.com/GitbookIO/theme-default/issues" - }, - "contributors": [ - { - "name": "Samy Pessé", - "email": "samy@gitbook.com" - } - ], - "gitbook": { + "name": "gitbook-plugin-theme-default", + "description": "Default theme for GitBook > 3.0.0", + "main": "./index.js", + "version": "1.0.0-pre.5", + "engines": { + "gitbook": ">=3.0.0" + }, + "dependencies": {}, + "devDependencies": { + "browserify": "13.0.0", + "eslint": "2.7.0", + "font-awesome": "4.5.0", + "gitbook-logos": "git+https://github.com/GitbookIO/logos.git#2.0.2", + "gitbook-markdown-css": "1.0.1", + "jquery": "2.1.4", + "less": "2.6.0", + "less-plugin-clean-css": "1.5.1", + "lodash": "3.10.1", + "mousetrap": "1.5.3", + "uglify-js": "2.6.1" + }, + "scripts": { + "prepublish": "./src/build.sh" + }, + "repository": { + "type": "git", + "url": "https://github.com/GitbookIO/theme-default.git" + }, + "author": "FriendCode Inc. ", + "license": "Apache-2.0", + "bugs": { + "url": "https://github.com/GitbookIO/theme-default/issues" + }, + "contributors": [ + { + "name": "Samy Pessé", + "email": "samy@gitbook.com" + } + ], + "gitbook": { + "properties": { + "styles": { + "type": "object", + "title": "Custom Stylesheets", "properties": { - "styles": { - "type": "object", - "title": "Custom Stylesheets", - "properties": { - "website": { - "title": "Stylesheet for website output", - "default": "styles/website.css" - }, - "pdf": { - "title": "Stylesheet for PDF output", - "default": "styles/pdf.css" - }, - "epub": { - "title": "Stylesheet for ePub output", - "default": "styles/epub.css" - }, - "mobi": { - "title": "Stylesheet for Mobi output", - "default": "styles/mobi.css" - }, - "ebook": { - "title": "Stylesheet for ebook outputs (PDF, ePub, Mobi)", - "default": "styles/ebook.css" - }, - "print": { - "title": "Stylesheet to replace default ebook css", - "default": "styles/print.css" - } - } - } + "website": { + "title": "Stylesheet for website output", + "default": "styles/website.css" + }, + "pdf": { + "title": "Stylesheet for PDF output", + "default": "styles/pdf.css" + }, + "epub": { + "title": "Stylesheet for ePub output", + "default": "styles/epub.css" + }, + "mobi": { + "title": "Stylesheet for Mobi output", + "default": "styles/mobi.css" + }, + "ebook": { + "title": "Stylesheet for ebook outputs (PDF, ePub, Mobi)", + "default": "styles/ebook.css" + }, + "print": { + "title": "Stylesheet to replace default ebook css", + "default": "styles/print.css" + } } + } } -} \ No newline at end of file + } +}