openvibers/openvibe.games eslint.config.js

eslint.config.js

main 637 B · 29 lines · javascript

1import js from '@eslint/js'
2import tseslint from 'typescript-eslint'
3
4export default tseslint.config(
5 {
6 ignores: [
7 '**/dist/**',
8 '**/dist-types/**',
9 '**/node_modules/**',
10 'scratch/**',
11 '**/*.js',
12 '!eslint.config.js',
13 ],
14 },
15 js.configs.recommended,
16 ...tseslint.configs.recommended,
17 {
18 rules: {
19 '@typescript-eslint/no-explicit-any': 'error',
20 '@typescript-eslint/no-unused-vars': [
21 'error',
22 { argsIgnorePattern: '^_', varsIgnorePattern: '^_' },
23 ],
24 '@typescript-eslint/consistent-type-imports': 'error',
25 'no-console': 'off',
26 },
27 },
28)
29