-
Notifications
You must be signed in to change notification settings - Fork 5
/
eslint.config.js
39 lines (38 loc) · 1.33 KB
/
eslint.config.js
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
const { FlatCompat } = require('@eslint/eslintrc');
const compat = new FlatCompat();
module.exports = [
{
languageOptions: {
parser: '@typescript-eslint/parser',
ecmaVersion: 2015, // Allows for the parsing of modern ECMAScript features
sourceType: 'module', // Allows for the use of imports
},
plugins: {
'@typescript-eslint': require('@typescript-eslint/eslint-plugin'),
prettier: require('eslint-plugin-prettier'),
import: require('eslint-plugin-import'),
'prefer-arrow': require('eslint-plugin-prefer-arrow'),
},
},
...compat.extends('plugin:@typescript-eslint/recommended'),
...compat.extends('plugin:prettier/recommended'),
{
rules: {
'no-bitwise': 'off',
'@typescript-eslint/no-empty': 'off',
'@typescript-eslint/no-empty-function': 'off',
'@typescript-eslint/no-unused-vars': 'off',
'@typescript-eslint/no-explicit-any': 'off',
'@typescript-eslint/explicit-module-boundary-types': 'off',
'@typescript-eslint/ban-ts-comment': 'off',
'@typescript-eslint/no-var-requires': 'off',
'prefer-rest-params': 'off',
'sort-keys': 'off',
'no-this-alias': 'off',
'import/no-default-export': 'error',
'one-variable-per-declaration': 'off',
'prefer-object-spread': 'off',
'prefer-spread': 'off',
},
},
];