-
Notifications
You must be signed in to change notification settings - Fork 11
/
Copy patheslint.config.mjs
47 lines (45 loc) · 1.02 KB
/
eslint.config.mjs
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 eslintPluginPrettierRecommended from 'eslint-plugin-prettier/recommended';
import openWcEslintConfig from '@open-wc/eslint-config';
import { FlatCompat } from '@eslint/eslintrc';
const compat = new FlatCompat();
/** @type {import('@typescript-eslint/utils/ts-eslint').FlatConfig.ConfigArray} */
export default [
...compat.config(openWcEslintConfig),
{
ignores: [
'demo/',
'resources/',
'doc/',
'dist/',
'*jinn-codemirror*',
'test/',
'src/drawdown.js',
'*.html',
],
},
{
rules: {
'no-console': 'off',
'no-alert': 'off',
'import/no-extraneous-dependencies': [
'off',
{
devDependencies: ['demo/**/*.html', 'doc/**/*.html'],
},
],
'no-param-reassign': [
'off',
{
dependencies: ['src/fx-model.js'],
},
],
'no-unused-vars': [
'warn',
{
argsIgnorePattern: '^_.*',
},
],
},
},
eslintPluginPrettierRecommended,
];