Coder Social home page Coder Social logo

zerotohero-dev / coding-standards Goto Github PK

View Code? Open in Web Editor NEW
2.0 2.0 1.0 52 KB

Byte-Sized JavaScript Coding Standards

Home Page: https://bytesized.tv/

License: Other

JavaScript 89.50% Shell 10.50%
standards plugin eslint conventions javascript screencast vidcast react nodejs linter default-ruleset ruleset tutorials trainings podcast videos videocast bytesized-javascript education learning

coding-standards's Introduction

tests deps

   __                                  __
  / _)  _  _   _ ) o  _   _           (_ \
 | |   (_ (_) (_(  ( ) ) (_(            | |
( (                       _)             ) )
 | |_   _ _)_ _   _   _ ) _   _ _ ) _  _| |
  \__) (  (_ (_( ) ) (_( (_( ) (_( (  (__/
       _)                          _)

Byte-Sized JavaScript Coding Standards is a repository to share common ESLint rules that we use across all Byte-Sized JavaScript repositories.

The rulesets assume sane defaults. — You can directly use them in your projects our you can extend and customize them to suit your specific needs.

Installation

Make sure that you have ESLint installed in your project.

Install Byte-Sized JavaScript Coding Standards via npm:

npm install eslint-config-jsbites

Usage Examples

Extend to jbites in your .eslintrc as follows:

{
    "extends": "jsbites"
}

Or if you are using React in your project, use the the React-specific ruleset as follows:

{
    "extends": "jsbites/react"
}

Or if you are on a Node.JS runtime and/or you don’t use a transpiler at all, use the following ruleset:

{
    "extends": "jsbites/node"
}

That’s it!

Dependencies

This module does not pre-install any dependencies.

So when running eslint if you might get an error message prompting you to install additional eslint parsers and plugins.

Most of the time what you will need to install will be self-explanatory when you look at the error message.

If you have any problems though, feel free to file an issue.

Package Scripts

Here are the helper npm scripts that you can run via npm:

  • npm test: Executes the unit tests.
  • npm run lint: Checks whether the source JavaScript is well-formed.

Important Files and Folders

  • ./index.js: The default ruleset.
  • ./react.js: React-specific rulest.
  • ./node.js: Node.JS-specific rulest.
  • CHANGELOG.md: A log of what has been done since the last version.
  • CODE_OF_CONDUCT.md: Tells the collaborators to be nice to each other.
  • README.md: This very file.

Wanna Help?

Any help is more than appreciated.

If you want to contribute to the source code, fork this repository and create a pull request.

In lieu of a formal style guide, take care to maintain the existing coding style.

Also, don’t forget to add unit tests for any new or changed functionality.

If you want to report a bug; or share a comment or suggestion, file an issue.

I’ve Found a Bug; I Have an Idea

For bug reports and suggestions, please file an issue.

Contact Information

License

MIT-licensed. — See the license file for details.

Code of Conduct

We are committed to making participation in this project a harassment-free experience for everyone, regardless of the level of experience, gender, gender identity and expression, sexual orientation, disability, personal appearance, body size, race, ethnicity, age, religion, or nationality.

See the code of conduct for details.

A ByteSized.TV Project

This repository is a part of the Byte-Sized JavaScript VideoCasts.

It is a compilation of short (around ten minutes) screencasts about JavaScript and related technologies.

Learn, explore, and have fun!

coding-standards's People

Contributors

v0lkan avatar vclkan avatar

Stargazers

 avatar  avatar

Watchers

 avatar  avatar

Forkers

aarym

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.