-
Notifications
You must be signed in to change notification settings - Fork 6
/
.eslintrc.js
30 lines (30 loc) · 1.12 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
module.exports = {
env: {
browser: true,
es2020: true,
node: true,
},
extends: ['eslint:recommended', 'plugin:@typescript-eslint/recommended', 'prettier'],
parser: '@typescript-eslint/parser',
parserOptions: {
ecmaVersion: 11,
},
plugins: ['@typescript-eslint', 'simple-import-sort', 'react-hooks'],
rules: {
'no-unused-vars': 'off',
'@typescript-eslint/no-unused-vars': ['error', { 'argsIgnorePattern': '^_' }],
'@typescript-eslint/consistent-type-definitions': ['error', 'type'],
'@typescript-eslint/ban-ts-comment': 1,
'@typescript-eslint/consistent-type-imports': ['error', { fixStyle: 'inline-type-imports' }],
'react-hooks/rules-of-hooks': 'error',
'simple-import-sort/exports': 'warn',
'simple-import-sort/imports': 'warn',
'no-duplicate-imports': 'error',
'eol-last': ['warn', 'always'],
'max-len': ['error', 120, 2, { ignoreStrings: true }],
'linebreak-style': ['warn', 'unix'],
quotes: ['error', 'single', { allowTemplateLiterals: true }],
semi: ['error'],
},
ignorePatterns: ['**/client/dist', '**/server/dist', '*.css', '*.scss', '*.json'],
};