Giter VIP home page Giter VIP logo

eslint-mrf's People

Contributors

miquelmasrieramrf avatar stefanosaittamrf avatar

Watchers

 avatar

eslint-mrf's Issues

no-magic-numbers

Rule

Discussion

it's pretty annoying, magic numbers should better be checked in the PRs
example

Proposed change

remove no-magic-numbers

sort-imports

Rule

Discussion

The casing should be ignored, and maybe this rule could be removed, I personally prefer to sort the imports in the order that they are used.

Proposed change

  {
    "sort-imports": ["error", {"ignoreCase": false}]
  }

Reference

#4

Change file format from json to js

Discussion

I think is better to change the extension from json to js in order to put comments in there and help us spot mistakes easly.

Adding a test file + CI

I think we should add a test files that cover all the rules, and run TravisCI on it in order to make this repo reliable as much as possible.

ger rid of comma dangle

Rule

Discussion

I personally hate to see the a comma after the last property of an object.

  1. never seen it in any codebase in my life, even in marfeel
  2. since now it's only required for objects, i find it inconsistent with arrays, and for objects/arrays with only one property/element it's awful { seh:'seh', }
  3. no JSON compatible

Proposed change

  {
    "comma-dangle": "error"
  }

Remove google linter dependency

Discussion

I would like to remove the google-eslint-config dependency and do a plain files with rules, maybe later we can publish a linter that just extend this one on the project where we want to use it.

test

Rule

Discussion

Explaination of the issue. MAX 200 words.

Proposed change

  {
    "your_rule" : [2, {
      "prop": "true",
      "prop2": "true"
    }]
  }

sort-imports

Rule

Discussion

It should be ignore case

Proposed change

  {
    "sort-imports" : [2, {
       "ignoreCase": true
    }]
  }

google-config 2 marfeel

Rule

Discussion

adapt google rules

Proposed change

  • no-cond-assign from off to ["error", "always"]
  • no-irregular-whitespace --> remove for duplicate
  • valid-jsdoc remove bc we do not use jsdoc
  • no-extend-native from error to warn, as it's already redefined
  • no-invalid-this remove
  • no-unused-vars remove, e.g. unused arguments for widgets
  • max-len redefined "max-len": [ "warn", { "code": 120, "tabWidth": 2, "ignoreComments": true, "ignoreTemplateLiterals": true, "ignoreUrls": true } ]

require-jsdoc

Rule

Discussion

the linter triggers an error if a class or function isn't jsdocumented.
since it's not in the line of the codebase it should be removed

Proposed change

remove

"require-jsdoc"

your-rule

Rule

Discussion

Explaination of the issue. MAX 200 words.

Proposed change

  {
    "your_rule" : [2, {
      "prop": "true",
      "prop2": "true"
    }]
  }

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.