diff --git a/.eslintrc b/.eslintrc index a99ac59eb2..cb91ac15c6 100644 --- a/.eslintrc +++ b/.eslintrc @@ -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. diff --git a/horizon/static/auth/.eslintrc b/horizon/static/auth/.eslintrc new file mode 100644 index 0000000000..34e1f993e3 --- /dev/null +++ b/horizon/static/auth/.eslintrc @@ -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 diff --git a/horizon/static/framework/.eslintrc b/horizon/static/framework/.eslintrc new file mode 100644 index 0000000000..0babf5584b --- /dev/null +++ b/horizon/static/framework/.eslintrc @@ -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 diff --git a/horizon/static/horizon/.eslintrc b/horizon/static/horizon/.eslintrc new file mode 100644 index 0000000000..34e1f993e3 --- /dev/null +++ b/horizon/static/horizon/.eslintrc @@ -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 diff --git a/openstack_dashboard/.eslintrc b/openstack_dashboard/.eslintrc new file mode 100644 index 0000000000..0babf5584b --- /dev/null +++ b/openstack_dashboard/.eslintrc @@ -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