-
Notifications
You must be signed in to change notification settings - Fork 3
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Not working with ESLint 9. #5
Comments
A pull request had been made: #6 |
Same problem here. I still get My import { includeIgnoreFile } from '@eslint/compat'
import path from 'node:path'
import { fileURLToPath } from 'node:url'
import html from 'eslint-plugin-html'
import php from 'eslint-plugin-php-markup'
import prettier from 'eslint-plugin-prettier'
// https://eslint.org/docs/latest/use/configure/ignore#including-gitignore-files
const __filename = fileURLToPath(import.meta.url)
const __dirname = path.dirname(__filename)
const gitignorePath = path.resolve(__dirname, '.gitignore')
export default [
includeIgnoreFile(gitignorePath),
{
ignores: ['acf-json/'],
files: ['**/*.{js,html,php}'],
languageOptions: {
sourceType: 'module', // Ensures JS is recognized
globals: { window: 'readonly', document: 'readonly' } // Adds browser globals
},
plugins: { html, php },
// plugins: { prettier, html, php },
rules: {
// 'prettier/prettier': 'error', // Enforce Prettier formatting
'no-console': 'warn' // Warn on console usage
}
}
] Deps: "devDependencies": {
"@eslint/compat": "^1.2.5",
"@jeffreyvr/tailwindcss-tailpress": "^2.0.0",
"@prettier/plugin-php": "^0.22.4",
"autoprefixer": "^10.4.13",
"browser-sync": "^2.26.14",
"cross-env": "^6.0.3",
"cypress": "^13.7.0",
"eslint": "^9.19.0",
"eslint-config-prettier": "^10.0.1",
"eslint-plugin-html": "^8.1.2",
"eslint-plugin-php-markup": "^6.0.0",
"eslint-plugin-prettier": "^5.2.3",
"glob": "^11.0.0",
"laravel-mix": "^6.0.29",
"postcss": "^8.4.4",
"postcss-import": "^14.0.0",
"prettier": "^3.4.2",
"resolve-url-loader": "^3.1.2",
"tailwindcss": "^3.4.0"
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I've configured this plugin with the following configuration file in ESLint 9:
And try to lint this PHP file:
And I got this on my command line:
Environment:
The text was updated successfully, but these errors were encountered: