mirror of
https://github.com/mozilla/gecko-dev.git
synced 2025-03-04 07:40:42 +00:00

The babel-eslint parser defaults to assuming all scripts are modules. Although we're moving in that direction it seems reasonable to set the default as regular scripts for now. All the places that were previously overriding the parser are already specifying the sourceType in their eslint configs. I chose to put the babel config in a file that babel itself won't look to avoid the risk of this config impacting the use of babel elsewhere in the tree. Differential Revision: https://phabricator.services.mozilla.com/D66127 --HG-- extra : moz-landing-system : lando
11 lines
348 B
JavaScript
11 lines
348 B
JavaScript
/* This Source Code Form is subject to the terms of the Mozilla Public
|
|
* License, v. 2.0. If a copy of the MPL was not distributed with this
|
|
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
|
|
|
|
module.exports = {
|
|
plugins: [
|
|
"@babel/plugin-syntax-optional-chaining",
|
|
"@babel/plugin-syntax-nullish-coalescing-operator",
|
|
],
|
|
};
|