-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy path.eslintrc.js
33 lines (33 loc) · 862 Bytes
/
.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
module.exports = {
env: {
commonjs: true,
es2021: true,
node: true,
},
extends: ['airbnb-base', 'airbnb-typescript/base', 'plugin:unicorn/recommended', 'prettier'],
plugins: ['simple-import-sort'],
parserOptions: {
project: './tsconfig.eslint.json',
ecmaVersion: 'latest',
},
rules: {
'no-template-curly-in-string': 'off',
'import/prefer-default-export': 'off',
'simple-import-sort/imports': 'error',
'simple-import-sort/exports': 'error',
'unicorn/prefer-module': 'off',
'unicorn/prevent-abbreviations': 'off',
'unicorn/no-array-reduce': 'off',
'unicorn/no-array-for-each': 'off',
'unicorn/no-array-callback-reference': 'off',
'unicorn/no-null': 'off',
},
overrides: [
{
files: ['src/**/*'],
rules: {
'unicorn/prefer-module': 'error',
},
},
],
};