-
Notifications
You must be signed in to change notification settings - Fork 0
/
.eslintrc.js
34 lines (33 loc) · 1.08 KB
/
.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
/** @type { import('eslint').Linter.Config } */
const config = {
root: true,
parser: '@typescript-eslint/parser',
parserOptions: {
ecmaVersion: 'latest',
// necessary for some airbnb ts stuff
project: './tsconfig.json'
},
env: { es6: true },
plugins: ['@typescript-eslint'],
extends: [
'eslint:recommended',
'airbnb-base',
'airbnb-typescript/base',
'plugin:@typescript-eslint/eslint-recommended',
'plugin:@typescript-eslint/recommended',
],
rules: {
'max-len': ['error', { 'ignoreComments': true, code: 120 }],
'no-multiple-empty-lines': ['error', { max: 2, maxEOF: 0, maxBOF: 0 }],
'@typescript-eslint/type-annotation-spacing': ['error', { after: true }],
'space-in-parens': ['error', 'always'],
'import/prefer-default-export': 'off',
'arrow-parens': ['error', 'as-needed'],
'computed-property-spacing': ['error', 'always'],
'template-curly-spacing': ['error', 'always'],
'array-bracket-spacing': ['warn', 'always'],
'object-curly-newline': 'off',
}
};
// eslint-disable-next-line no-undef
module.exports = config;