Skip to content

Commit ffcd5b0

Browse files
committed
build: bump dependencies
1 parent fc24d8a commit ffcd5b0

File tree

6 files changed

+4467
-3568
lines changed

6 files changed

+4467
-3568
lines changed

.eslintignore

Lines changed: 0 additions & 8 deletions
This file was deleted.

eslint.config.js

Lines changed: 57 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,57 @@
1+
'use strict';
2+
3+
const { defineConfig } = require('eslint/config');
4+
const eslintJs = require('@eslint/js');
5+
const jestPlugin = require('eslint-plugin-jest');
6+
const salesforceLwcConfig = require('@salesforce/eslint-config-lwc/recommended');
7+
const globals = require('globals');
8+
9+
module.exports = defineConfig([
10+
// Global ignores
11+
{
12+
ignores: [
13+
'src/main/default/staticresources/**', // Ignore third party libraries
14+
'src/test/jest-mocks/lightning/modal.js' // Ignore modal mock as it contains decorators (unsupported by ESLint)
15+
]
16+
},
17+
18+
// LWC configuration for src/main/default/lwc
19+
{
20+
files: ['src/main/default/lwc/**/*.js'],
21+
extends: [salesforceLwcConfig]
22+
},
23+
24+
// LWC configuration with override for LWC test files
25+
{
26+
files: ['src/main/default/lwc/**/*.test.js'],
27+
extends: [salesforceLwcConfig],
28+
rules: {
29+
'@lwc/lwc/no-unexpected-wire-adapter-usages': 'off'
30+
},
31+
languageOptions: {
32+
globals: {
33+
...globals.node
34+
}
35+
}
36+
},
37+
38+
// Jest mocks configuration
39+
{
40+
files: ['src/test/jest-mocks/**/*.js'],
41+
languageOptions: {
42+
sourceType: 'module',
43+
ecmaVersion: 'latest',
44+
globals: {
45+
...globals.node,
46+
...globals.es2021,
47+
...jestPlugin.environments.globals.globals,
48+
CustomEvent: 'readonly',
49+
window: 'readonly'
50+
}
51+
},
52+
plugins: {
53+
eslintJs
54+
},
55+
extends: ['eslintJs/recommended']
56+
}
57+
]);

0 commit comments

Comments
 (0)