Skip to content

fix: mark only leading string expressions as directives #4

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

Merged
merged 1 commit into from
Jan 14, 2019
Merged

fix: mark only leading string expressions as directives #4

merged 1 commit into from
Jan 14, 2019

Conversation

armano2
Copy link
Collaborator

@armano2 armano2 commented Jan 13, 2019

This PR fixes detection of directives:

  • all leading string expressions in block should be marked as such unless there is expression of different type before them
  • directives does not have to be unique http://es5.github.io/#x14.1

A Directive Prologue may contain more than one Use Strict Directive. However, an implementation may issue a warning if this occurs.

- all leading string expressions in blocks should be marked as directives unless there is expression of different type before it
- directives does not have to be unique
@codecov
Copy link

codecov bot commented Jan 13, 2019

Codecov Report

Merging #4 into master will not change coverage.
The diff coverage is 100%.

Impacted file tree graph

@@           Coverage Diff           @@
##           master       #4   +/-   ##
=======================================
  Coverage   93.71%   93.71%           
=======================================
  Files           8        8           
  Lines        1401     1401           
  Branches      325      325           
=======================================
  Hits         1313     1313           
  Misses         49       49           
  Partials       39       39
Impacted Files Coverage Δ
packages/typescript-estree/src/convert.ts 94.46% <100%> (ø) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 7aa7b20...253e87b. Read the comment docs.

@JamesHenry JamesHenry merged commit 4a385d7 into typescript-eslint:master Jan 14, 2019
@armano2 armano2 deleted the estree-directive branch January 14, 2019 00:22
@armano2 armano2 self-assigned this Jan 14, 2019
JamesHenry added a commit that referenced this pull request Jan 17, 2019
BREAKING CHANGE: This plugin now requires TSLint 5, and the user must now separately install and manage their own TSLint dependency

fix #3
JamesHenry added a commit that referenced this pull request Jan 17, 2019
BREAKING CHANGE: This plugin now requires TSLint 5, and the user must now separately install and manage their own TSLint dependency

fix #3
JamesHenry pushed a commit that referenced this pull request Jan 17, 2019
…y modifiers such as public, private, and protected. (refs #4)
JamesHenry pushed a commit that referenced this pull request Jan 17, 2019
…y modifiers such as public, private, and protected. (refs #4)
JamesHenry pushed a commit that referenced this pull request Jan 18, 2019
…y modifiers such as public, private, and protected. (refs #4)
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Apr 21, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants