Skip to content

Commit

Permalink
Merge pull request #12 from basics/feature/mocha
Browse files Browse the repository at this point in the history
Feature/mocha
  • Loading branch information
StephanGerbeth authored Sep 15, 2024
2 parents 105df62 + 9a7987b commit 086a7cb
Show file tree
Hide file tree
Showing 17 changed files with 2,294 additions and 189 deletions.
3 changes: 0 additions & 3 deletions .husky/pre-commit
Original file line number Diff line number Diff line change
@@ -1,6 +1,3 @@
#!/bin/sh
. "$(dirname "$0")/_/husky.sh"

export NVM_DIR="$HOME/.nvm"
[ -s "$NVM_DIR/nvm.sh" ] && \. "$NVM_DIR/nvm.sh"

Expand Down
8 changes: 5 additions & 3 deletions eslint.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,23 +2,25 @@ import js from '@eslint/js';
import globals from 'globals';
import eslintPluginPrettierRecommended from 'eslint-plugin-prettier/recommended';
import eslintPluginSecurity from 'eslint-plugin-security';
import eslintPluginMocha from 'eslint-plugin-mocha';
import eslintPluginVitest from 'eslint-plugin-vitest';
import eslintIgnores from './eslint.ignores.js';

export default [
eslintPluginSecurity.configs.recommended,
eslintPluginPrettierRecommended,
eslintPluginMocha.configs.flat.recommended,
js.configs.recommended,
{
files: ['**/*.js'],
ignores: eslintIgnores,
languageOptions: {
globals: {
...globals.browser,
myCustomGlobal: 'readonly'
expect: 'readonly'
}
},
plugins: {
eslintPluginVitest
},
rules: {
'block-spacing': 'error',
complexity: ['error', { max: 7 }],
Expand Down
Loading

0 comments on commit 086a7cb

Please sign in to comment.