Closed Darmody closed 7 years ago
Hi, it works correctly:
I have tested it.
Hm... But export variable name should be lower.
I don't understand, for me it works correctly...
Hi @Darmody the error comes from ESLint's eslint-plugin-import rule so it's actualy not a runtime error nor it's a syntax error or anything else. The rule just doesn't like it but the code will work anyways.
The naming convetion is entirely up to the writer of the code and can't be enforced.
You should be able to disable ESLint for the line require('tangular');
using following snippet
var Tangular = require('tangular'); // eslint-disable-line
In my opnion, thinking Tangular
is inconsistent, because package name is tangular
.
@molda just want to make eslint green without disabling that rule, lol.
@Darmody tangular
has own reasons why is called tangular
. This is not my fiction, it works correctly and this is important, nothing more.