28 lines
781 B
JavaScript
28 lines
781 B
JavaScript
// eslint.config.js (Advanced alternative)
|
|
import prettierPlugin from 'eslint-plugin-prettier'
|
|
import prettierConfig from 'eslint-config-prettier'
|
|
import prettierOptions from './prettier.config.js' // Import your config directly
|
|
import importPlugin from 'eslint-plugin-import'
|
|
|
|
export default [
|
|
{
|
|
plugins: {
|
|
prettier: prettierPlugin,
|
|
import: importPlugin,
|
|
},
|
|
rules: {
|
|
...prettierConfig.rules,
|
|
'prettier/prettier': ['error', prettierOptions],
|
|
'no-sequences': 'off',
|
|
'no-console': 'warn',
|
|
'import/first': 'error',
|
|
'import/newline-after-import': 'error',
|
|
'import/no-duplicates': 'error',
|
|
'import/no-unresolved': 'error',
|
|
'import/no-unused-modules': ['warn', { missingExports: true }],
|
|
quotes: ['error', 'single'],
|
|
semi: 'off',
|
|
},
|
|
},
|
|
]
|