diff --git a/.eslintrc b/.eslintrc index d29f1d432..0fe303365 100644 --- a/.eslintrc +++ b/.eslintrc @@ -1,30 +1,13 @@ # For a detailed list of all options please see here: # http://eslint.org/docs/configuring/ +extends: openstack + env: # Use jquery global variables jquery: true browser: true -rules: - # Specify whether backticks, double or single quotes should be used - # http://eslint.org/docs/rules/quotes - quotes: - - 0 # TODO(kzaitsev): Activate & Fix - - 'single' - - # Require camel case names - # http://eslint.org/docs/rules/camelcase - camelcase: - - 1 - - properties: "never" - - # This option sets a specific tab width for your code - # http://eslint.org/docs/rules/indent - indent: - - 2 # Mark as errors. - - 2 # NOTE(kzaitsev): horizon also uses 2 space indentation. - globals: # allow accessing horizon horizon: false diff --git a/package.json b/package.json index da0aec2af..e4b66d177 100644 --- a/package.json +++ b/package.json @@ -6,7 +6,8 @@ "repository": "none", "license": "Apache 2.0", "devDependencies": { - "eslint": "^0.23.0" + "eslint": "^0.23.0", + "eslint-config-openstack": "1.2.0" }, "scripts": { "lint": "eslint --no-color muranodashboard/static"