You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
28 lines
790 B
JavaScript
28 lines
790 B
JavaScript
// Copyright (C) 2020-2022 Intel Corporation
|
|
//
|
|
// SPDX-License-Identifier: MIT
|
|
|
|
const globalConfig = require('../.eslintrc.js');
|
|
|
|
module.exports = {
|
|
root: true,
|
|
parserOptions: {
|
|
parser: 'babel-eslint',
|
|
sourceType: 'module',
|
|
},
|
|
ignorePatterns: [
|
|
'.eslintrc.js',
|
|
'lint-staged.config.js',
|
|
],
|
|
plugins: ['security', 'no-unsanitized', 'import'],
|
|
extends: [
|
|
'eslint:recommended', 'plugin:security/recommended', 'plugin:no-unsanitized/DOM', 'plugin:cypress/recommended',
|
|
'airbnb-base', 'plugin:import/errors', 'plugin:import/warnings',
|
|
],
|
|
rules: {
|
|
...Object.fromEntries(Object.entries(globalConfig.rules).filter(([key]) => {
|
|
return !key.startsWith('@typescript-eslint')
|
|
})),
|
|
},
|
|
};
|