-
Notifications
You must be signed in to change notification settings - Fork 1
/
.eslintrc.cjs
39 lines (39 loc) · 1016 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
module.exports = {
parser: '@typescript-eslint/parser',
plugins: ['@typescript-eslint', 'prettier'],
env: {
es6: true,
node: true,
},
extends: ['airbnb', 'plugin:@typescript-eslint/recommended'],
parserOptions: {
ecmaVersion: 2020,
sourceType: 'module',
},
ignorePatterns: [
'lib',
'src/commands/create/templates/**/*',
],
rules: {
indent: ['error', 2],
'max-len': ['error', 120],
'linebreak-style': ['error', 'unix'],
quotes: ['error', 'single'],
semi: ['error', 'always'],
'no-underscore-dangle': 'off',
'no-shadow': 'off',
'class-methods-use-this': 'off',
'@typescript-eslint/no-shadow': 'error',
'import/prefer-default-export': 'off',
'import/no-unresolved': 'off',
'import/no-extraneous-dependencies': 'off',
'import/extensions': 'off',
'import/order': [
'error',
{
groups: ['builtin', 'external', 'parent', 'sibling', 'index'],
'newlines-between': 'always',
},
],
},
};