-
Notifications
You must be signed in to change notification settings - Fork 1
/
.eslintrc.cjs
48 lines (46 loc) · 1002 Bytes
/
.eslintrc.cjs
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
35
36
37
38
39
40
41
42
43
44
45
46
47
48
const path = require('path');
/** @type {import("eslint").ESLint.ConfigData} */
module.exports = {
parser: '@typescript-eslint/parser',
parserOptions: {
sourceType: 'module',
ecmaVersion: 2020,
project: path.join(__dirname, 'tsconfig.eslint.json'),
},
plugins: [
'@typescript-eslint',
],
ignorePatterns: [
'node_modules',
'dist',
],
extends: [
'plugin:@typescript-eslint/recommended',
'airbnb-base',
'airbnb-typescript/base',
],
rules: {
'import/prefer-default-export': 0,
'no-param-reassign': 0,
'no-plusplus': 0,
'no-restricted-syntax': 0,
'import/extensions': 0,
'no-await-in-loop': 0,
'no-continue': 0,
'@typescript-eslint/no-loop-func': 0,
},
overrides: [
{
files: ['*.cjs'],
rules: {
'@typescript-eslint/no-var-requires': 0,
},
},
{
files: ['vite.config.ts', 'docs/**'],
rules: {
'import/no-extraneous-dependencies': 0,
},
},
],
};