Coder Social home page Coder Social logo

Comments (6)

Znack avatar Znack commented on September 27, 2024 1

Поправил название для "strict": true, @sk1e норм же?

from react-redux-starter-kit.

in19farkt avatar in19farkt commented on September 27, 2024

там вообще нужно убрать эти флаги

noImplicitAny
strictNullChecks
strictFunctionTypes
strictBindCallApply
strictPropertyInitialization
noImplicitThis
alwaysStrict

и поставить один, который всё это объединяет"strict": true,

from react-redux-starter-kit.

in19farkt avatar in19farkt commented on September 27, 2024

И еще эти нужно включить (если они не включены)

    /* 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.

sk1e avatar sk1e commented on September 27, 2024

Поправил название для "strict": true, @sk1e норм же?

да, я просто выяснить хотел почему именно strictFunctionTypes в false выставлен был. Выглядит преднамеренно

from react-redux-starter-kit.

in19farkt avatar in19farkt commented on September 27, 2024

да, я просто выяснить хотел почему именно strictFunctionTypes в false выставлен был. Выглядит преднамеренно

Когда только этот флаг появился, были какие-то проблемы, не сходились типы там где они должны были сходиться, и мы решили вырубить его. Возможно в следующих версиях это пофиксили, т.к. сейчас я не испытываю никаких трудностей с этим флагом.

from react-redux-starter-kit.

Safr avatar Safr commented on September 27, 2024

Лучше добавлять флаги отдельно, так мы внесем ясность что происходит, и с strict:true есть проблемы, иногда мы знаем больше о коде , чем тс, но так как все в строгом режиме он нам будет ошибки сыпать

from react-redux-starter-kit.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.