forked from taikoxyz/website
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.eslintrc.js
38 lines (38 loc) · 1.07 KB
/
.eslintrc.js
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
34
35
36
37
38
module.exports = {
env: {
browser: true,
es2021: true,
node: true,
},
extends: [
'eslint:recommended',
'plugin:react/recommended',
'plugin:@typescript-eslint/recommended', // if using TypeScript
'plugin:mdx/recommended', // Add this for MDX support
],
parser: '@typescript-eslint/parser', // if using TypeScript
parserOptions: {
ecmaFeatures: {
jsx: true,
},
ecmaVersion: 12,
sourceType: 'module',
},
plugins: [
'react',
'@typescript-eslint', // if using TypeScript
],
rules: {
// Place to specify ESLint rules - can be used to overwrite rules specified from the extended configs
// e.g., 'linebreak-style': ['error', 'unix']
},
overrides: [
{
files: ['*.mdx'], // Target MDX files specifically
rules: {
'semi': 'off', // Example of overriding a rule for MDX files
// Add other MDX-specific rules or overrides here
},
},
],
};