Merge "Add selective ESLint rule activation for Horizon Legacy JS"

This commit is contained in:
Jenkins 2015-07-11 00:57:07 +00:00 committed by Gerrit Code Review
commit 1246a3605d
5 changed files with 55 additions and 5 deletions

View File

@ -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
@ -794,7 +790,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.

View File

@ -0,0 +1,21 @@
# ESLint styles for Horizon's Legacy javascript code. These rule overrides exist to enforce an
# older linting style, to ensure backward compatibility.
rules:
# Various rules applicable to our new Code Style guidelines were only intermittently enforced
# in the legacy code, and were not addressed during the JSCS move. This disables the applicable
# rules.
camelcase: 0
max-len: 0
space-before-blocks: 0
one-var: 0
space-infix-ops: 0
space-after-keywords: 0
no-console: 0
no-multiple-empty-lines: 0
no-sync: 0
no-process-exit: 0
space-unary-ops: 0
curly: 0
indent: 0

View File

@ -0,0 +1,6 @@
# ESLint styles for this section of horizon's codebase. It activates the John Papa
# Style plugin for all javascript files in this directory or below.
# Enable eslint-plugin-angular
plugins:
- angular

View File

@ -0,0 +1,21 @@
# ESLint styles for Horizon's Legacy javascript code. These rule overrides exist to enforce an
# older linting style, to ensure backward compatibility.
rules:
# Various rules applicable to our new Code Style guidelines were only intermittently enforced
# in the legacy code, and were not addressed during the JSCS move. This disables the applicable
# rules.
camelcase: 0
max-len: 0
space-before-blocks: 0
one-var: 0
space-infix-ops: 0
space-after-keywords: 0
no-console: 0
no-multiple-empty-lines: 0
no-sync: 0
no-process-exit: 0
space-unary-ops: 0
curly: 0
indent: 0

View File

@ -0,0 +1,6 @@
# ESLint styles for this section of horizon's codebase. It activates the John Papa
# Style plugin for all javascript files in this directory or below.
# Enable eslint-plugin-angular
plugins:
- angular