Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1988)

Unified Diff: chrome/browser/resources/.eslintrc.js

Issue 2589333004: WebUI: Experimenting with ESLint, WIP. (Closed)
Patch Set: More relaxing Created 3 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | chrome/browser/resources/gulpfile.js » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/resources/.eslintrc.js
diff --git a/chrome/browser/resources/.eslintrc.js b/chrome/browser/resources/.eslintrc.js
new file mode 100644
index 0000000000000000000000000000000000000000..44202524d0d788a4d9feea46aa114c6fc6e666df
--- /dev/null
+++ b/chrome/browser/resources/.eslintrc.js
@@ -0,0 +1,29 @@
+module.exports = {
+ 'env': {
+ 'browser': true,
+ 'es6': true
+ },
+ 'extends': 'eslint:recommended',
+ 'rules': {
+ // Disabled checks.
+ 'no-case-declarations': 'off',
+ 'no-dupe-keys': 'off',
+ 'no-extra-boolean-cast': 'off',
+ 'no-inner-declarations': 'off',
+ 'no-redeclare': 'off',
+ 'no-undef': 'off',
+ 'no-unused-vars': 'off',
+ 'no-useless-escape': 'off',
+
+ // Enabled checks.
+ 'comma-dangle': ['error', 'only-multiline'],
+ 'linebreak-style': ['error', 'unix'],
+ 'max-len': ['error', 80],
+ 'no-console': ['error', { allow: ['warn', 'error'] }],
+ 'no-constant-condition': ['error', {checkLoops: false}],
+ 'no-trailing-spaces': 'error',
+ 'object-curly-spacing': ['error', 'never'],
+ 'quotes': ['error', 'single', {avoidEscape: true}],
+ 'semi': ['error', 'always'],
+ }
+};
« no previous file with comments | « no previous file | chrome/browser/resources/gulpfile.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698