1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
|
import js from '@eslint/js';
import eslintPluginPrettierRecommended from 'eslint-plugin-prettier/recommended';
import tseslint from 'typescript-eslint';
export default tseslint.config(
{ ignores: ['dist/**', 'demo/build/**', 'demo/dist/**'] },
js.configs.recommended,
...tseslint.configs.recommended,
eslintPluginPrettierRecommended,
{
files: ['**/*.ts'],
rules: {
'@typescript-eslint/explicit-function-return-type': 'off',
},
},
{
files: ['**/*.js'],
languageOptions: {
globals: {
__dirname: 'readonly',
module: 'readonly',
require: 'readonly',
},
},
},
);
|