eslint-mrf's People
Forkers
miquelmasrieramrfeslint-mrf's Issues
no-magic-numbers
alphabetically sort rules
does it make sense to you to sort the rules alphabetically?
I think it would make it easier to find/modify/remove and to follow along with the docs http://eslint.org/docs/rules/
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
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.
- never seen it in any codebase in my life, even in marfeel
- 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', }
- 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
towarn
, 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
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google โค๏ธ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.