/
eslint.config.js
50 lines (49 loc) · 1.26 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
48
49
50
import eslintJs from '@eslint/js';
import globals from 'globals';
import owcPlugin from 'eslint-plugin-wc';
import litPlugin from 'eslint-plugin-lit';
import litA11yPlugin from 'eslint-plugin-lit-a11y';
import jsdocPlugin from 'eslint-plugin-jsdoc';
export default [
eslintJs.configs.recommended,
jsdocPlugin.configs['flat/recommended'],
{
files: ['**/*.js', '*.mjs'],
ignores: ['build/**/*.js'],
languageOptions: {
globals: {
...globals.browser,
...globals.node
},
parserOptions: {
ecmaVersion: 2024,
sourceType: 'module'
}
},
plugins: {
litPlugin,
litA11yPlugin,
owcPlugin,
jsdocPlugin
},
rules: {
semi: ['error', 'always'],
'jsdoc/check-alignment': ['error'],
'jsdoc/check-line-alignment': ['off'],
'jsdoc/require-jsdoc': [
'warn',
{
enableFixer: false,
checkConstructors: false,
contexts: ['MethodDefinition:not([key.name="render"])']
}
],
'jsdoc/require-hyphen-before-param-description': ['warn', 'always'],
'jsdoc/require-returns-description': ['off'],
'jsdoc/require-param-description': ['off']
}
},
{
ignores: ['build/**/*.js', './eslint.config.js']
}
];