| 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'],
|
| + }
|
| +};
|
|
|