generated from vladcosorg/template-ts
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.eslintrc.cjs
32 lines (32 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
31
32
// @ts-check
const { defineConfig } = require('eslint-define-config')
module.exports = defineConfig({
extends: ['./node_modules/chetzof-lint-config/eslint/index.js'],
overrides: [
{
files: ['src/index.ts', 'src/commands/**/*.ts'],
rules: {
'import/no-default-export': 'off',
'import/no-unused-modules': 'off',
},
},
{
files: ['*.ts', '*.js'],
rules: {
'unused-imports/no-unused-imports':
process.env.NODE_ENV === 'production' ? 'error' : 'off',
'no-console': 'off',
'no-process-exit': 'off',
'unicorn/no-process-exit': 'off',
'@typescript-eslint/no-inferrable-types': [
'error',
{ ignoreParameters: true },
],
},
parser: '@typescript-eslint/parser',
parserOptions: {
project: './tsconfig.json',
},
},
],
})