• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

43081j / eslint-plugin-lit / 9084671957
99%

Build:
DEFAULT BRANCH: master
Ran 14 May 2024 06:53PM UTC
Jobs 3
Files 58
Run time 1min
Badge
Embed ▾
README BADGES
x

If you need to use a raster PNG badge, change the '.svg' to '.png' in the link

Markdown

Textile

RDoc

HTML

Rst

14 May 2024 06:52PM UTC coverage: 94.069% (+0.02%) from 94.048%
9084671957

push

github

web-flow
fix: allow decorated properties with class fields (#201)

Allows properties decorated with lit property decorators to have class
fields alongside.

This loosens the strictness of the rule under the assumption you have
set `useDefineForClassFields: false` in typescript.

If you use `declare` or `accessor`, those fields will already be ignored
by this rule.

Examples:

```ts
// Error
class X extends LitElement {
  fieldA;
  static properties = {fieldA: {type: String}};
}

// Works now, errored before
class X extends LitElement {
  @property()
  fieldA;
}

// Worked before, works now
class X extends LitElement {
  @property()
  declare fieldA;
}

// Worked before, works now
class X extends LitElement {
  declare fieldA;
  static properties = {fieldA: {type: String}};
}

// Worked before, works now
class X extends LitElement {
  @property()
  accessor fieldA;
}
```

Fixes #193.

573 of 655 branches covered (87.48%)

Branch coverage included in aggregate %.

1029 of 1048 relevant lines covered (98.19%)

48.77 hits per line

Uncovered Existing Lines

Lines Coverage ∆ File
1
94.31
-0.02% lib/util.js
Jobs
ID Job ID Ran Files Coverage
1 9084671957.1 14 May 2024 06:53PM UTC 58
94.07
GitHub Action Run
2 9084671957.2 14 May 2024 06:53PM UTC 58
94.07
GitHub Action Run
3 9084671957.3 14 May 2024 06:53PM UTC 58
94.07
GitHub Action Run
Source Files on build 9084671957
  • Tree
  • List 58
  • Changed 5
  • Source Changed 0
  • Coverage Changed 5
Coverage ∆ File Lines Relevant Covered Missed Hits/Line Branch Hits Branch Misses
  • Back to Repo
  • 9fb7b660 on github
  • Prev Build on master (#8991865024)
  • Next Build on master (#9085786207)
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc