generated from emosheeep/cli-template
-
Notifications
You must be signed in to change notification settings - Fork 1
/
.eslintrc.cjs
40 lines (39 loc) · 1.02 KB
/
.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
40
const { defineConfig } = require('eslint-define-config');
module.exports = defineConfig({
env: {
es2023: true,
node: true,
},
plugins: ['prettier'],
extends: [
'standard',
'prettier',
'eslint:recommended',
'plugin:@typescript-eslint/recommended',
],
parserOptions: {
ecmaVersion: 'latest',
sourceType: 'module',
},
rules: {
semi: 'off',
'arrow-parens': ['error', 'always'],
'comma-dangle': 'off',
'n/no-callback-literal': 'off',
'space-before-function-paren': 'off',
'@typescript-eslint/no-var-requires': 'off',
'@typescript-eslint/no-explicit-any': 'off',
'@typescript-eslint/ban-ts-comment': 'off',
'@typescript-eslint/no-non-null-assertion': 'off',
'@typescript-eslint/semi': ['error', 'always'],
'@typescript-eslint/comma-dangle': ['error', 'always-multiline'],
'@typescript-eslint/space-before-function-paren': [
'error',
{
anonymous: 'never',
named: 'never',
asyncArrow: 'always',
},
],
},
});