Comments (6)
Поправил название для "strict": true
, @sk1e норм же?
from react-redux-starter-kit.
там вообще нужно убрать эти флаги
noImplicitAny
strictNullChecks
strictFunctionTypes
strictBindCallApply
strictPropertyInitialization
noImplicitThis
alwaysStrict
и поставить один, который всё это объединяет"strict": true,
from react-redux-starter-kit.
И еще эти нужно включить (если они не включены)
/* Additional Checks */
"noUnusedLocals": true, /* Report errors on unused locals. */
"noUnusedParameters": true, /* Report errors on unused parameters. */
"noImplicitReturns": true, /* Report error when not all code paths in function return a value. */
"noFallthroughCasesInSwitch": true, /* Report errors for fallthrough cases in switch statement. */
from react-redux-starter-kit.
Поправил название для
"strict": true
, @sk1e норм же?
да, я просто выяснить хотел почему именно strictFunctionTypes в false выставлен был. Выглядит преднамеренно
from react-redux-starter-kit.
да, я просто выяснить хотел почему именно strictFunctionTypes в false выставлен был. Выглядит преднамеренно
Когда только этот флаг появился, были какие-то проблемы, не сходились типы там где они должны были сходиться, и мы решили вырубить его. Возможно в следующих версиях это пофиксили, т.к. сейчас я не испытываю никаких трудностей с этим флагом.
from react-redux-starter-kit.
Лучше добавлять флаги отдельно, так мы внесем ясность что происходит, и с strict:true есть проблемы, иногда мы знаем больше о коде , чем тс, но так как все в строгом режиме он нам будет ошибки сыпать
from react-redux-starter-kit.
Related Issues (20)
- Переименовать все namespace.ts в types.ts HOT 6
- Переименовать каталог с action creators из actions в actionCreators HOT 3
- Отказаться от интерфейсов? HOT 49
- Отказаться от дефолтных экспортов? HOT 6
- добавить микрофичи HOT 19
- Отказаться от redux-saga в пользу redux-observable HOT 6
- Отказаться от сущности element HOT 2
- Отказаться от сущности module HOT 34
- Выпилить неиспользуемые хелперы HOT 3
- Косяки в текущей реализации SSR HOT 1
- Добавть ресет стилей HOT 5
- Выпилить shared/types/guards.ts HOT 2
- выпилить core/__mocks__/fileMock.ts HOT 3
- Поменять интерфейс makeFeatureEntry HOT 2
- Пофиксить SSR HOT 6
- Обновить демо на Github Pages HOT 2
- Сверстать новый дизайн для демо проекта HOT 2
- Убрать все асинхронные фичи в демо-проекте
- Системно исправить асинхронные фичи
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 react-redux-starter-kit.