uber / standard

JavaScript Standard Style — One Style to Rule Them All
MIT License
70 stars 8 forks source link

quick es6 rules question #50

Closed CodisRedding closed 8 years ago

CodisRedding commented 8 years ago

es6 rules are complaining about const in every file. Any ideas why?

> NODE_ENV=development; standard --es6 --verbose

OPTIONS
 { verbose: true,
  'line-length': 80,
  es6: true,
  cwd: '/Users/rocky.assad/code/medication-service',
  ignore:
   [ 'coverage/**',
     'coverage/**/**',
     'node_modules/**',
     'node_modules/**/**',
     '**/*.min.js',
     '**/*.min.js/**',
     '**/bundle.js',
     '**/bundle.js/**',
     'node_modules',
     'node_modules/**',
     '.idea',
     '.idea/**',
     'development.json',
     'development.json/**',
     'codedeploy',
     'codedeploy/**',
     'appspec.yml',
     'appspec.yml/**',
     'newrelic.js',
     'newrelic.js/**',
     'dist',
     'dist/**',
     '*.log',
     '*.log/**',
     '.DS_Store*',
     '.DS_Store*/**',
     'Thumbs.db',
     'Thumbs.db/**',
     'coverage',
     'coverage/**' ],
  indent: 4 }

EXTENDING
/Users/rocky.assad/code/medication-service/node_modules/premise-standard-nodejs/rc/.eslintrc.json
/Users/rocky.assad/code/medication-service/node_modules/premise-standard-nodejs/rc/.eslintrc.es6.json

 { baseConfig:
   { ecmaFeatures:
      { arrowFunctions: true,
        binaryLiterals: true,
        blockBindings: true,
        classes: true,
        defaultParams: true,
        destructuring: true,
        forOf: true,
        generators: true,
        modules: true,
        objectLiteralComputedProperties: true,
        objectLiteralDuplicateProperties: true,
        objectLiteralShorthandMethods: true,
        objectLiteralShorthandProperties: true,
        octalLiterals: true,
        regexUFlag: true,
        regexYFlag: true,
        restParams: true,
        spread: true,
        superInFunctions: true,
        templateStrings: true,
        unicodeCodePointEscapes: true },
     parser: 'espree',
     env:
      { browser: false,
        node: false,
        amd: false,
        mocha: false,
        jasmine: false,
        es6: false },
     globals:
      { __dirname: false,
        __filename: false,
        require: false,
        module: false },
     rules:
      { 'no-alert': 2,
        'no-array-constructor': 2,
        'no-bitwise': 0,
        'no-caller': 2,
        'no-catch-shadow': 2,
        'no-cond-assign': 2,
        'no-console': 2,
        'no-constant-condition': 2,
        'no-continue': 2,
        'no-control-regex': 2,
        'no-debugger': 2,
        'no-delete-var': 2,
        'no-div-regex': 2,
        'no-dupe-keys': 2,
        'no-dupe-args': 2,
        'no-duplicate-case': 2,
        'no-else-return': 2,
        'no-empty': 2,
        'no-empty-character-class': 2,
        'no-empty-label': 2,
        'no-eq-null': 2,
        'no-eval': 2,
        'no-ex-assign': 2,
        'no-extend-native': 2,
        'no-extra-bind': 2,
        'no-extra-boolean-cast': 2,
        'no-extra-parens': [Object],
        'no-extra-semi': 2,
        'no-fallthrough': 2,
        'no-floating-decimal': 2,
        'no-func-assign': 2,
        'no-implicit-coercion': 2,
        'no-implied-eval': 2,
        'no-inline-comments': 2,
        'no-inner-declarations': [Object],
        'no-invalid-regexp': 2,
        'no-invalid-this': 2,
        'no-irregular-whitespace': 2,
        'no-iterator': 2,
        'no-label-var': 2,
        'no-labels': 2,
        'no-lone-blocks': 2,
        'no-lonely-if': 2,
        'no-loop-func': 2,
        'no-mixed-requires': [Object],
        'no-mixed-spaces-and-tabs': [Object],
        'linebreak-style': [Object],
        'no-multi-spaces': 2,
        'no-multi-str': 2,
        'no-multiple-empty-lines': [Object],
        'no-native-reassign': 2,
        'no-negated-in-lhs': 2,
        'no-nested-ternary': 0,
        'no-new': 2,
        'no-new-func': 2,
        'no-new-object': 2,
        'no-new-require': 2,
        'no-new-wrappers': 2,
        'no-obj-calls': 2,
        'no-octal': 2,
        'no-octal-escape': 2,
        'no-param-reassign': 0,
        'no-path-concat': 2,
        'no-plusplus': 0,
        'no-process-env': 2,
        'no-process-exit': 2,
        'no-proto': 2,
        'no-redeclare': 2,
        'no-regex-spaces': 2,
        'no-reserved-keys': 0,
        'no-restricted-modules': 0,
        'no-return-assign': 2,
        'no-script-url': 2,
        'no-self-compare': 2,
        'no-sequences': 2,
        'no-shadow': 2,
        'no-shadow-restricted-names': 2,
        'no-spaced-func': 2,
        'no-sparse-arrays': 2,
        'no-sync': 0,
        'no-ternary': 0,
        'no-trailing-spaces': 2,
        'no-throw-literal': 2,
        'no-try-catch': 2,
        'no-undef': 2,
        'no-undef-init': 2,
        'no-undefined': 0,
        'no-unexpected-multiline': 2,
        'no-underscore-dangle': 0,
        'no-unneeded-ternary': 2,
        'no-unreachable': 2,
        'no-unused-expressions': 2,
        'no-unused-vars': [Object],
        'no-use-before-define': [Object],
        'no-useless-call': 2,
        'no-void': 0,
        'no-var': 2,
        'prefer-const': 2,
        'no-warning-comments': [Object],
        'no-with': 2,
        'array-bracket-spacing': [Object],
        'accessor-pairs': [Object],
        'block-scoped-var': 2,
        'block-spacing': [Object],
        'brace-style': [Object],
        'callback-return': [Object],
        camelcase: 2,
        'comma-dangle': [Object],
        'comma-spacing': [Object],
        'comma-style': [Object],
        complexity: [Object],
        'computed-property-spacing': [Object],
        'consistent-return': 2,
        'consistent-this': [Object],
        'constructor-super': 2,
        curly: [Object],
        'default-case': 2,
        'dot-location': [Object],
        'dot-notation': [Object],
        'eol-last': 2,
        eqeqeq: 2,
        'func-names': 2,
        'func-style': [Object],
        'generator-star-spacing': [Object],
        'guard-for-in': 2,
        'handle-callback-err': [Object],
        'id-length': 0,
        'id-match': 0,
        indent: [Object],
        'init-declarations': 0,
        'key-spacing': [Object],
        'lines-around-comment': [Object],
        'max-depth': [Object],
        'max-len': [Object],
        'max-nested-callbacks': [Object],
        'max-params': [Object],
        'max-statements': [Object],
        'new-cap': [Object],
        'new-parens': 2,
        'newline-after-var': 0,
        'object-curly-spacing': [Object],
        'object-shorthand': [Object],
        'one-var': [Object],
        'operator-assignment': [Object],
        'operator-linebreak': [Object],
        'padded-blocks': 0,
        'quote-props': [Object],
        quotes: [Object],
        radix: 2,
        semi: 2,
        'semi-spacing': [Object],
        'sort-vars': 2,
        'space-after-keywords': [Object],
        'space-before-blocks': [Object],
        'space-before-function-paren': [Object],
        'space-in-parens': [Object],
        'space-infix-ops': 2,
        'space-return-throw-case': 2,
        'space-unary-ops': [Object],
        'spaced-comment': [Object],
        strict: [Object],
        'use-isnan': 2,
        'valid-jsdoc': [Object],
        'valid-typeof': 2,
        'vars-on-top': 0,
        'wrap-iife': 2,
        'wrap-regex': 2,
        yoda: [Object],
        'no-class-assign': 2,
        'no-const-assign': 2,
        'no-dupe-class-members': 2,
        'no-this-before-super': 2,
        'prefer-arrow-callback': 0,
        'prefer-reflect': 0,
        'prefer-spread': 2,
        'prefer-template': 2,
        'arrow-parens': [Object],
        'arrow-spacing': [Object],
        'require-yield': 2 } },
  useEslintrc: true,
  rulePaths: [ '/Users/rocky.assad/code/medication-service/node_modules/premise-standard-nodejs/rules' ] }
