forked from projectfluent/fluent.js
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.eslintrc.yaml
48 lines (43 loc) · 1.14 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
45
46
47
48
root: true
env:
es6: true
parserOptions:
ecmaVersion: 2018
sourceType: module
overrides:
- files: ["*/src/*.js"]
extends:
- ./eslint-base.yaml
- prettier
- files: ["*/src/*.ts"]
parser: "@typescript-eslint/parser"
parserOptions:
project: ./fluent-*/tsconfig.json
extends:
- eslint:recommended
- ./eslint-base.yaml
- plugin:@typescript-eslint/recommended
- plugin:@typescript-eslint/recommended-requiring-type-checking
- prettier
rules:
complexity: off
prefer-const: off
no-undef: off
no-unused-vars: [error, args: none]
no-use-before-define: off
"@typescript-eslint/no-inferrable-types": off
"@typescript-eslint/no-unused-vars": [error, args: none]
"@typescript-eslint/no-use-before-define": off
"@typescript-eslint/explicit-function-return-type": error
- files: ["*/test/**"]
parserOptions:
ecmaVersion: 2020 # Required by import.meta
sourceType: module
env:
node: true
mocha: true
plugins:
- mocha
rules:
mocha/no-exclusive-tests: error
mocha/no-identical-title: error