代码拉取完成,页面将自动刷新
同步操作将从 热门极速下载/elementor 强制同步,此操作会覆盖自 Fork 仓库以来所做的任何修改,且无法恢复!!!
确定后同步将在后台操作,完成时将刷新页面,请耐心等待。
module.exports = {
extends: [
'plugin:react/recommended',
'plugin:no-jquery/deprecated',
'plugin:@wordpress/eslint-plugin/recommended-with-formatting',
'plugin:@elementor/editor/recommended',
'plugin:import/typescript',
],
plugins: [
'babel',
'react',
'@elementor/editor',
'no-jquery',
'@typescript-eslint',
],
parser: '@typescript-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: 2017,
requireConfigFile: false,
sourceType: 'module',
babelOptions: {
plugins: [
'@babel/plugin-syntax-import-assertions',
],
parserOpts: {
plugins: [ 'jsx' ],
},
},
},
rules: {
// Custom canceled rules
'no-var': 'off',
'wrap-iife': 'off',
'computed-property-spacing': [ 'error', 'always' ],
'comma-dangle': [ 'error', 'always-multiline' ],
'no-undef': 'off',
'no-unused-vars': [ 'warn', { ignoreRestSiblings: true } ],
'dot-notation': 'error',
'no-shadow': 'error',
'no-lonely-if': 'error',
'no-mixed-operators': 'error',
'no-nested-ternary': 'error',
'no-cond-assign': 'error',
indent: [ 1, 'tab', { SwitchCase: 1 } ],
'padded-blocks': [ 'error', 'never' ],
'one-var-declaration-per-line': 'error',
'array-bracket-spacing': [ 'error', 'always' ],
'no-else-return': 'error',
'no-console': 'warn',
// End of custom canceled rules
'arrow-parens': [ 'error', 'always' ],
'brace-style': [ 'error', '1tbs' ],
'jsx-quotes': 'error',
'no-bitwise': [ 'error', { allow: [ '^' ] } ],
'no-caller': 'error',
'no-debugger': 'warn',
'no-eval': 'error',
'no-restricted-syntax': [
'error',
{
selector: 'CallExpression[callee.name=/^__|_n|_x$/]:not([arguments.0.type=/^Literal|BinaryExpression$/])',
message: 'Translate function arguments must be string literals.',
},
{
selector: 'CallExpression[callee.name=/^_n|_x$/]:not([arguments.1.type=/^Literal|BinaryExpression$/])',
message: 'Translate function arguments must be string literals.',
},
{
selector: 'CallExpression[callee.name=_nx]:not([arguments.2.type=/^Literal|BinaryExpression$/])',
message: 'Translate function arguments must be string literals.',
},
],
'prefer-const': 'warn',
yoda: [ 'error', 'always', {
onlyEquality: true,
} ],
'react/react-in-jsx-scope': 'off',
'react/prop-types': 'error',
'react/no-deprecated': 'warn', // Temporary until we remove the deprecated components
'babel/semi': 1,
'jsdoc/check-tag-names': [ 'error', { definedTags: [ 'jest-environment' ] } ],
'jsdoc/require-returns-description': 'off', // We prefer self-explanatory method names
'import/no-unresolved': [ 2, { ignore: [ 'elementor', 'modules', '@wordpress/i18n', 'e-utils', 'e-styles', 'react' ] } ],
'import/no-extraneous-dependencies': 'off',
'@wordpress/i18n-ellipsis': 'off', // We don't use the ellipsis char because everything is already translated with regular '...'
'capitalized-comments': [
'error',
'always',
{
ignorePattern: 'webpackChunkName|webpackIgnore|jQuery',
ignoreConsecutiveComments: true,
},
],
'spaced-comment': [ 'error', 'always', { markers: [ '!' ] } ],
},
settings: {
'import/resolver': {
node: {
extensions: [ '.js', '.jsx', '.ts', '.tsx', '.json' ],
},
},
jsdoc: { mode: 'typescript' },
},
};
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。