-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy path.eslintrc.cjs
30 lines (30 loc) · 947 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
/* eslint-disable no-undef */
module.exports = {
extends: ['eslint:recommended', 'plugin:@typescript-eslint/recommended'],
parser: '@typescript-eslint/parser',
plugins: ['@typescript-eslint'],
root: true,
ignorePatterns: ['node_modules', 'dist', 'build', 'postcss.config.js', 'tailwind.config.js'],
rules: {
'camelcase': 'warn',
'no-console': 'warn',
'no-var': 'error',
'prefer-const': 'warn',
'comma-spacing': 'warn',
'comma-style': 'warn',
'comma-dangle': 'warn',
'indent': ['warn', 2],
'jsx-quotes': ['warn', 'prefer-single'],
'max-len': ['warn', { code: 120 }],
'no-tabs': 'warn',
'no-trailing-spaces': 'warn',
'no-multi-spaces': 'warn',
'semi': ['error', 'always'],
'semi-style': ['warn', 'last'],
'@typescript-eslint/no-unused-vars': 'warn',
'no-alert': 'warn',
'no-empty': 'warn',
'no-empty-function': 'warn',
'eol-last': ['warn', 'always']
}
};