Commit 09aabcb0 authored by Shik Chen's avatar Shik Chen Committed by Commit Bot

CCA: Update ESLint config to ES2020

This CL updates the version for env and parser, and removes some
unnecessary globals in the config.

Bug: 1139102
Test: Presubmit checks
Change-Id: I9b916b0a3a7fa32a744b84ef78bcd333efa85e04
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2483736
Auto-Submit: Shik Chen <shik@chromium.org>
Commit-Queue: Inker Kuo <inker@chromium.org>
Reviewed-by: default avatarInker Kuo <inker@chromium.org>
Cr-Commit-Position: refs/heads/master@{#818359}
parent 1b8ffc3e
...@@ -362,24 +362,19 @@ module.exports = { ...@@ -362,24 +362,19 @@ module.exports = {
'root': true, 'root': true,
'env': { 'env': {
'browser': true, 'browser': true,
'es6': true, 'es2020': true,
'webextensions': true, 'webextensions': true,
}, },
'parserOptions': { 'parserOptions': {
'ecmaVersion': 2018, 'ecmaVersion': 2020,
'sourceType': 'module', 'sourceType': 'module',
}, },
'extends': 'eslint:recommended', 'extends': 'eslint:recommended',
'globals': { 'globals': {
'arc': 'readable', 'arc': 'readable',
// Adds BigInt64Array here since current version of eslint does not treat
// BigInt64Array as a defined type.
'BigInt64Array': 'readable',
'chromeosCamera': 'readable', 'chromeosCamera': 'readable',
'blink': 'readable', 'blink': 'readable',
'cca': 'readable', // TODO(inker): remove this after resolving b/141518780.
'cros': 'readable', 'cros': 'readable',
'globalThis': 'readable',
'webkitRequestFileSystem': 'readable', 'webkitRequestFileSystem': 'readable',
}, },
// Generally, the rules should be compatible to both bundled and the newest // Generally, the rules should be compatible to both bundled and the newest
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment