-
-
Notifications
You must be signed in to change notification settings - Fork 114
/
Copy patheslint.config.mjs
34 lines (33 loc) · 961 Bytes
/
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
import js from '@eslint/js';
import prettierRecommended from 'eslint-plugin-prettier/recommended';
import regexpEslint from 'eslint-plugin-regexp';
import pluginSecurity from 'eslint-plugin-security';
import wcEslint from 'eslint-plugin-wc';
export default [
// general ignores
{
ignores: ['**/*.d.ts', '**/*.min.*', 'dist/*', 'demo/*', 'Gruntfile.js', 'set-release.js', 'node_modules/', '.github/'],
},
// general rules
js.configs.recommended,
regexpEslint.configs['flat/recommended'],
wcEslint.configs['flat/recommended'],
prettierRecommended,
pluginSecurity.configs.recommended,
// overrides
{
files: ['**/*.{js,mjs,cjs}'],
rules: {
'prettier/prettier': 'error',
'no-mixed-spaces-and-tabs': ['error', 'smart-tabs'],
'no-undef': 'off',
'no-unused-vars': [
'warn',
{
argsIgnorePattern: '^_',
destructuredArrayIgnorePattern: '^_',
},
],
},
},
];