forked from Glowstudent777/YouVersion-API
-
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.eslintrc.js
45 lines (45 loc) · 1.38 KB
/
.eslintrc.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
40
41
42
43
44
45
module.exports = {
env: {
node: true,
commonjs: true,
es2021: true,
},
extends: ['eslint:recommended', 'plugin:@typescript-eslint/eslint-recommended', 'plugin:@typescript-eslint/recommended', 'prettier'],
parser: '@typescript-eslint/parser',
plugins: ['@typescript-eslint', 'prettier', 'simple-import-sort', 'unused-imports'],
rules: {
'prettier/prettier': [
'error',
{
bracketSpacing: false,
trailingComma: 'all',
arrowParens: 'always',
printWidth: 140,
},
],
indent: 'off',
'linebreak-style': ['error', 'unix'],
quotes: ['error', 'single', {avoidEscape: true}],
semi: ['error', 'always'],
'@typescript-eslint/no-empty-interface': 'warn',
'no-duplicate-imports': 'off',
'simple-import-sort/imports': 'error',
'simple-import-sort/exports': 'error',
'no-unused-vars': 'off',
'@typescript-eslint/no-unused-vars': 'off',
'unused-imports/no-unused-imports': 'error',
'unused-imports/no-unused-vars': [
'error',
{
vars: 'all',
varsIgnorePattern: '^_',
args: 'after-used',
argsIgnorePattern: '^_',
},
],
'no-console': ['error', {allow: ['log', 'warn', 'error', 'table']}],
'no-use-before-define': 'off',
'@typescript-eslint/no-use-before-define': ['error', {functions: false}],
'eol-last': ['error', 'always'],
},
};