-
Notifications
You must be signed in to change notification settings - Fork 1
/
.eslintrc.cjs
51 lines (48 loc) · 1.57 KB
/
.eslintrc.cjs
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
51
/**
* @licstart The following is the entire license notice for the
* JavaScript code in this page
*
* Copyright (c) 2024 Marcel Suter - Replayer
*
* This source code is licensed under the AGPL license found in the
* LICENSE file in the root of this projects source tree.
*
* @licend The above is the entire license notice for the
* JavaScript code in this page
*/
/* eslint-env node */
require('@rushstack/eslint-patch/modern-module-resolution');
module.exports = {
root: true,
extends: [
//'plugin:vue/vue3-essential',
//'plugin:vue/vue3-strongly-recommended',
'plugin:vue/vue3-recommended',
// NOTE: 'plugin:vue/vue3-recommended' includes also 'plugin:vue/vue3-strongly-recommended' and 'plugin:vue/vue3-essential'
'eslint:recommended',
'@vue/eslint-config-typescript',
'@vue/eslint-config-prettier/skip-formatting',
],
overrides: [
{
files: ['cypress/e2e/**/*.{cy,spec}.{js,ts,jsx,tsx}'],
extends: ['plugin:cypress/recommended'],
},
{
/** Ignore specific files for fixing with "license-header" because the fixer messes up the files */
files: ['env.d.ts', '**/*.vue'],
rules: {
'license-header/header': 0,
},
},
],
parserOptions: {
ecmaVersion: 'latest',
},
plugins: ['license-header'],
rules: {
'license-header/header': ['error', './resources/license-header.js'],
},
/** exclude all pdfjs files from linting */
ignorePatterns: ['**/pdfjs/*'],
};