├── .eslintignore ├── .gitattributes ├── .yo-rc.json ├── .gitignore ├── generators └── app │ ├── templates │ ├── _gitignore │ ├── _babelrc │ ├── _styles.css │ ├── _editorconfig │ ├── _main.js │ ├── _index.html │ ├── _webpack.config.js │ ├── _app.vue │ ├── _package.json │ ├── _webpack.production.js │ └── _eslintrc │ └── index.js ├── .travis.yml ├── .editorconfig ├── README.md ├── test └── test-app.js ├── package.json ├── LICENSE.md └── .eslintrc /.eslintignore: -------------------------------------------------------------------------------- 1 | app/templates/*.js -------------------------------------------------------------------------------- /.gitattributes: -------------------------------------------------------------------------------- 1 | * text=auto 2 | -------------------------------------------------------------------------------- /.yo-rc.json: -------------------------------------------------------------------------------- 1 | { 2 | "generator-generator": {} 3 | } -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- 1 | node_modules/ 2 | npm-debug.log 3 | *.sublime-project 4 | *.sublime-workspace -------------------------------------------------------------------------------- /generators/app/templates/_gitignore: -------------------------------------------------------------------------------- 1 | .DS_Store 2 | node_modules 3 | .yo-rc.json 4 | *.log -------------------------------------------------------------------------------- /.travis.yml: -------------------------------------------------------------------------------- 1 | sudo: false 2 | language: node_js 3 | node_js: 4 | - 'iojs' 5 | - '0.12' 6 | - '0.10' 7 | -------------------------------------------------------------------------------- /generators/app/templates/_babelrc: -------------------------------------------------------------------------------- 1 | { 2 | presets: ['es2015'], 3 | plugins: ['transform-runtime'] 4 | } -------------------------------------------------------------------------------- /.editorconfig: -------------------------------------------------------------------------------- 1 | # http://editorconfig.org 2 | root = true 3 | 4 | [*] 5 | indent_style = space 6 | indent_size = 2 7 | charset = utf-8 8 | trim_trailing_whitespace = true 9 | insert_final_newline = true 10 | 11 | [*.md] 12 | trim_trailing_whitespace = false 13 | -------------------------------------------------------------------------------- /generators/app/templates/_styles.css: -------------------------------------------------------------------------------- 1 | .browsehappy { 2 | margin: 0.2em 0; 3 | background: #ccc; 4 | color: #000; 5 | padding: 0.2em 0; 6 | } 7 | 8 | /* Space out content a bit */ 9 | body { 10 | padding-top: 20px; 11 | padding-bottom: 20px; 12 | } 13 | -------------------------------------------------------------------------------- /generators/app/templates/_editorconfig: -------------------------------------------------------------------------------- 1 | # http://editorconfig.org 2 | root = true 3 | 4 | [*] 5 | indent_style = space 6 | indent_size = 2 7 | charset = utf-8 8 | trim_trailing_whitespace = true 9 | insert_final_newline = true 10 | 11 | [*.md] 12 | trim_trailing_whitespace = false 13 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | **This repo is no longer maintained, please use vue-cli instead** 2 | 3 | A simple Vue + Webpack yeoman generator 4 | 5 | **NOTE:** It only supports Vue 1.0.x now 6 | 7 | ## Installation && Usage 8 | ``` 9 | $ npm install -g generator-vuejs 10 | $ mkdir myproject && cd myproject 11 | $ yo vuejs 12 | ``` 13 | 14 | ## Command 15 | ``` 16 | npm run dev 17 | npm run build 18 | ``` 19 | ## License 20 | 21 | MIT 22 | -------------------------------------------------------------------------------- /generators/app/templates/_main.js: -------------------------------------------------------------------------------- 1 | import Vue from 'vue' 2 | import app from './app.vue'<% if (includeRouter) { %> 3 | import VueRouter from 'vue-router'<% } %> 4 | <% if (includeVuestrap) { %> 5 | import 'bootstrap/dist/css/bootstrap.css'<% } %> 6 | import './styles.css' 7 | 8 | Vue.config.debug = process.env.NODE_ENV !== 'production' 9 | <% if (includeRouter) {%> 10 | Vue.use(VueRouter) 11 | 12 | const router = new VueRouter() 13 | const App = Vue.extend(app) 14 | 15 | router.start(App, 'body')<% } else { %> 16 | const App = new Vue({ 17 | el: 'body', 18 | components: { 19 | app 20 | } 21 | })<% } %> 22 | -------------------------------------------------------------------------------- /generators/app/templates/_index.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | <%= appname %> 6 | 7 | 8 | 9 | 10 | 13 | 14 | 15 | 16 | 17 | -------------------------------------------------------------------------------- /test/test-app.js: -------------------------------------------------------------------------------- 1 | 'use strict'; 2 | 3 | var path = require('path'); 4 | var assert = require('yeoman-generator').assert; 5 | var helpers = require('yeoman-generator').test; 6 | var os = require('os'); 7 | 8 | describe('generator vue:app', function () { 9 | before(function (done) { 10 | helpers.run(path.join(__dirname, '../generators/app')) 11 | .withOptions({ skipInstall: true }) 12 | .withPrompts({ someOption: true }) 13 | .on('end', done); 14 | }); 15 | 16 | it('creates files', function () { 17 | assert.file([ 18 | 'package.json', 19 | '.editorconfig', 20 | '.eslintrc', 21 | 'src/app.vue', 22 | 'src/main.js', 23 | ]); 24 | }); 25 | }); 26 | -------------------------------------------------------------------------------- /package.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "generator-vuejs", 3 | "version": "1.1.0", 4 | "description": "A simple Vue + Webpack yeoman generator", 5 | "license": "MIT", 6 | "repository": "birdeggegg/generator-vuejs", 7 | "author": { 8 | "name": "Junjie Xie", 9 | "email": "birdeggegg@gmail.com", 10 | "url": "https://github.com/BirdEggegg" 11 | }, 12 | "scripts": { 13 | "test": "mocha" 14 | }, 15 | "files": [ 16 | "generators" 17 | ], 18 | "keywords": [ 19 | "yeoman-generator", 20 | "generator-vuejs", 21 | "vue", 22 | "vuejs", 23 | "babel", 24 | "es6", 25 | "vue-router", 26 | "webpack" 27 | ], 28 | "dependencies": { 29 | "chalk": "^1.0.0", 30 | "mkdirp": "^0.5.1", 31 | "yeoman-generator": "^0.21.1", 32 | "yosay": "^1.0.2" 33 | }, 34 | "devDependencies": { 35 | "mocha": "*" 36 | } 37 | } 38 | -------------------------------------------------------------------------------- /generators/app/templates/_webpack.config.js: -------------------------------------------------------------------------------- 1 | module.exports = { 2 | entry: { 3 | app: './src/main.js' 4 | }, 5 | output: { 6 | path: './build', 7 | publicPath: '/build/', 8 | filename: 'bundle.js' 9 | }, 10 | module: { 11 | loaders: [ 12 | { test: /\.vue$/, loader: 'vue' }, 13 | { test: /\.js$/, exclude: /node_modules/, loader: 'babel'}, 14 | { test: /\.(png|jpg)$/, loader: 'file' }, 15 | { test: /\.(png|jpg)$/, loader: 'url?limit=10000'}, 16 | { test: /\.(woff|woff2)(\?v=\d+\.\d+\.\d+)?$/, loader: 'url?limit=10000&mimetype=application/font-woff' }, 17 | { test: /\.ttf(\?v=\d+\.\d+\.\d+)?$/, loader: 'url?limit=10000&mimetype=application/octet-stream' }, 18 | { test: /\.eot(\?v=\d+\.\d+\.\d+)?$/, loader: 'file' }, 19 | { test: /\.svg(\?v=\d+\.\d+\.\d+)?$/, loader: 'url?limit=10000&mimetype=image/svg+xml' }, 20 | { test: /\.css$/, loader: 'style-loader!css-loader' } 21 | ] 22 | }, 23 | devtool: '#source-map' 24 | } 25 | -------------------------------------------------------------------------------- /LICENSE.md: -------------------------------------------------------------------------------- 1 | The MIT License (MIT) 2 | 3 | Copyright (c) 2015 The `generator-vuejs` authors and contributers 4 | 5 | Permission is hereby granted, free of charge, to any person obtaining a copy 6 | of this software and associated documentation files (the "Software"), to deal 7 | in the Software without restriction, including without limitation the rights 8 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 9 | copies of the Software, and to permit persons to whom the Software is 10 | furnished to do so, subject to the following conditions: 11 | 12 | The above copyright notice and this permission notice shall be included in all 13 | copies or substantial portions of the Software. 14 | 15 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 16 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 17 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 18 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 19 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 20 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE 21 | SOFTWARE. 22 | -------------------------------------------------------------------------------- /generators/app/templates/_app.vue: -------------------------------------------------------------------------------- 1 | 22 | 23 | 37 | -------------------------------------------------------------------------------- /generators/app/templates/_package.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "<%= projectName %>", 3 | "version": "0.0.0", 4 | "description": "", 5 | "main": "index.js", 6 | "scripts": { 7 | "dev": "webpack-dev-server --inline --hot --quiet", 8 | "build": "rm -rf build/* && webpack --progress --hide-modules --config webpack.production.js" 9 | }, 10 | "dependencies": {<% if (includeRouter) { %> 11 | "vue-router": "^0.7.6",<% } %><% if (includeVuestrap) { %> 12 | "vue-strap": "^1.0.2",<% } %> 13 | "vue": "^1.0.8" 14 | }, 15 | "devDependencies": { 16 | "vue-loader": "^7.0.3", 17 | "vue-hot-reload-api": "^1.2.0", 18 | "vue-html-loader": "^1.0.0", 19 | "style-loader": "^0.13.0", 20 | "css-loader": "^0.21.0", 21 | "babel-runtime": "^5.8.0", 22 | "babel-loader": "^6.1.0", 23 | "babel-core": "^6.1.21", 24 | "babel-preset-es2015": "^6.1.18", 25 | "babel-plugin-transform-runtime": "^6.1.18", 26 | "file-loader": "^0.8.5", 27 | "url-loader": "^0.5.7", 28 | "webpack": "^1.12.2", 29 | "extract-text-webpack-plugin": "^0.9.1", 30 | "webpack-dev-server": "^1.12.1" 31 | }, 32 | "peerDependencies": {<% if (includeVuestrap) { %> 33 | "bootstrap": "^3.3.5"<% } %> 34 | } 35 | } 36 | -------------------------------------------------------------------------------- /generators/app/templates/_webpack.production.js: -------------------------------------------------------------------------------- 1 | var webpack = require('webpack') 2 | var ExtractTextPlugin = require('extract-text-webpack-plugin') 3 | 4 | module.exports = { 5 | entry: { 6 | app: './src/main.js' 7 | }, 8 | output: { 9 | path: './build', 10 | publicPath: '/build/', 11 | filename: 'bundle.js' 12 | }, 13 | module: { 14 | loaders: [ 15 | { test: /\.vue$/, loader: 'vue' }, 16 | { test: /\.js$/, exclude: /node_modules/, loader: 'babel'}, 17 | { test: /\.(png|jpg)$/, loader: 'file' }, 18 | { test: /\.(png|jpg)$/, loader: 'url?limit=10000'}, 19 | { test: /\.(woff|woff2)(\?v=\d+\.\d+\.\d+)?$/, loader: 'url?limit=10000&mimetype=application/font-woff' }, 20 | { test: /\.ttf(\?v=\d+\.\d+\.\d+)?$/, loader: 'url?limit=10000&mimetype=application/octet-stream' }, 21 | { test: /\.eot(\?v=\d+\.\d+\.\d+)?$/, loader: 'file' }, 22 | { test: /\.svg(\?v=\d+\.\d+\.\d+)?$/, loader: 'url?limit=10000&mimetype=image/svg+xml' }, 23 | { test: /\.css$/, loader: 'style-loader!css-loader' } 24 | ] 25 | }, 26 | plugins: [ 27 | new webpack.DefinePlugin({ 28 | 'process.env': { 29 | NODE_ENV: '"production"' 30 | } 31 | }), 32 | new webpack.optimize.UglifyJsPlugin({ 33 | compress: { 34 | warnings: false 35 | } 36 | }), 37 | new ExtractTextPlugin('[name].min.css', { 38 | allChunks: true 39 | }) 40 | ], 41 | vue: { 42 | loaders: { 43 | css: ExtractTextPlugin.extract('css') 44 | } 45 | } 46 | } 47 | -------------------------------------------------------------------------------- /generators/app/index.js: -------------------------------------------------------------------------------- 1 | 'use strict' 2 | var yeoman = require('yeoman-generator') 3 | var chalk = require('chalk') 4 | var yosay = require('yosay') 5 | 6 | module.exports = yeoman.generators.Base.extend({ 7 | initializing: function () { 8 | this.pkg = require('../../package.json') 9 | }, 10 | 11 | prompting: function () { 12 | var done = this.async() 13 | 14 | // Have Yeoman greet the user. 15 | this.log(yosay( 16 | 'Welcome to the cat\'s meow ' + chalk.red('vuejs') + ' generator!' 17 | )) 18 | 19 | var prompts = [{ 20 | type: 'input', 21 | name: 'project', 22 | message: 'What is the project\'s name?', 23 | default: this.appname 24 | }, { 25 | type: 'checkbox', 26 | name: 'features', 27 | message: 'What more would you like?', 28 | choices: [{ 29 | name: 'vue-router', 30 | value: 'includeRouter', 31 | checked: false 32 | }, { 33 | name: 'vue-strap', 34 | value: 'includeVuestrap', 35 | checked: false 36 | }] 37 | }] 38 | 39 | this.prompt(prompts, function (answers) { 40 | this.features = answers.features || [] 41 | this.projectName = answers.project 42 | 43 | this._configFeatures([ 44 | 'includeRouter', 45 | 'includeVuestrap' 46 | ]) 47 | 48 | done() 49 | }.bind(this)) 50 | }, 51 | 52 | _hasFeature: function (feat) { 53 | return this.features.indexOf(feat) !== -1 54 | }, 55 | 56 | _configFeature: function (feat) { 57 | this[feat] = this._hasFeature(feat) 58 | this.config.set(feat, this[feat]) 59 | }, 60 | 61 | _configFeatures: function (possibleFeatures) { 62 | possibleFeatures.forEach(this._configFeature.bind(this)) 63 | }, 64 | 65 | writing: function () { 66 | this._copyTpl('_package.json', 'package.json') 67 | this._copyTpl('_index.html', 'index.html') 68 | this._copyTpl('_main.js', './src/main.js') 69 | this._copyTpl('_app.vue', './src/app.vue') 70 | this._copyTpl('_styles.css', './src/styles.css') 71 | this._copyTpl('_webpack.config.js', 'webpack.config.js') 72 | this._copyTpl('_webpack.production.js', 'webpack.production.js') 73 | this._copy('_gitignore', '.gitignore') 74 | this._copy('_babelrc', '.babelrc') 75 | this._copy('_eslintrc', '.eslintrc') 76 | this._copy('_editorconfig', '.editorconfig') 77 | }, 78 | 79 | _copy: function (from, to) { 80 | this.fs.copy(this.templatePath(from), this.destinationPath(to)) 81 | }, 82 | 83 | _copyTpl: function (from, to) { 84 | this.fs.copyTpl(this.templatePath(from), this.destinationPath(to), this) 85 | }, 86 | 87 | install: function () { 88 | this.installDependencies({bower: false}) 89 | } 90 | }) 91 | -------------------------------------------------------------------------------- /.eslintrc: -------------------------------------------------------------------------------- 1 | { 2 | "env": { 3 | "browser": true, 4 | "node": true, 5 | "es6": true, 6 | }, 7 | 8 | "ecmaFeatures": { 9 | "modules": 1 10 | }, 11 | 12 | "rules": { 13 | "accessor-pairs": 2, 14 | "array-bracket-spacing": 0, 15 | "block-scoped-var": 0, 16 | "brace-style": [2, "1tbs", { "allowSingleLine": true }], 17 | "camelcase": 0, 18 | "comma-dangle": [2, "never"], 19 | "comma-spacing": [2, { "before": false, "after": true }], 20 | "comma-style": [2, "last"], 21 | "complexity": 0, 22 | "computed-property-spacing": 0, 23 | "consistent-return": 0, 24 | "consistent-this": 0, 25 | "constructor-super": 2, 26 | "curly": [2, "multi-line"], 27 | "default-case": 0, 28 | "dot-location": [2, "property"], 29 | "dot-notation": 0, 30 | "eol-last": 2, 31 | "eqeqeq": [2, "allow-null"], 32 | "func-names": 0, 33 | "func-style": 0, 34 | "generator-star": 0, 35 | "generator-star-spacing": [2, { "before": true, "after": true }], 36 | "global-strict": 0, 37 | "guard-for-in": 0, 38 | "handle-callback-err": [2, "^(err|error)$" ], 39 | "indent": [2, 2], 40 | "key-spacing": [2, { "beforeColon": false, "afterColon": true }], 41 | "linebreak-style": 0, 42 | "lines-around-comment": 0, 43 | "max-depth": 0, 44 | "max-len": 0, 45 | "max-nested-callbacks": 0, 46 | "max-params": 0, 47 | "max-statements": 0, 48 | "new-cap": [2, { "newIsCap": true, "capIsNew": false }], 49 | "new-parens": 2, 50 | "newline-after-var": 0, 51 | "no-alert": 0, 52 | "no-array-constructor": 2, 53 | "no-bitwise": 0, 54 | "no-caller": 2, 55 | "no-catch-shadow": 0, 56 | "no-comma-dangle": 0, 57 | "no-cond-assign": 2, 58 | "no-console": 0, 59 | "no-constant-condition": 0, 60 | "no-continue": 0, 61 | "no-control-regex": 2, 62 | "no-debugger": 2, 63 | "no-delete-var": 2, 64 | "no-div-regex": 0, 65 | "no-dupe-args": 2, 66 | "no-dupe-keys": 2, 67 | "no-duplicate-case": 2, 68 | "no-else-return": 0, 69 | "no-empty": 0, 70 | "no-empty-character-class": 2, 71 | "no-empty-class": 0, 72 | "no-empty-label": 2, 73 | "no-eq-null": 0, 74 | "no-eval": 2, 75 | "no-ex-assign": 2, 76 | "no-extend-native": 2, 77 | "no-extra-bind": 2, 78 | "no-extra-boolean-cast": 2, 79 | "no-extra-parens": 0, 80 | "no-extra-semi": 0, 81 | "no-extra-strict": 0, 82 | "no-fallthrough": 2, 83 | "no-floating-decimal": 2, 84 | "no-func-assign": 2, 85 | "no-implied-eval": 2, 86 | "no-inline-comments": 0, 87 | "no-inner-declarations": [2, "functions"], 88 | "no-invalid-regexp": 2, 89 | "no-irregular-whitespace": 2, 90 | "no-iterator": 2, 91 | "no-label-var": 2, 92 | "no-labels": 2, 93 | "no-lone-blocks": 2, 94 | "no-lonely-if": 0, 95 | "no-loop-func": 0, 96 | "no-mixed-requires": 0, 97 | "no-mixed-spaces-and-tabs": 2, 98 | "no-multi-spaces": 2, 99 | "no-multi-str": 2, 100 | "no-multiple-empty-lines": [2, { "max": 1 }], 101 | "no-native-reassign": 2, 102 | "no-negated-in-lhs": 2, 103 | "no-nested-ternary": 0, 104 | "no-new": 2, 105 | "no-new-func": 0, 106 | "no-new-object": 2, 107 | "no-new-require": 2, 108 | "no-new-wrappers": 2, 109 | "no-obj-calls": 2, 110 | "no-octal": 2, 111 | "no-octal-escape": 2, 112 | "no-param-reassign": 0, 113 | "no-path-concat": 0, 114 | "no-plusplus": 0, 115 | "no-process-env": 0, 116 | "no-process-exit": 0, 117 | "no-proto": 0, 118 | "no-redeclare": 2, 119 | "no-regex-spaces": 2, 120 | "no-reserved-keys": 0, 121 | "no-restricted-modules": 0, 122 | "no-return-assign": 2, 123 | "no-script-url": 0, 124 | "no-self-compare": 2, 125 | "no-sequences": 2, 126 | "no-shadow": 0, 127 | "no-shadow-restricted-names": 2, 128 | "no-space-before-semi": 0, 129 | "no-spaced-func": 2, 130 | "no-sparse-arrays": 2, 131 | "no-sync": 0, 132 | "no-ternary": 0, 133 | "no-this-before-super": 2, 134 | "no-throw-literal": 2, 135 | "no-trailing-spaces": 2, 136 | "no-undef": 2, 137 | "no-undef-init": 2, 138 | "no-undefined": 0, 139 | "no-underscore-dangle": 0, 140 | "no-unexpected-multiline": 2, 141 | "no-unneeded-ternary": 2, 142 | "no-unreachable": 2, 143 | "no-unused-expressions": 0, 144 | "no-unused-vars": [2, { "vars": "all", "args": "none" }], 145 | "no-use-before-define": 0, 146 | "no-var": 0, 147 | "no-void": 0, 148 | "no-warning-comments": 0, 149 | "no-with": 2, 150 | "object-curly-spacing": 0, 151 | "object-shorthand": 0, 152 | "one-var": [2, { "initialized": "never" }], 153 | "operator-assignment": 0, 154 | "operator-linebreak": [2, "after"], 155 | "padded-blocks": 0, 156 | "prefer-const": 0, 157 | "quote-props": 0, 158 | "quotes": [2, "single", "avoid-escape"], 159 | "radix": 2, 160 | "semi": [2, "never"], 161 | "semi-spacing": 0, 162 | "sort-vars": 0, 163 | "space-after-function-name": 0, 164 | "space-after-keywords": [2, "always"], 165 | "space-before-blocks": [2, "always"], 166 | "space-before-function-paren": [2, "always"], 167 | "space-before-function-parentheses": 0, 168 | "space-in-brackets": 0, 169 | "space-in-parens": [2, "never"], 170 | "space-infix-ops": 2, 171 | "space-return-throw-case": 2, 172 | "space-unary-ops": [2, { "words": true, "nonwords": false }], 173 | "spaced-comment": [2, "always", { "markers": ["global", "globals", "eslint", "eslint-disable", "*package", "!"] }], 174 | "spaced-line-comment": 0, 175 | "strict": 0, 176 | "use-isnan": 2, 177 | "valid-jsdoc": 0, 178 | "valid-typeof": 2, 179 | "vars-on-top": 0, 180 | "wrap-iife": [2, "any"], 181 | "wrap-regex": 0, 182 | "yoda": [2, "never"] 183 | } 184 | } -------------------------------------------------------------------------------- /generators/app/templates/_eslintrc: -------------------------------------------------------------------------------- 1 | { 2 | "env": { 3 | "browser": true, 4 | "node": true, 5 | "es6": true, 6 | }, 7 | 8 | "ecmaFeatures": { 9 | "modules": 1 10 | }, 11 | 12 | "rules": { 13 | "accessor-pairs": 2, 14 | "array-bracket-spacing": 0, 15 | "block-scoped-var": 0, 16 | "brace-style": [2, "1tbs", { "allowSingleLine": true }], 17 | "camelcase": 0, 18 | "comma-dangle": [2, "never"], 19 | "comma-spacing": [2, { "before": false, "after": true }], 20 | "comma-style": [2, "last"], 21 | "complexity": 0, 22 | "computed-property-spacing": 0, 23 | "consistent-return": 0, 24 | "consistent-this": 0, 25 | "constructor-super": 2, 26 | "curly": [2, "multi-line"], 27 | "default-case": 0, 28 | "dot-location": [2, "property"], 29 | "dot-notation": 0, 30 | "eol-last": 2, 31 | "eqeqeq": [2, "allow-null"], 32 | "func-names": 0, 33 | "func-style": 0, 34 | "generator-star": 0, 35 | "generator-star-spacing": [2, { "before": true, "after": true }], 36 | "global-strict": 0, 37 | "guard-for-in": 0, 38 | "handle-callback-err": [2, "^(err|error)$" ], 39 | "indent": [2, 2], 40 | "key-spacing": [2, { "beforeColon": false, "afterColon": true }], 41 | "linebreak-style": 0, 42 | "lines-around-comment": 0, 43 | "max-depth": 0, 44 | "max-len": 0, 45 | "max-nested-callbacks": 0, 46 | "max-params": 0, 47 | "max-statements": 0, 48 | "new-cap": [2, { "newIsCap": true, "capIsNew": false }], 49 | "new-parens": 2, 50 | "newline-after-var": 0, 51 | "no-alert": 0, 52 | "no-array-constructor": 2, 53 | "no-bitwise": 0, 54 | "no-caller": 2, 55 | "no-catch-shadow": 0, 56 | "no-comma-dangle": 0, 57 | "no-cond-assign": 2, 58 | "no-console": 0, 59 | "no-constant-condition": 0, 60 | "no-continue": 0, 61 | "no-control-regex": 2, 62 | "no-debugger": 2, 63 | "no-delete-var": 2, 64 | "no-div-regex": 0, 65 | "no-dupe-args": 2, 66 | "no-dupe-keys": 2, 67 | "no-duplicate-case": 2, 68 | "no-else-return": 0, 69 | "no-empty": 0, 70 | "no-empty-character-class": 2, 71 | "no-empty-class": 0, 72 | "no-empty-label": 2, 73 | "no-eq-null": 0, 74 | "no-eval": 2, 75 | "no-ex-assign": 2, 76 | "no-extend-native": 2, 77 | "no-extra-bind": 2, 78 | "no-extra-boolean-cast": 2, 79 | "no-extra-parens": 0, 80 | "no-extra-semi": 0, 81 | "no-extra-strict": 0, 82 | "no-fallthrough": 2, 83 | "no-floating-decimal": 2, 84 | "no-func-assign": 2, 85 | "no-implied-eval": 2, 86 | "no-inline-comments": 0, 87 | "no-inner-declarations": [2, "functions"], 88 | "no-invalid-regexp": 2, 89 | "no-irregular-whitespace": 2, 90 | "no-iterator": 2, 91 | "no-label-var": 2, 92 | "no-labels": 2, 93 | "no-lone-blocks": 2, 94 | "no-lonely-if": 0, 95 | "no-loop-func": 0, 96 | "no-mixed-requires": 0, 97 | "no-mixed-spaces-and-tabs": 2, 98 | "no-multi-spaces": 2, 99 | "no-multi-str": 2, 100 | "no-multiple-empty-lines": [2, { "max": 1 }], 101 | "no-native-reassign": 2, 102 | "no-negated-in-lhs": 2, 103 | "no-nested-ternary": 0, 104 | "no-new": 2, 105 | "no-new-func": 0, 106 | "no-new-object": 2, 107 | "no-new-require": 2, 108 | "no-new-wrappers": 2, 109 | "no-obj-calls": 2, 110 | "no-octal": 2, 111 | "no-octal-escape": 2, 112 | "no-param-reassign": 0, 113 | "no-path-concat": 0, 114 | "no-plusplus": 0, 115 | "no-process-env": 0, 116 | "no-process-exit": 0, 117 | "no-proto": 0, 118 | "no-redeclare": 2, 119 | "no-regex-spaces": 2, 120 | "no-reserved-keys": 0, 121 | "no-restricted-modules": 0, 122 | "no-return-assign": 2, 123 | "no-script-url": 0, 124 | "no-self-compare": 2, 125 | "no-sequences": 2, 126 | "no-shadow": 0, 127 | "no-shadow-restricted-names": 2, 128 | "no-space-before-semi": 0, 129 | "no-spaced-func": 2, 130 | "no-sparse-arrays": 2, 131 | "no-sync": 0, 132 | "no-ternary": 0, 133 | "no-this-before-super": 2, 134 | "no-throw-literal": 2, 135 | "no-trailing-spaces": 2, 136 | "no-undef": 2, 137 | "no-undef-init": 2, 138 | "no-undefined": 0, 139 | "no-underscore-dangle": 0, 140 | "no-unexpected-multiline": 2, 141 | "no-unneeded-ternary": 2, 142 | "no-unreachable": 2, 143 | "no-unused-expressions": 0, 144 | "no-unused-vars": [2, { "vars": "all", "args": "none" }], 145 | "no-use-before-define": 0, 146 | "no-var": 0, 147 | "no-void": 0, 148 | "no-warning-comments": 0, 149 | "no-with": 2, 150 | "object-curly-spacing": 0, 151 | "object-shorthand": 0, 152 | "one-var": [2, { "initialized": "never" }], 153 | "operator-assignment": 0, 154 | "operator-linebreak": [2, "after"], 155 | "padded-blocks": 0, 156 | "prefer-const": 0, 157 | "quote-props": 0, 158 | "quotes": [2, "single", "avoid-escape"], 159 | "radix": 2, 160 | "semi": [2, "never"], 161 | "semi-spacing": 0, 162 | "sort-vars": 0, 163 | "space-after-function-name": 0, 164 | "space-after-keywords": [2, "always"], 165 | "space-before-blocks": [2, "always"], 166 | "space-before-function-paren": [2, "always"], 167 | "space-before-function-parentheses": 0, 168 | "space-in-brackets": 0, 169 | "space-in-parens": [2, "never"], 170 | "space-infix-ops": 2, 171 | "space-return-throw-case": 2, 172 | "space-unary-ops": [2, { "words": true, "nonwords": false }], 173 | "spaced-comment": [2, "always", { "markers": ["global", "globals", "eslint", "eslint-disable", "*package", "!"] }], 174 | "spaced-line-comment": 0, 175 | "strict": 0, 176 | "use-isnan": 2, 177 | "valid-jsdoc": 0, 178 | "valid-typeof": 2, 179 | "vars-on-top": 0, 180 | "wrap-iife": [2, "any"], 181 | "wrap-regex": 0, 182 | "yoda": [2, "never"] 183 | } 184 | } --------------------------------------------------------------------------------