mirror of
https://github.com/xtrll/MusicMetaFinder.git
synced 2026-04-17 19:54:06 +02:00
feat(eslint-config): extend ruleset with custom linting exceptions and adjustments
This commit is contained in:
@@ -10,7 +10,17 @@ const __filename = fileURLToPath(import.meta.url);
|
||||
const __dirname = path.dirname(__filename);
|
||||
const compat = new FlatCompat({baseDirectory: __dirname, recommendedConfig: pluginJs.configs.recommended});
|
||||
|
||||
// Add additional language options and rules here
|
||||
const additionalConfig = {
|
||||
rules: {
|
||||
'no-console': 'off', // This disables the 'no-console' rule
|
||||
'import/no-named-as-default-member': 'off', // Disables the named as default member rule
|
||||
'max-len': ['error', { code: 100, ignoreComments: true }], // Allow code lines of up to 100 characters, ignoring comments
|
||||
},
|
||||
};
|
||||
|
||||
export default [
|
||||
{languageOptions: { globals: globals.browser }},
|
||||
{ languageOptions: { globals: globals.browser }},
|
||||
...compat.extends("airbnb-base"),
|
||||
additionalConfig,
|
||||
];
|
||||
Reference in New Issue
Block a user