-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy patheslint.config.js
More file actions
42 lines (39 loc) · 996 Bytes
/
Copy patheslint.config.js
File metadata and controls
42 lines (39 loc) · 996 Bytes
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
import { defineConfig } from 'eslint/config';
import js from '@eslint/js';
import jsdoc from 'eslint-plugin-jsdoc';
import wc from 'eslint-plugin-wc';
import globals from 'globals';
const config = defineConfig([
js.configs['recommended'],
jsdoc.configs['flat/recommended'],
wc.configs['flat/best-practice'],
{
files: [
'**/*.js',
],
plugins: {
js,
jsdoc,
wc,
},
rules: {
'indent': ['error', 2],
'semi': ['error', 'always'],
'quotes': ['error', 'single'],
'linebreak-style': ['error', 'unix'],
'comma-dangle': ['error', 'always-multiline'],
'jsdoc/require-description': 'off',
'jsdoc/require-param-description': 'off',
'jsdoc/require-property-description': 'off',
'jsdoc/require-returns-description': 'off',
},
languageOptions: {
sourceType: 'module',
ecmaVersion: 'latest',
globals: {
...globals.browser,
},
},
},
]);
export default config;