-
Notifications
You must be signed in to change notification settings - Fork 0
/
eslint.config.js
47 lines (46 loc) · 1.23 KB
/
eslint.config.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
39
40
41
42
43
44
45
46
47
import js from '@eslint/js';
import globals from 'globals';
import html from 'eslint-plugin-html';
import markdown from 'eslint-plugin-markdown';
import prettier from 'eslint-plugin-prettier';
import eslintPluginPrettierRecommended from 'eslint-plugin-prettier/recommended';
import babelParser from '@babel/eslint-parser';
export default [
js.configs.recommended,
...markdown.configs.recommended,
eslintPluginPrettierRecommended,
{
plugins: {
html: html,
markdown: markdown,
prettier: prettier
},
rules: {
'no-async-promise-executor': 'warn',
'no-prototype-builtins': 'warn',
'prettier/prettier': 'error',
'no-underscore-dangle': 'off',
'no-restricted-exports': 'off',
'no-restricted-syntax': 'off',
'no-shadow': 'warn'
},
languageOptions: {
globals: {
...globals.browser,
...globals.node,
myCustomGlobal: 'readonly'
},
parser: babelParser,
parserOptions: {
ecmaVersion: 'latest',
sourceType: 'module',
requireConfigFile: false,
babelOptions: {
configFile: false,
presets: ['@babel/preset-env']
}
}
},
ignores: ['node_modules/', '_site/']
}
];