Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Eslint latest version 2.13.0 error .eslintrc #6482

Closed
samudurand opened this issue Jun 20, 2016 · 2 comments
Closed

Eslint latest version 2.13.0 error .eslintrc #6482

samudurand opened this issue Jun 20, 2016 · 2 comments
Labels
archived due to age This issue has been archived; please open a new issue for any further discussion triage An ESLint team member will look at this issue soon

Comments

@samudurand
Copy link

samudurand commented Jun 20, 2016

What version of ESLint are you using?*
2.13.0

What parser (default, Babel-ESLint, etc.) are you using?
default

Please show your full configuration:
npm package.json file

{
  "name": "name",
  "version": "0.0.1",
  "dependencies": {},
  "devDependencies": {
    "bower": "^1.7.7",
    "browserify": "^13.0.0",
    "browserstack-webdriver": "^2.41.1",
    "del": "^2.2.0",
    "eslint": "2.13.0",
    "eslint-config-angular": "0.4.0",
    "eslint-plugin-angular": "0.15.0",
    "eslint-plugin-jasmine": "^1.8.1",
    "fs": "0.0.2",
    "gulp": "^3.9.1",
    "gulp-autoprefixer": "^3.1.0",
    "gulp-batch": "^1.0.5",
    "gulp-beautify": "^2.0.0",
    "gulp-cached": "^1.1.0",
    "gulp-concat": "^2.6.0",
    "gulp-eslint": "^2.0.0",
    "gulp-filter": "^3.0.1",
    "gulp-if": "^2.0.0",
    "gulp-imagemin": "^2.4.0",
    "gulp-ng-annotate": "^2.0.0",
    "gulp-plumber": "^1.1.0",
    "gulp-rename": "^1.2.2",
    "gulp-rev": "^7.0.0",
    "gulp-rev-css-url": "^0.1.0",
    "gulp-sass": "^2.2.0",
    "gulp-sass-inheritance": "git://github.com/safareli/gulp-sass-inheritance.git#patch-1",
    "gulp-scss-lint": "^0.3.9",
    "gulp-sourcemaps": "^1.6.0",
    "gulp-uglify": "^1.5.3",
    "gulp-watch": "^4.3.5",
    "imagemin-pngquant": "^4.2.2",
    "jasmine-core": "^2.4.1",
    "jasmine-reporters": "^2.1.1",
    "karma": "^0.13.22",
    "karma-chrome-launcher": "^0.1.2",
    "karma-coverage": "^0.5.5",
    "karma-jasmine": "^0.3.5",
    "karma-junit-reporter": "^0.4.0",
    "karma-ng-html2js-preprocessor": "^0.2.1",
    "karma-phantomjs-launcher": "^1.0.0",
    "ng-annotate": "^1.2.1",
    "node-sass": "^3.4.2",
    "phantomjs-prebuilt": "~2.1.3",
    "protractor": "^2.5.1",
    "require-dir": "^0.3.0",
    "run-sequence": "^1.1.4",
    "vinyl-paths": "^2.1.0"
  },
  "engines": {
    "node": ">=0.10.0"
  },
  "license": "MIT",
  "scripts": {
    "test": "grunt test"
  }
}

example of eslintrc file

{
    "ecmaFeatures" : {
         "arrowFunctions" : true,
         "templateStrings" : true
    },
    "globals": {
        "angular" : true,
        "jQuery": true
    },
    "extends" : "../../.eslintrc",
    "rules" : {
        //STANDARD OVERRIDES
        "func-names" : 0,
        "no-console": 0,
        "func-style": 0,
        "indent": [2, 4, {"SwitchCase": 1}],
        "no-negated-condition": 0,

        //ANGULAR RULES
        "angular/log": 0
    }
}

What did you do? Please include the actual source code causing the issue.

Everything was working until I updated from version 2.12.0 to 2.13.0

What did you expect to happen?

Eslint check

What actually happened? Please include the actual, raw output from ESLint.

When ran using Gulp I got this error :

[Error: Cannot read config file: /jenkins/.../frontend_assets/node_modules/.eslintrc
Error: ENOENT: no such file or directory, open '/jenkins/.../frontend_assets/node_modules/.eslintrc'
Referenced from: /jenkins/.../frontend_assets/tests/unit/.eslintrc]
  errno: -2,
  code: 'ENOENT',
  syscall: 'open',
  path: '/jenkins/.../frontend_assets/node_modules/.eslintrc' }

Going back to 2.12.0 fixed the issue

@eslintbot eslintbot added the triage An ESLint team member will look at this issue soon label Jun 20, 2016
@kokarn
Copy link
Contributor

kokarn commented Jun 20, 2016

Duplicate of #6479

@vitorbal
Copy link
Member

Closing this as it is a duplicate of #6450. There should be a patch release today with the fix. Follow #6450 for updates!

@eslint-deprecated eslint-deprecated bot locked and limited conversation to collaborators Feb 6, 2018
@eslint-deprecated eslint-deprecated bot added the archived due to age This issue has been archived; please open a new issue for any further discussion label Feb 6, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
archived due to age This issue has been archived; please open a new issue for any further discussion triage An ESLint team member will look at this issue soon
Projects
None yet
Development

No branches or pull requests

4 participants