-
Notifications
You must be signed in to change notification settings - Fork 1
/
.eslintrc.js
29 lines (29 loc) · 923 Bytes
/
.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
module.exports = {
env: {
node: true,
jest: true
},
parser: '@typescript-eslint/parser', // Specifies the ESLint parser
plugins: ['@typescript-eslint', 'prettierx'],
extends: [
'eslint:recommended',
'standard-with-typescript', // Uses the standard-js rules, typescript variant
'plugin:prettierx/standardx', // Uses standard-js formatting
'plugin:prettierx/@typescript-eslint' // Uses eslint-config-prettier to disable ESLint rules that would conflict with prettier
],
parserOptions: {
project: './tsconfig.json'
},
rules: {
// Override prettier options via .prettierrc.json
'prettierx/options': ['error', require('./.prettierrc.json')],
'@typescript-eslint/strict-boolean-expressions': 'off'
},
overrides: [
// Only apply TypeScript-specific rules to *.ts
{
files: ['**/*.ts'],
extends: ['plugin:@typescript-eslint/recommended']
}
]
}