-
-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy patheslint.config.js
More file actions
37 lines (35 loc) · 848 Bytes
/
Copy patheslint.config.js
File metadata and controls
37 lines (35 loc) · 848 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 { defineConfig, globalIgnores } from 'eslint/config';
import pluginJs from '@eslint/js';
import pluginNode from 'eslint-plugin-n';
import configPrettier from 'eslint-config-prettier';
import globals from 'globals';
export default defineConfig([
pluginJs.configs.recommended,
pluginNode.configs['flat/recommended-script'],
globalIgnores([
'**/.idea',
'**/.vscode',
'**/node_modules',
'**/dist',
'**/package-lock.json'
]),
{
files: ['**/*.{js,mjs,cjs,ts}'],
languageOptions: {
ecmaVersion: 'latest',
sourceType: 'module',
globals: {
...globals.node
}
},
rules: {
eqeqeq: 'error',
"no-undef": 0,
"no-throw-literal": 0,
"no-unused-expressions": 1,
"no-unused-vars": 1,
"class-methods-use-this": 1
}
},
configPrettier
]);