Giter VIP home page Giter VIP logo

eslint-config's People

Contributors

edugolr avatar krisell avatar setn avatar vilbergs avatar

Stargazers

 avatar

Watchers

 avatar  avatar  avatar  avatar

eslint-config's Issues

Ts linting configuration

Ts linting config needs adjusting.
Consider to make different installations depending on project type

Prettier does not use our eslint-settings

I followed the guide in the README and had to add two settings to .vscode/settings.json

{
  "editor.defaultFormatter": "esbenp.prettier-vscode",
  "editor.formatOnSave": true
}

Though, when saving it looks like it first formats correctly (with standard-js) but then adds semi-colons (probably air-bnb). Am I missing some settings?

Should this be public?

This discussion is preventive, not triggered by anything specific.

I noticed this, and a few other, repositories are public. There is of course nothing secret here but it's very easy to forget about the publicity during discussions and issue-comments, so we have to be careful about what we mention, to not add any personal data, details of ongoing projects etc.

The pros of keeping it public is free access to CI tools and similar services, for package publishing, and possibly as "marketing". I absolutely think we can keep it public, but we should have a short internal discussion to ensure everyone is aware of this.

Simplify build process

Today we build each util as a separate module in order to guarantee that it's possible to import only the utils that we need without relying on opaque tree-shaking processes in build tools.

In order to get nice imports like ย import x from @Teachiq/utils/x as well as avoid clutter in the root directory of the project, we're forced to do the following since npm (package.json) doesn't have a great interface for structure the package contents:

  1. build each separate module into the libdirectory
  2. move the modules to the root directory of the project
  3. run npm publish, where package.json is set to point at each module at the root (see the files option)
  4. move the modules back to lib to avoid clutter in the root directory

This requires a whole lot of setting up if a new type of utility module is to be added, which may be a large time sink.

My suggestions to solve this:

  1. Let the root directory be cluttered and just build package directly there
  2. Make a build script that magically handles building and publishing modules in the source directory
  3. Simplify the project structure and rely on build-tool treeshaking

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.