Files
wp-plugin-starter-template-…/.eslintrc.js
marcusquinn e6dcda3f6e 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]
2025-11-16 03:51:12 +00:00

34 lines
572 B
JavaScript

module.exports = {
env: {
browser: true,
es2021: true,
node: true,
'cypress/globals': true
},
extends: [
'eslint:recommended'
],
plugins: [
'cypress'
],
parserOptions: {
ecmaVersion: 'latest',
sourceType: 'module'
},
rules: {
'no-console': 'warn',
'no-unused-vars': 'warn'
},
globals: {
cy: 'readonly',
Cypress: 'readonly',
describe: 'readonly',
it: 'readonly',
expect: 'readonly',
beforeEach: 'readonly',
afterEach: 'readonly',
before: 'readonly',
after: 'readonly'
}
};