forked from ilios/lti-server
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy patheslint.config.js
35 lines (34 loc) · 918 Bytes
/
eslint.config.js
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
import globals from 'globals';
import js from '@eslint/js';
import stylisticJs from '@stylistic/eslint-plugin-js';
import nodePlugin from 'eslint-plugin-n';
import mochaPlugin from 'eslint-plugin-mocha';
import eslintPluginYml from 'eslint-plugin-yml';
export default [
js.configs.recommended,
...eslintPluginYml.configs['flat/recommended'],
mochaPlugin.configs.flat.recommended,
{
languageOptions: {
ecmaVersion: 2020,
sourceType: 'module',
globals: {
...globals.node,
},
},
plugins: {
n: nodePlugin,
s: stylisticJs,
},
rules: {
'no-console': 'off',
'prefer-const': 'error',
's/comma-dangle': ['error', 'only-multiline'],
's/comma-spacing': 'error',
's/indent': ['error', 2],
's/quotes': ['error', 'single', { avoidEscape: true }],
's/semi': 'error',
'strict': ['error', 'global']
},
},
];