48 lines
1.2 KiB
JavaScript
48 lines
1.2 KiB
JavaScript
export default [
|
|
{
|
|
languageOptions: {
|
|
ecmaVersion: 2022,
|
|
sourceType: 'module',
|
|
globals: {
|
|
// Node.js globals
|
|
__dirname: 'readonly',
|
|
__filename: 'readonly',
|
|
exports: 'writable',
|
|
module: 'readonly',
|
|
require: 'readonly',
|
|
Buffer: 'readonly',
|
|
console: 'readonly',
|
|
global: 'readonly',
|
|
process: 'readonly',
|
|
setTimeout: 'readonly',
|
|
clearTimeout: 'readonly',
|
|
setInterval: 'readonly',
|
|
clearInterval: 'readonly',
|
|
setImmediate: 'readonly',
|
|
clearImmediate: 'readonly',
|
|
URL: 'readonly',
|
|
URLSearchParams: 'readonly',
|
|
|
|
// Jest globals
|
|
afterAll: 'readonly',
|
|
afterEach: 'readonly',
|
|
beforeAll: 'readonly',
|
|
beforeEach: 'readonly',
|
|
describe: 'readonly',
|
|
expect: 'readonly',
|
|
it: 'readonly',
|
|
jest: 'readonly',
|
|
test: 'readonly',
|
|
},
|
|
},
|
|
rules: {
|
|
'no-unused-vars': ['warn', { args: 'none', ignoreRestSiblings: true }],
|
|
'no-console': 'off',
|
|
'eqeqeq': ['error', 'always', { null: 'ignore' }],
|
|
},
|
|
},
|
|
{
|
|
ignores: ['node_modules/', 'dist/'],
|
|
},
|
|
];
|