-
Notifications
You must be signed in to change notification settings - Fork 1
/
.eslintrc.js
46 lines (46 loc) · 1.17 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
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
/* eslint-env node */
/** @type {import("eslint").Linter.Config} */
module.exports = {
env: {
browser: true,
es2021: true,
node: true
},
parser: '@typescript-eslint/parser',
extends: [
'standard-with-typescript',
'eslint:recommended',
'plugin:@typescript-eslint/recommended-type-checked',
'plugin:astro/recommended',
'plugin:react/recommended',
'plugin:sort/recommended'
],
plugins: ['react'],
ignorePatterns: ['./src/', '**/dist'],
parserOptions: {
project: ['tsconfig.eslint.json', 'apps/client/tsconfig.json', 'apps/server/tsconfig.json'],
tsConfigRootDir: __dirname,
sourceType: 'module',
ecmaVersion: 'latest'
},
rules: {
'@typescript-eslint/naming-convention': 'off',
'@typescript-eslint/explicit-function-return-type': 'off',
'sort/object-properties': 'off',
'react/react-in-jsx-scope': 'off',
'react/prop-types': 'off'
},
overrides: [
{
files: ['*.astro'],
parser: 'astro-eslint-parser',
parserOptions: {
parser: '@typescript-eslint/parser',
extraFileExtensions: ['.astro']
},
rules: {
'react/no-unknown-property': 'off'
}
}
]
}