forked from code-golf/code-golf
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.eslintrc.yml
29 lines (25 loc) · 1.12 KB
/
.eslintrc.yml
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
env: { browser: true }
parser: "@typescript-eslint/parser"
plugins: [ "@typescript-eslint" ]
parserOptions:
ecmaFeatures: { jsx: true }
ecmaVersion: latest
sourceType: module
rules:
array-bracket-newline: [ error, consistent ]
arrow-parens: [ error, as-needed ]
brace-style: [ error, stroustrup, { allowSingleLine: true } ]
camelcase: [ error ]
comma-dangle: [ error, always-multiline ]
indent: [ error ]
keyword-spacing: [ error ]
no-duplicate-imports: [ error ]
no-trailing-spaces: [ error ]
no-unused-vars: [ error, { varsIgnorePattern: ^createElement$ } ]
no-var: [ error ]
prefer-const: [ error ]
prefer-destructuring: [ error, { object: true } ]
quote-props: [ error, consistent-as-needed ]
quotes: [ error, single, { avoidEscape: true } ]
semi: [ error, always, { omitLastInOneLineBlock: true } ]
space-before-function-paren: [ error, { named: never } ]