GithubHelp home page GithubHelp logo

naridal / eslint-config-simplifield Goto Github PK

View Code? Open in Web Editor NEW

This project forked from simplifield/eslint-config-simplifield

0.0 1.0 0.0 283 KB

๐Ÿ— ESLint configuration at Simplifield

License: MIT License

JavaScript 100.00%

eslint-config-simplifield's Introduction

eslint-config-simplifield

NPM version Build status CodeFactor Dependency Status Dependency Status devDependency Status

ESLint configuration at Simplifield.

To use those rules in your projects, first, install it as a development dependency and than add it to your .eslintrc file.

It will automatically append the SimpliField rules to your project.

Theses are our own rules but you can require a reconsideration of a rule by creating an issue which name is the rule you wanna change.

See shareable configs documentation for more infos.

Usage

Sample .eslintrc using this plugin:

{
  "extends": "eslint-config-simplifield",
  "env": {
    "node": true,
    "mocha": true
  },
  "globals": {
    "require": false,
    "describe": false,
    "beforeEach": false,
    "afterEach": false,
    "before": false,
    "after": false,
    "it": false,
    "sinon": false,
    "module": false
  },
  "plugins": [
    "mongodb"
  ]
}

A .eslintrc for frontend with react & flow:

{
  "extends": "eslint-config-simplifield/lib/frontend",
  "plugins": [ "react", "flowtype" ],
  "parser": "babel-eslint",
  "parserOptions": {
    "ecmaFeatures": {
      "jsx": true
    }
  },
  "rules": {
    "react/jsx-uses-vars": "error",
    "react/jsx-uses-react": "error",
    "keyword-spacing": ["error", { "before": true }],
    "arrow-parens": ["error", "as-needed"],
    "operator-linebreak": "off",
    "no-mixed-operators": "off",
    "newline-per-chained-call": "off",
    "indent": "off"
  }
}

License

MIT

eslint-config-simplifield's People

Contributors

arnaudspanneut avatar greenkeeperio-bot avatar nfroidure avatar sebastienelet avatar xavhan avatar

Watchers

 avatar

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.