-
Notifications
You must be signed in to change notification settings - Fork 9
/
.eslintrc.yml
53 lines (47 loc) · 1.14 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
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
# Library's global linting rules
env:
browser: true
es6: true
es2017: true
# Base rule sets
extends:
# Recommended sets list
- 'eslint:recommended'
- 'plugin:import/typescript'
- 'plugin:@typescript-eslint/recommended'
- 'plugin:@exadel/esl/default'
# Library base set
- './linting/codestyle.eslintrc.yml'
- './linting/coderules.eslintrc.yml'
- './linting/import.eslintrc.yml'
- './linting/sonarjs.eslintrc.yml'
- './linting/tests.eslintrc.yml'
- './linting/eslint.eslintrc.yml'
- './linting/site.eslintrc.yml'
# TS configuration
parser: '@typescript-eslint/parser'
parserOptions:
project:
- './tsconfig.json'
- './e2e/tsconfig.json'
- './site/tsconfig.json'
- './eslint/tsconfig.json'
sourceType: module
# Lint additional plugins
plugins:
- 'tsdoc'
- 'import'
- 'sonarjs'
- 'editorconfig'
- '@typescript-eslint'
- '@exadel/esl'
# Overall rules
rules:
# Enable TS Doc syntax check
'tsdoc/syntax': warn
# Enforce charset check
'editorconfig/charset': warn
# Enforce EOL for all files
'editorconfig/eol-last': warn
# Require no trailing spaces
'editorconfig/no-trailing-spaces': warn