-
-
Notifications
You must be signed in to change notification settings - Fork 212
Expand file tree
/
Copy patheslint.config.mjs
More file actions
33 lines (31 loc) · 1.04 KB
/
eslint.config.mjs
File metadata and controls
33 lines (31 loc) · 1.04 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
import eslintJs from '@eslint/js';
import eslintPluginN from 'eslint-plugin-n';
import eslintPluginEslintCommentsConfigs from '@eslint-community/eslint-plugin-eslint-comments/configs';
import eslintPluginEslintPlugin from 'eslint-plugin-eslint-plugin';
import * as eslintPluginMdx from 'eslint-plugin-mdx';
import eslintPluginPrettierRecommended from './recommended.js';
export default [
eslintJs.configs.recommended,
eslintPluginN.configs['flat/recommended'],
eslintPluginEslintCommentsConfigs.recommended,
eslintPluginEslintPlugin.configs.recommended,
eslintPluginMdx.flat,
eslintPluginMdx.flatCodeBlocks,
eslintPluginPrettierRecommended,
{ files: ['**/*.mjs'], languageOptions: { sourceType: 'module' } },
{
rules: {
'eslint-plugin/report-message-format': ['error', '^[^a-z].*\\.$'],
},
},
// Global ignores
// If a config block only contains an `ignores` key, then the globs are
// ignored globally
{
ignores: [
'CHANGELOG.md',
'.github/ISSUE_TEMPLATE.md',
'test/fixtures/**/*',
],
},
];