@salesforce/eslint-config-lwc
Version:
Opinionated ESLint configurations for LWC projects
32 lines (29 loc) • 862 B
JavaScript
/*
* Copyright (c) 2018, salesforce.com, inc.
* All rights reserved.
* SPDX-License-Identifier: MIT
* For full license text, see the LICENSE file in the repo root or https://opensource.org/licenses/MIT
*/
;
const globals = require('globals');
const babelParser = require('@babel/eslint-parser');
/**
* Internal base configuration for all the shared configuration. This file is intentionally not located at the root of
* the package to avoid being exported and exposed.
*/
module.exports = {
parser: babelParser,
parserOptions: {
requireConfigFile: false,
babelOptions: {
babelrc: false,
parserOpts: {
plugins: [['decorators', { decoratorsBeforeExport: false }]],
},
},
},
globals: {
...globals.browser,
...globals.es2015,
},
};