Comments (6)
Hmm, will look into this. But just to clarify – lynt
does not use your tslint.json
. It is basically a wrapper around TSLint and it uses its own config for it. The full TSLint config that is generated is here: https://github.com/saadq/lynt/blob/master/src/tslint/config.ts
If you'd rather use your own rules with your own config, you're probably better off just sticking with TSLint.
With that said, I'm going to take a look at these rules and see what could be causing this issue. Let me know if you find anything strange in there in the mean time!
from lynt.
I think you're correct about 'no-unnecessary-type-assertion'
I removed the line 'no-unnecessary-type-assertion': true,
from node_modules/lynt/lib/tslint/config.js
(manual hack) and re-ran the npm run lynt
(pacagke.json command has --typescript --fix) and it no longer removed the type assertions!
Your file: https://github.com/saadq/lynt/blob/master/src/tslint/config.ts#L80
ps -- using lynt
removed about 300 unused imports in our codebase
pps - After lynt
removed the unused imports, it left behind some blank lines, resulting in errors when I was running our regular linter: it complained no-consecutive-blank-lines
. Sorry to overload this issue -- please let me know if you'd like me to open a new issue with just this comment
from lynt.
This rule has been removed entirely as of v0.5.0
. Release notes: https://github.com/saadq/lynt/releases/tag/v0.5.0
from lynt.
Thinking it might be this
from lynt.
lynt
just uses TSLint's --fix
flag, so I think the issue for that would need to be opened in the TSLint repo.
from lynt.
But let me know if for some reason this only happens when you run lynt --typescript --fix
and not tslint --fix
.
from lynt.
Related Issues (20)
- upgrade eslint v5 HOT 1
- Group related packages together into monorepo
- ESLint compromise
- Logo
- Remove `no-unused-variable` in TSLint config
- Tslint with exportedConfig and lynt have different output HOT 4
- Avoid installing extra packages HOT 1
- lint typescript using eslint HOT 2
- --strict mode HOT 1
- Add eslint-plugin-react-hooks for react lint config
- Invalid "is defined but never used" errors HOT 6
- Add jest config HOT 7
- ESLint 5 Breaking Change: Globs to lint MUST be valid HOT 1
- Auto-detect if the user needs react, flow, or typescript support
- Lynt v1 HOT 1
- Create gitter chat and add badge of it HOT 1
- --watch mode
- CLI flags should override config file options
- 30 high severity vulnerabilities in 2466 scanned packages HOT 3
- Is this project alive?
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 lynt.