-
Notifications
You must be signed in to change notification settings - Fork 5
Expand file tree
/
Copy patheslint.config.cjs
More file actions
37 lines (36 loc) · 965 Bytes
/
eslint.config.cjs
File metadata and controls
37 lines (36 loc) · 965 Bytes
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
const config = require('@silvermine/eslint-config'),
node = require('@silvermine/eslint-config/partials/node');
module.exports = [
{
ignores: [
'**/dist/**',
'**/dist-js/**',
'**/.cache/**',
'**/.temp/**',
'**/temp/**',
'**/api-iife.js',
'**/node_modules/**',
'**/target/**',
'**/permissions/autogenerated/**',
'**/*.config.js',
'**/*.d.ts',
'**/commitlint.config.cjs',
'vitest.config.ts',
'examples/**',
],
},
...config,
{ ...node },
{
files: [ '**/*.ts' ],
rules: {
'no-console': [ 'error', { allow: [ 'debug', 'info', 'warn', 'error', 'table' ] } ],
'@silvermine/eslint-plugin-silvermine/call-indentation': 'off',
},
languageOptions: {
parserOptions: {
project: [ 'tsconfig.src.json', 'tsconfig.test.json' ],
},
},
},
];