mirror of
https://github.com/elementor/hello-theme.git
synced 2026-07-26 12:26:54 +08:00
Co-authored-by: Rami Yushuvaev <92088692+rami-elementor@users.noreply.github.com> Co-authored-by: Manor Hazaz <manorhazaz@gmail.com>
44 lines
771 B
JavaScript
44 lines
771 B
JavaScript
module.exports = {
|
|
extends: [
|
|
'plugin:react/recommended',
|
|
'plugin:no-jquery/deprecated',
|
|
'plugin:@wordpress/eslint-plugin/recommended-with-formatting',
|
|
'plugin:prettier/recommended',
|
|
],
|
|
plugins: ['babel', 'react', 'no-jquery'],
|
|
parser: '@babel/eslint-parser',
|
|
globals: {
|
|
wp: true,
|
|
window: true,
|
|
document: true,
|
|
_: false,
|
|
jQuery: false,
|
|
JSON: false,
|
|
elementorFrontend: true,
|
|
require: true,
|
|
elementor: true,
|
|
DialogsManager: true,
|
|
module: true,
|
|
React: true,
|
|
PropTypes: true,
|
|
__: true,
|
|
},
|
|
parserOptions: {
|
|
ecmaVersion: 2023,
|
|
sourceType: 'module',
|
|
ecmaFeatures: {
|
|
jsx: true,
|
|
},
|
|
},
|
|
rules: {
|
|
'no-undef': 'off',
|
|
'no-unused-vars': 'off',
|
|
yoda: [
|
|
'error',
|
|
'always',
|
|
{
|
|
onlyEquality: true,
|
|
},
|
|
],
|
|
},
|
|
};
|