-
Notifications
You must be signed in to change notification settings - Fork 0
/
.eslintrc.cjs
31 lines (31 loc) · 1000 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
module.exports = {
env: {
node: true,
browser: true,
},
extends: ['airbnb', 'airbnb-typescript', 'plugin:prettier/recommended'],
ignorePatterns: ['!.*', 'cdk.out', '**/assets/*-min.js'],
parser: '@typescript-eslint/parser',
parserOptions: {
ecmaVersion: 'latest',
sourceType: 'module',
project: 'tsconfig.json',
},
plugins: ['simple-import-sort', 'prettier', 'import', 'unused-imports', 'ejs-js'],
root: true,
rules: {
'@typescript-eslint/no-non-null-assertion': 'error',
'@typescript-eslint/no-use-before-define': ['error', { functions: false }],
'import/prefer-default-export': 'off',
'import/no-extraneous-dependencies': ['error', { devDependencies: true }],
'simple-import-sort/exports': 'warn',
'simple-import-sort/imports': 'warn',
'unused-imports/no-unused-imports': 'warn',
'no-console': 'off',
'no-var': 'off',
'vars-on-top': 'off',
'no-plusplus': 'off',
'no-new': 'off',
'no-alert': 'off',
},
};