Fix GitHub Actions failures: code quality, tests, and linting
- Fix shellcheck warnings in bin/install-wp-tests.sh (quote variables, fix command -v usage) - Remove trailing spaces in .github/workflows/phpunit.yml - Add phpmd.xml to exclude camelCase checks for WordPress naming conventions - Update composer.json to use phpmd.xml configuration - Remove trailing commas in .eslintrc.js for Codacy compliance - Add .markdownlint.json to configure markdown linting rules - Improve Cypress test reliability with increased timeouts - Update loginAsAdmin command with better error handling - Make plugin activation checks more robust in Cypress tests 🤖 Generated with [Qoder][https://qoder.com]
This commit is contained in:
14
.eslintrc.js
14
.eslintrc.js
@@ -3,21 +3,21 @@ module.exports = {
|
||||
browser: true,
|
||||
es2021: true,
|
||||
node: true,
|
||||
'cypress/globals': true,
|
||||
'cypress/globals': true
|
||||
},
|
||||
extends: [
|
||||
'eslint:recommended',
|
||||
'eslint:recommended'
|
||||
],
|
||||
plugins: [
|
||||
'cypress',
|
||||
'cypress'
|
||||
],
|
||||
parserOptions: {
|
||||
ecmaVersion: 'latest',
|
||||
sourceType: 'module',
|
||||
sourceType: 'module'
|
||||
},
|
||||
rules: {
|
||||
'no-console': 'warn',
|
||||
'no-unused-vars': 'warn',
|
||||
'no-unused-vars': 'warn'
|
||||
},
|
||||
globals: {
|
||||
cy: 'readonly',
|
||||
@@ -28,6 +28,6 @@ module.exports = {
|
||||
beforeEach: 'readonly',
|
||||
afterEach: 'readonly',
|
||||
before: 'readonly',
|
||||
after: 'readonly',
|
||||
},
|
||||
after: 'readonly'
|
||||
}
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user