forked from ruffle-rs/ruffle
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.eslintrc.yaml
44 lines (44 loc) · 1.05 KB
/
.eslintrc.yaml
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
42
43
44
root: true
env:
es2021: true
extends:
- eslint:recommended
- plugin:prettier/recommended
rules:
camelcase:
- error
- properties: never
allow:
- __webpack_public_path__
curly: error
eqeqeq: error
no-constructor-return: error
no-unused-vars:
- error
- argsIgnorePattern: ^_
prefer-const: error
spaced-comment:
- error
- always
- block:
balanced: true
overrides:
# TypeScript rules.
- files:
- '*.ts'
parser: '@typescript-eslint/parser'
plugins:
- '@typescript-eslint'
extends:
- plugin:@typescript-eslint/recommended
rules:
'@typescript-eslint/no-non-null-assertion': 'off'
'@typescript-eslint/no-unused-vars':
- error
- argsIgnorePattern: ^_
# Disallow const enums, as they can't be used by consumers.
# See https://www.typescriptlang.org/docs/handbook/enums.html#const-enum-pitfalls
no-restricted-syntax:
- error
- selector: 'TSEnumDeclaration[const=true]'
message: Don't declare const enums