Commit Graph

5 Commits (humitos/sshkeys/cryptography)

Author SHA1 Message Date
Anthony 46890a95b9
Drop readthedocs- prefix to submodule (#3916)
* Drop readthedocs- prefix to submodule

This may require git submodule sync locally

* Relink files
2018-04-05 22:00:58 -06:00
Manuel Kaufmann 3c674f05ad Use readthedocs-common to share linting files accross different repos (#3808)
* Remove shared autolint config files

* readthedocs-common submodule added

* Add proper symlinks to all the shared linting config

* Update submodule for unhidden files

* Recover prospector-more.yml since it's specific for this repo
2018-03-23 11:42:58 -06:00
Nitish Bansal f1dc3df1a1
added lint rules 2018-03-13 14:00:25 -07:00
bansalnitish fcde821908 add lint rules and fix errors 2018-03-04 03:38:32 +05:30
CM Lubinski 9e07061730 Add eslint using the airbnb config. (#2905)
* Add eslint using the airbnb config.

In an effort to make the JS consistent, this adds an ESLint gulp task. ESLint
is *very* configurable, and has no defaults. Instead, this reaches for
airbnb's legacy config (which covers ES5), which is one of the most popular
configurations. As a last step, it turns off all of the rules which currently
fail. We can turn them on piecemeal, or override the airbnb style to use a
different format.

Rules to prioritize (as they likely indicate bugs):
* "array-callback-return": "off",
* "eqeqeq": "off",
* "guard-for-in": "off",
* "no-inner-declarations": "off",
* "no-loop-func": "off",
* "no-mixed-operators": "off",
* "no-undef": "off",
* "no-use-before-define": "off",
* "one-var": "off",

* Lint frontend in Travis.

This adds an ESLint step to the CI service so we prevent unlinted code from
making its way in.

* Create an ESLint tox env.

By adding a tox env for eslint, we allow users to run it locally as part of
tox runs.

Thanks for the suggestion @ericholscher!

* Fix tox call to gulp lint task
2017-05-24 16:12:33 -07:00