forked from TaskTrial/server
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy patheslint.config.mjs
More file actions
37 lines (36 loc) · 970 Bytes
/
eslint.config.mjs
File metadata and controls
37 lines (36 loc) · 970 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
import globals from 'globals';
import pluginJs from '@eslint/js';
/** @type {import('eslint').Linter.Config[]} */
export default [
{ languageOptions: { globals: globals.browser } },
pluginJs.configs.recommended,
{
/**
* "off" or 0 - turn the rule off
* "warn" or 1 - turn the rule on as a warning (doesn't affect exit code)
* "error" or 2 - turn the rule on as an error (exit code is 1 when triggered)
*/
ignores: [
'**/*.config.js',
'**/eslint.config.js',
'prisma/**',
'prisma/generated/**',
'prisma/generated/prisma-client-js/**',
'jest.config.js',
'node_modules/**',
'dist/**',
'public/**',
],
rules: {
semi: 'error',
'no-unused-vars': 'warn',
'no-console': 'warn',
'no-const-assign': 'error',
curly: 'warn',
eqeqeq: 'error',
'no-var': 'error',
'prefer-const': 'error',
'no-case-declarations': 'off',
},
},
];