diff options
author | Michael Krotscheck <krotscheck@gmail.com> | 2015-06-25 17:08:40 -0700 |
---|---|---|
committer | Michael Krotscheck <krotscheck@gmail.com> | 2015-07-08 17:06:15 -0700 |
commit | b8c7846c3d819999228c820b0c115f670243f0d2 (patch) | |
tree | b5b58a060dc9bda8bb397c2c8cdc9c4bf46f075f /.eslintrc | |
parent | 4d4045097e1be03d4ab895c0fd54102470111e87 (diff) | |
download | horizon-b8c7846c3d819999228c820b0c115f670243f0d2.tar.gz |
Add selective ESLint rule activation for Horizon Legacy JS
This patch adds the files for eslint overrides in the two different
segments of horizon's codebase: Legacy and Dashboard. There are
quite a few rules that had to be deactivated, which will reduce
the effectiveness of legacy linting.
Note: You cannot disable plugins in .eslintrc files, you can
only enable them. This is why there appear to be two redundant
.eslintrc files that enable the angular rules.
Change-Id: I5768cbc43e788a4320a6bb637c263dc3c3df3db9
Partially-Implements: blueprint jscs-cleanup
Diffstat (limited to '.eslintrc')
-rw-r--r-- | .eslintrc | 6 |
1 files changed, 1 insertions, 5 deletions
@@ -4,10 +4,6 @@ # By default, ESLint uses Espree as its parser. parser: espree -# Enable eslint-plugin-angular -plugins: - - angular - # Set up globals globals: angular: false @@ -786,7 +782,7 @@ rules: # specify the maximum length of a line in your program # http://eslint.org/docs/rules/max-len max-len: - - 2 # TODO(krotscheck): Activate & Fix + - 2 - 100 # Limits the number of parameters that can be used in function declaration. |