forked from r-webdev/webdev-support-bot
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.eslintrc.cjs
29 lines (27 loc) · 833 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
const { createConfig } = require('eslint-config-galex/dist/createConfig');
const { getDependencies } = require('eslint-config-galex/dist/getDependencies');
const {
createTypeScriptOverride,
} = require('eslint-config-galex/dist/overrides/typescript');
const tsOverride = createTypeScriptOverride({
...getDependencies(),
rules: {
'@typescript-eslint/no-floating-promises': 0,
'@typescript-eslint/no-misused-promises': 0,
},
});
module.exports = createConfig({
overrides: [tsOverride],
root: true,
rules: {
'no-empty': 0,
'no-void': 0,
// this shit isn't properly supported in TS or node, its too early
'unicorn/prefer-string-replace-all': 0,
'no-eq-null': 0,
eqeqeq: ['error', 'always', { null: 'ignore' }],
'no-bitwise': 0,
// stuff
'unicorn/import-index': 'off',
},
});