2026-07-06 20:20:31 +08:00
|
|
|
// ESLint flat config for FalahMobile
|
|
|
|
|
// Uses @eslint/js directly to avoid eslintrc circular dependency
|
|
|
|
|
import js from '@eslint/js'
|
|
|
|
|
import nextPlugin from '@next/eslint-plugin-next'
|
2026-06-15 09:42:26 +01:00
|
|
|
|
2026-07-06 20:20:31 +08:00
|
|
|
export default [
|
|
|
|
|
js.configs.recommended,
|
|
|
|
|
{
|
|
|
|
|
plugins: {
|
|
|
|
|
'@next/next': nextPlugin,
|
|
|
|
|
},
|
|
|
|
|
rules: {
|
|
|
|
|
...nextPlugin.configs.recommended.rules,
|
|
|
|
|
...nextPlugin.configs['core-web-vitals'].rules,
|
|
|
|
|
},
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
ignores: ['**/node_modules/**', '.next/**', '**/*.js', '**/*.mjs'],
|
|
|
|
|
},
|
|
|
|
|
]
|