-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy patheslint.config.js
28 lines (27 loc) · 1009 Bytes
/
eslint.config.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
const love = require('eslint-config-love')
module.exports = [{
...love,
languageOptions: {
...love.languageOptions,
parserOptions: {
...love.languageOptions.parserOptions,
project: './tsconfig.eslint.json'
},
},
files: ['src/**/*.ts', 'test/**/*.ts'],
rules: {
...love.rules,
"@typescript-eslint/array-type": "off",
'@typescript-eslint/class-methods-use-this': 'off',
"@typescript-eslint/consistent-type-assertions": ["error", { "assertionStyle": "as" }],
"@typescript-eslint/explicit-function-return-type": "off",
'@typescript-eslint/no-explicit-any': 'off',
"@typescript-eslint/no-non-null-assertion": "off",
"@typescript-eslint/no-unused-vars": "off", // typescript does this better
"@typescript-eslint/prefer-readonly": "off",
"@typescript-eslint/return-await": ["error", "always"],
"@typescript-eslint/strict-boolean-expressions": "off",
// just for this project
'@typescript-eslint/no-unsafe-argument': 'off'
}
}]