generated from d2phap/npm-package-template
-
-
Notifications
You must be signed in to change notification settings - Fork 1
/
.eslintrc.js
38 lines (38 loc) · 828 Bytes
/
.eslintrc.js
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
module.exports = {
root: true,
env: {
browser: true,
es2021: true,
},
extends: [
'airbnb-typescript',
],
parser: '@typescript-eslint/parser',
parserOptions: {
ecmaVersion: 12,
sourceType: 'module',
tsconfigRootDir: './',
project: 'tsconfig.json',
},
plugins: [
'import',
],
settings: {
// To kill annoyed React warning:
// https://github.com/DRD4-7R/eslint-config-7r-building/issues/1#issuecomment-714491844
react: {
version: '999.999.999',
},
},
rules: {
'no-multiple-empty-lines': ['error', {
max: 2,
maxEOF: 1,
maxBOF: 1,
}],
'@typescript-eslint/lines-between-class-members': 'off',
'@typescript-eslint/no-unused-vars': 'warn',
'@typescript-eslint/brace-style': 'off',
'linebreak-style': 'off',
},
};