Error: Use Premise Nodejs Standard Style (https://github.com/premisehealth/premise-standard-nodejs)
  /Users/rocky.assad/code/medication-service/gulp.config.js:3:19: Parsing error: Unexpected token ) (null)
  /Users/rocky.assad/code/medication-service/gulpfile.js:3:1: Parsing error: The keyword 'const' is reserved (null)
  /Users/rocky.assad/code/medication-service/server/adapter/persistence/db.js:3:1: Parsing error: The keyword 'const' is reserved (null)
  /Users/rocky.assad/code/medication-service/server/adapter/persistence/dummy-repository.js:3:1: Parsing error: The keyword 'const' is reserved (null)
  /Users/rocky.assad/code/medication-service/server/adapter/persistence/index.js:3:1: Parsing error: The keyword 'const' is reserved (null)
  /Users/rocky.assad/code/medication-service/server/adapter/rest/api.js:3:1: Parsing error: The keyword 'const' is reserved (null)
  /Users/rocky.assad/code/medication-service/server/adapter/rest/dummy-adapter.js:3:1: Parsing error: The keyword 'const' is reserved (null)
  /Users/rocky.assad/code/medication-service/server/adapter/rest/status-adapter.js:3:1: Parsing error: The keyword 'const' is reserved (null)
  /Users/rocky.assad/code/medication-service/server/application/dummy-service.js:3:1: Parsing error: The keyword 'const' is reserved (null)
  /Users/rocky.assad/code/medication-service/server/application/index.js:3:1: Parsing error: The keyword 'const' is reserved (null)
  /Users/rocky.assad/code/medication-service/server/domain/dummy.js:3:1: Parsing error: The keyword 'const' is reserved (null)
  /Users/rocky.assad/code/medication-service/server/domain/index.js:3:1: Parsing error: The keyword 'const' is reserved (null)
  /Users/rocky.assad/code/medication-service/server/infrastructure/index.js:3:1: Parsing error: The keyword 'const' is reserved (null)
  /Users/rocky.assad/code/medication-service/server/infrastructure/logger.js:3:1: Parsing error: The keyword 'const' is reserved (null)
  /Users/rocky.assad/code/medication-service/server/server.js:3:1: Parsing error: The keyword 'const' is reserved (null)
  /Users/rocky.assad/code/medication-service/test/adapter/db.js:3:1: Parsing error: The keyword 'const' is reserved (null)
  /Users/rocky.assad/code/medication-service/test/adapter/dummy-repository.js:3:1: Parsing error: The keyword 'const' is reserved (null)
  /Users/rocky.assad/code/medication-service/test/adapter/index.js:3:1: Parsing error: The keyword 'const' is reserved (null)
  /Users/rocky.assad/code/medication-service/test/application/dummy-service.js:3:1: Parsing error: The keyword 'const' is reserved (null)
  /Users/rocky.assad/code/medication-service/test/application/index.js:3:1: Parsing error: The keyword 'const' is reserved (null)
  /Users/rocky.assad/code/medication-service/test/config/custom-environment-variables.js:3:1: Parsing error: The keyword 'const' is reserved (null)
  /Users/rocky.assad/code/medication-service/test/domain/dummy.js:3:1: Parsing error: The keyword 'const' is reserved (null)
  /Users/rocky.assad/code/medication-service/test/domain/index.js:3:1: Parsing error: The keyword 'const' is reserved (null)
  /Users/rocky.assad/code/medication-service/test/infrastructure/index.js:3:1: Parsing error: The keyword 'const' is reserved (null)
  /Users/rocky.assad/code/medication-service/test/infrastructure/logger.js:3:1: Parsing error: The keyword 'const' is reserved (null)

