1
0
Fork 0
mirror of https://github.com/elementor/hello-theme.git synced 2026-07-26 12:26:54 +08:00
hello-theme/.eslintrc.js
github-actions[bot] 8c2362467b
Internal: Update ecmaVersion in ESLint config from 2017 to 2023 (#672) (#674)
Co-authored-by: Rami Yushuvaev <92088692+rami-elementor@users.noreply.github.com>
Co-authored-by: Manor Hazaz <manorhazaz@gmail.com>
2026-07-19 11:30:38 +03:00

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,
},
],
},
};