-
Notifications
You must be signed in to change notification settings - Fork 2
/
.eslintrc.js
63 lines (61 loc) · 1.9 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
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
// THIS FILE IS MANAGED BY AN AUTOMATED WORKFLOW
// Required packages:
// 'eslint-config-prettier'
// 'eslint-plugin-deprecation'
// 'eslint-plugin-import'
// 'eslint-plugin-jest'
// 'eslint-plugin-unused-imports'
// 'eslint'
// 'prettier-plugin-packagejson'
// 'prettier'
module.exports = {
env: {
browser: true,
commonjs: true,
es2021: true,
jest: true,
},
parserOptions: {
ecmaVersion: 'latest',
sourceType: 'module',
},
plugins: ['import', 'prettier'],
extends: ['plugin:prettier/recommended', 'eslint:recommended'],
root: true,
rules: {
quotes: ['error', 'single', { avoidEscape: true }],
'comma-dangle': ['error', 'always-multiline'],
'comma-spacing': ['error', { before: false, after: true }],
'no-multi-spaces': ['error', { ignoreEOLComments: false }],
'array-bracket-newline': ['error', 'consistent'],
'object-curly-spacing': ['error', 'always'],
'array-bracket-spacing': ['error', 'never'],
'object-curly-newline': ['error', { multiline: true, consistent: true }],
'object-property-newline': ['error', { allowAllPropertiesOnSameLine: true }],
'keyword-spacing': ['error'],
'brace-style': ['error', '1tbs', { allowSingleLine: true }],
'space-before-blocks': 'error',
curly: ['error', 'multi-line', 'consistent'],
'no-bitwise': ['error'],
'no-console': 0,
'no-trailing-spaces': ['error'],
'no-duplicate-imports': ['error'],
'no-shadow': 'off',
'no-use-before-define': 'off',
'import/order': 'error',
'prettier/prettier': 'error',
'max-classes-per-file': ['error', 3],
'no-underscore-dangle': 'off',
'lines-between-class-members': ['error', 'always', { exceptAfterSingleLine: true }],
},
ignorePatterns: [
'!**/*.eslintrc.js*',
'!**/*.prettierrc.js*',
'**/node_modules/**',
'**/dist/**',
'**/build/**',
'**/coverage/**',
'**/cdk.out/**',
'jest.setup.ts',
],
};