-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy path.eslintrc.js
More file actions
31 lines (31 loc) · 927 Bytes
/
Copy path.eslintrc.js
File metadata and controls
31 lines (31 loc) · 927 Bytes
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
module.exports = {
root: true,
parser: '@typescript-eslint/parser',
parserOptions: {
tsconfigRootDir: __dirname,
project: ['./tsconfig.json'],
},
plugins: ['@typescript-eslint'],
extends: [
'airbnb-typescript',
'plugin:import/recommended',
'plugin:import/typescript',
],
ignorePatterns: ['.eslintrc.js', '.eslintrc.js', 'webpack.*.js'],
rules: {
'react/jsx-filename-extension': [0],
'@typescript-eslint/lines-between-class-members': [
'error',
'always',
{ exceptAfterSingleLine: true },
],
'@typescript-eslint/explicit-function-return-type': ['error'],
'@typescript-eslint/type-annotation-spacing': ['error'],
'no-multi-spaces': ['error'],
'space-in-parens': ['error'],
'semi-spacing': ['error'],
'space-before-blocks': ['error'],
'key-spacing': ['error', { 'afterColon': true }],
'max-len': ['error', { 'code': 80 }],
},
};