-
Notifications
You must be signed in to change notification settings - Fork 6
/
Copy path.eslintrc.cjs
30 lines (29 loc) · 885 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
/** @type {import("@types/eslint").Linter.Config} */
module.exports = {
root: true,
env: {
node: true,
},
parser: '@typescript-eslint/parser',
plugins: ['@typescript-eslint', 'prettier'],
extends: [
'plugin:@typescript-eslint/eslint-recommended',
// 'airbnb-base',
// 'airbnb-typescript/base',
'plugin:prettier/recommended',
'prettier',
],
rules: {
indent: ['error', 2, { SwitchCase: 1 }],
quotes: [2, 'single', { avoidEscape: true }],
'jsx-quotes': [2, 'prefer-double'],
semi: ['error', 'always'],
'linebreak-style': ['error', 'unix'],
'no-console': ['error', { allow: ['warn', 'error'] }],
'import/prefer-default-export': 0,
// "dot-notation": 0,
// "@typescript-eslint/dot-notation": 0,
'prettier/prettier': 'error',
},
ignorePatterns: ['.prettierrc.cjs', '.eslintrc.cjs', 'astro.config.mjs'],
};