Comments (5)
Same if I try 'decodes ' + title
actually 😉
from eslint-plugin-ava.
Same if I try 'decodes ' + title actually
Already covered: https://github.com/sindresorhus/eslint-plugin-ava/blob/master/test/no-identical-title.js#L50
It should probably recognize the title is a template string and is most likely not a duplicate.
Yup, it should work as 'decodes ' + title
.
from eslint-plugin-ava.
@sindresorhus what do you mean by covered?
from eslint-plugin-ava.
Already covered: https://github.com/sindresorhus/eslint-plugin-ava/blob/master/test/no-identical-title.js#L50
Except @novemberborn is suggesting that test is wrong.That should be valid. Computed titles should be accepted by the linter. (Unless we want to try to do static analysis to determine the computed values, to which I say... 👎).
If we want to guard against computed titles, that should be done in AVA at runtime (just because it is way easier to do so).
from eslint-plugin-ava.
Oops, I somehow thought it was in the valid
section.
That should be valid. Computed titles should be accepted by the linter.
👍
Unless we want to try to do static analysis to determine the computed values
👎
from eslint-plugin-ava.
Related Issues (20)
- no-ignored-test-files caches results too aggressively. HOT 1
- Edge-case crashes & false-positives in no-statement-after-end with unreachable statements
- no-identical-title crashes if title is missing HOT 4
- `use-test`: Allow import statements without default specifier HOT 1
- Ensure AVA is specified as a dev dependency HOT 1
- `no-identical-title` crash HOT 2
- Support test.macro()
- No checks with typed context HOT 2
- Allow concatenation when ensuring assertion message is a string HOT 1
- Fix integration tests
- Support ESLint 8.x HOT 1
- Prefer `t.true(x)` over `t.is(x, true)` HOT 1
- Enable `eslint-plugin/prefer-placeholders` rule
- cannot destructure property 'type' or 'node' as it is undefined HOT 2
- Some rules do not fail gracefully: ava/prefer-t-regex HOT 1
- `prefer-t-regex` fails with `t.is()` with a single argument
- `ava/use-test` allow inline type imports
- `no-import-test-files` is slow
- `ava/use-test` does not allow `anyTest` in `.cts` and `.mts` files
- TypeError: Cannot destructure property 'type' of 'node' as it is undefined.
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from eslint-plugin-ava.