-
Notifications
You must be signed in to change notification settings - Fork 5
Expand file tree
/
Copy patheslint.config.mjs
More file actions
41 lines (39 loc) · 878 Bytes
/
eslint.config.mjs
File metadata and controls
41 lines (39 loc) · 878 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
38
39
40
41
// eslint.config.mjs
// https://github.com/eslint/eslint/issues/17400
//import js from '@eslint/js';
import html from '@html-eslint/eslint-plugin';
import parser from '@html-eslint/parser';
export default [
{
rules: {
'semi': 'error',
'prefer-const': 'error',
'no-var': 'error',
'indent': ['error', 2],
'quotes': ['error', 'single'],
'no-unused-vars': 'warn',
'space-in-parens': ['error', 'never'],
},
},
{
ignores: [
'**/node_modules/**',
'libs/**/*',
'basketball/CannonDebugRenderer.js',
],
},
{
files: ['**/*.html'],
plugins: {
'@html-eslint': html,
},
languageOptions: {
parser,
},
rules: {
'@html-eslint/indent': ['error', 2],
'@html-eslint/require-doctype': 'error',
//'@html-eslint/require-closing-tags': 'error',
},
},
];