npm ERR! Darwin 15.3.0
npm ERR! argv "/Users/rocky.assad/.nvm/versions/node/v4.4.0/bin/node" "/Users/rocky.assad/.nvm/versions/node/v4.4.0/bin/npm" "run" "lint"
npm ERR! node v4.4.0
npm ERR! npm  v3.8.1
npm ERR! code ELIFECYCLE
npm ERR! medication-service@0.0.1 lint: `NODE_ENV=development; standard --es6 --verbose`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the medication-service@0.0.1 lint script 'NODE_ENV=development; standard --es6 --verbose'.
npm ERR! Make sure you have the latest version of node.js and npm installed.
npm ERR! If you do, this is most likely a problem with the medication-service package,
npm ERR! not with npm itself.
npm ERR! Tell the author that this fails on your system:
npm ERR!     NODE_ENV=development; standard --es6 --verbose
npm ERR! You can get information on how to open an issue for this project with:
npm ERR!     npm bugs medication-service
npm ERR! Or if that isn't available, you can get their info via:
npm ERR!     npm owner ls medication-service
npm ERR! There is likely additional logging output above.

npm ERR! Please include the following file with any support request:
npm ERR!     /Users/rocky.assad/code/medication-service/npm-debug.log
CodisRedding commented 8 years ago

nevermind this issue, too many broken parts. =/