forked from ruffle-rs/ruffle
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.eslintrc.yaml
31 lines (31 loc) · 863 Bytes
/
.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
root: true
env:
es2021: true
extends:
- eslint:recommended
- plugin:prettier/recommended
rules:
eqeqeq: error
no-unused-vars:
- error
- argsIgnorePattern: ^_
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 non-const enums, as they generate unnecessary code.
# Taken from https://github.com/typescript-eslint/typescript-eslint/issues/561#issuecomment-593059472.
no-restricted-syntax:
- error
- selector: 'TSEnumDeclaration:not([const=true])'
message: Don't declare non-const enums