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

No support for jasmine environment #1176

Closed
whitneyit opened this issue Aug 19, 2014 · 2 comments
Closed

No support for jasmine environment #1176

whitneyit opened this issue Aug 19, 2014 · 2 comments
Labels
archived due to age This issue has been archived; please open a new issue for any further discussion core Relates to ESLint's core APIs and features enhancement This change enhances an existing feature of ESLint

Comments

@whitneyit
Copy link
Contributor

When using eslint to lint my jasmine test files, I have to constantly define a following list of globals in my .eslintrc, or worse still my test files.

# .eslintrc yaml

---
  globals:
    afterEach: false
    beforeEach: false
    describe: false
    expect: false
    it: false
    jasmine: false
    pending: false
    spyOn: false
    waits: false
    waitsFor: false
    xdescribe: false
    xit: false

    beforeAll: false
    afterAll: false
    runs: false

This list of globals covers both version 1.3 and 2.0.

@nzakas nzakas closed this as completed in e3e55ba Aug 21, 2014
nzakas added a commit that referenced this issue Aug 21, 2014
New: Adds support for the `jasmine` env (fixes #1176)
brandynbennett pushed a commit to brandynbennett/eslint that referenced this issue Aug 24, 2014
emilbayes pushed a commit to emilbayes/eslint that referenced this issue Sep 3, 2014
@spengilley
Copy link

Would be nice to have support for the module global too.

For example;

beforeEach(module('app'));

I am silencing the eslit error by putting

module: false under globals in the .eslintrc file

@tranvansang
Copy link

You should add {"jasmine": true} into "env"

@eslint-deprecated eslint-deprecated bot locked and limited conversation to collaborators Feb 7, 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 7, 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 core Relates to ESLint's core APIs and features enhancement This change enhances an existing feature of ESLint
Projects
None yet
Development

No branches or pull requests

4 participants