Coder Social home page Coder Social logo

eslint-config-cleanjs's People

Contributors

bodil avatar christianhg avatar graingert avatar jdiamond avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

eslint-config-cleanjs's Issues

Forbid usage of var and let

Don't think there is a use case for var anymore.
Since mutation is forbidden, there is no case for let neither

Forbid usage of var and let

Don't think there is a use case for var anymore.
Since mutation is forbidden, there is no case for let neither

Idea: cleanjs badge

Something like standard

"Use this plugin in one of your projects? Include one of these badges in your readme to let people know that your code is clean"

It's a warm feeling to know that a library won't mutate my (immutable) data structures

Usage together with standard syntax / xo / ...

Hi there!

How about adding some information on how to use it in conjunction with standard and friends? I am not sure what's the best way to do so.

Maybe a small executable would be the easiest way, like standard does.

Cheers

What are the limitations?

Hi,

i'm excited about the objective and limitations of your project. I wrote my Bachelor Thesis earlier this year about a purely function subset of EcmaScript2015. There, i discovered that comparisons for object-identity naturally conflict with purity. For example, the expression (x => x === x)({}) evaluates to true w.r.t call-by-value or call-by-need, but to false w.r.t. call-by-name (the same holds for == and Object.is). There are at least two possible solutions to this problem:

  • Completely give up on objects and symbols and stay only with primitive values.
  • Suspend === and everything, which depends on object-identity.

In absense of a value-based notion of equality both of these limitations would clearly make the target-language impractical. Another limitation today is, that nearly all of the APIs which deal with effects (like I/O) depend on side-effects. Do you have any thoughts on how to gap these parts?

Web REPL

Something like https://babeljs.io/repl, but without any option. The right side should render eslint and flowtype errors. It should help people to write parts of their apps in the clean style. I feel there should be the only one pragma /* @clean */. It should enforce eslint airbnb syntax (it's pretty strictly) + cleanjs. And somehow /* @flow full-coverage? */.

[Question] How to exclude tests

I wonder if there's an easy way to exclude some of these rules for tests. Since we're more or less forced to write them in a specific way I often end up with these:

  • fp/no-nil (e.g describe/it)
  • fp/no-unused-expression (assertions)
  • fp/no-mutation (mocks)
  • ...

remove alert

Nobody tolerate "alert" anymore in any app.
So we can make it illegal

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.