Skip to content

Commit

Permalink
chore: update dev dependencies
Browse files Browse the repository at this point in the history
  • Loading branch information
tsvetomir committed Jan 1, 2025
1 parent ed25873 commit ca07eff
Show file tree
Hide file tree
Showing 5 changed files with 10,997 additions and 15,062 deletions.
22 changes: 0 additions & 22 deletions .eslintrc.yml

This file was deleted.

34 changes: 34 additions & 0 deletions eslint.config.mjs
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
import globals from 'globals';
import pluginJs from '@eslint/js';
import pluginJest from 'eslint-plugin-jest';

/** @type {import('eslint').Linter.Config[]} */
export default [
{
files: ['**/*.js', 'bin/xlf-translate'],
languageOptions: { sourceType: 'commonjs' },
rules: {
'indent': ['error', 4],
'linebreak-style': ['error', 'unix'],
'quotes': ['error', 'single'],
'semi': ['error', 'always'],
'no-console': 'off'
}
},
{
// update this to match your test files
files: ['**/*.spec.js', '**/*.test.js'],
plugins: { jest: pluginJest },
languageOptions: {
globals: pluginJest.environments.globals.globals,
},
rules: {
'jest/no-disabled-tests': 'warn',
'jest/no-focused-tests': 'error',
'jest/no-identical-title': 'error',
'jest/valid-expect': 'error',
},
},
{ languageOptions: { globals: globals.browser } },
pluginJs.configs.recommended,
];
Loading

0 comments on commit ca07eff

Please sign in to comment.