Skip to content
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

chore: add name to recommended config preset #692

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions eslint.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ module.exports = [
// eslint-community/eslint-comments does not expose a reusable flat config,
// so create one from its legacy config
{
name: '@eslint-community/eslint-comments',
plugins: {
'@eslint-community/eslint-comments': eslintPluginEslintComments,
},
Expand All @@ -21,6 +22,7 @@ module.exports = [
eslintPluginMdx.flatCodeBlocks,
eslintPluginPrettierRecommended,
{
name: 'eslint-plugin overrides',
rules: {
'eslint-plugin/report-message-format': ['error', '^[^a-z].*\\.$'],
},
Expand All @@ -29,6 +31,7 @@ module.exports = [
// If a config block only contains an `ignores` key, then the globs are
// ignored globally
{
name: 'global ignores',
ignores: [
'CHANGELOG.md',
'.github/ISSUE_TEMPLATE.md',
Expand Down
1 change: 1 addition & 0 deletions recommended.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ const eslintPluginPrettier = require('./eslint-plugin-prettier');
// Merge the contents of eslint-config-prettier into every
module.exports = {
...eslintConfigPrettier,
name: 'prettier/recommended',
plugins: {
...eslintConfigPrettier.plugins,
prettier: eslintPluginPrettier,
Expand Down