generated from valkyrie-language/valkyrie-compiler
-
Notifications
You must be signed in to change notification settings - Fork 0
/
eslint.config.mjs
35 lines (34 loc) · 922 Bytes
/
eslint.config.mjs
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 js from '@eslint/js';
import globals from 'globals';
import * as TypeScriptParser from "@typescript-eslint/parser";
export default [
js.configs.recommended,
{
languageOptions: {
ecmaVersion: 2022,
sourceType: 'module',
globals: {
...globals.browser,
...globals.node,
},
parser: TypeScriptParser
},
},
{
files: ['**/*.ts', '**/*.tsx'],
rules: {
'quotes': ['error', 'single'],
'semi': ['error', 'always'],
'indent': ['error', 4],
'no-console': 'off',
'curly': ['error', 'multi-line'],
"no-unused-vars": "warn",
"quote-props": ["warn", "as-needed"],
"no-undef": "warn",
"implicit-arrow-linebreak": "off"
},
},
{
ignores: ['dist/**/*'],
},
];