-
Notifications
You must be signed in to change notification settings - Fork 8
/
Copy patheslint.config.mjs
34 lines (33 loc) · 1014 Bytes
/
eslint.config.mjs
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
27
28
29
30
31
32
33
34
import globals from 'globals';
import js from '@eslint/js';
import tsParser from '@typescript-eslint/parser';
import tsPlugin from '@typescript-eslint/eslint-plugin';
import babelPlugin from '@babel/eslint-plugin';
import ecomfeConfig from '@ecomfe/eslint-config';
import ecomfeConfigTs from '@ecomfe/eslint-config/typescript/index.js';
export default [
{
files: ['**/*.ts'],
languageOptions: {
parser: tsParser,
parserOptions: {
project: './tsconfig.json'
},
globals: {
...globals.node,
...globals.jest
}
},
plugins: {
'@typescript-eslint': tsPlugin,
'@babel': babelPlugin
},
rules: {
...ecomfeConfig.rules,
...ecomfeConfigTs.rules,
'@typescript-eslint/no-require-imports': 'off',
'@typescript-eslint/no-var-requires': 'off',
'no-unused-vars': 'off'
}
}
];