mirror of
https://github.com/Keeper-Security/harness-integration.git
synced 2026-06-04 10:14:56 +08:00
44 lines
1005 B
JavaScript
44 lines
1005 B
JavaScript
const js = require('@eslint/js');
|
|
const globals = require('globals');
|
|
|
|
module.exports = [
|
|
js.configs.recommended,
|
|
{
|
|
languageOptions: {
|
|
ecmaVersion: 2021,
|
|
sourceType: 'script',
|
|
globals: {
|
|
...globals.node
|
|
}
|
|
},
|
|
rules: {
|
|
'no-unused-vars': ['error', {
|
|
argsIgnorePattern: '^_',
|
|
varsIgnorePattern: '^_'
|
|
}],
|
|
'no-console': 'off',
|
|
'indent': ['error', 4],
|
|
'quotes': ['error', 'single'],
|
|
'semi': ['error', 'always']
|
|
}
|
|
},
|
|
{
|
|
// Jest test files configuration
|
|
files: ['**/*.test.js', '**/__tests__/**/*.js'],
|
|
languageOptions: {
|
|
globals: {
|
|
...globals.jest
|
|
}
|
|
}
|
|
},
|
|
{
|
|
ignores: [
|
|
'node_modules/**',
|
|
'*.vsix',
|
|
'dist/**',
|
|
'build/**',
|
|
'.git/**'
|
|
]
|
|
}
|
|
];
|