-
Notifications
You must be signed in to change notification settings - Fork 0
/
.eslintrc.js
38 lines (37 loc) · 999 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
const eslintrc = {
extends: [
'airbnb',
'plugin:prettier/recommended',
'plugin:jest/recommended',
// https://www.npmjs.com/package/@typescript-eslint/eslint-plugin
'plugin:@typescript-eslint/recommended',
// https://github.com/benmosher/eslint-plugin-import
'plugin:import/errors',
'plugin:import/warnings',
'plugin:import/typescript',
'plugin:markdown/recommended',
'plugin:prettier/recommended',
],
env: {
node: true,
jasmine: true,
jest: true,
es6: true,
},
parser: '@typescript-eslint/parser',
plugins: ['@typescript-eslint', 'prettier', 'import', 'jest', 'markdown'],
// https://github.com/typescript-eslint/typescript-eslint/issues/46#issuecomment-470486034
overrides: [
{
files: ['*.ts', '*.tsx'],
rules: {
'@typescript-eslint/no-unused-vars': [2, { args: 'none' }],
},
},
],
rules: {
'no-console': 'off',
'import/extensions': 'off',
},
};
module.exports = eslintrc;