-
Notifications
You must be signed in to change notification settings - Fork 3
/
.eslintrc.js
41 lines (41 loc) · 1.58 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
35
36
37
38
39
40
41
module.exports = {
root: true,
parser: '@typescript-eslint/parser',
parserOptions: {
ecmaVersion: 2020, // allows for the parsing of modern ECMAScript features
sourceType: 'module', // allows for the use of imports
tsconfigRootDir: __dirname,
EXPERIMENTAL_useSourceOfProjectReferenceRedirect: true, // https://github.com/typescript-eslint/typescript-eslint/issues/2094
project: ['./tsconfig.json'],
},
rules: {
'prettier/prettier': 'error',
quotes: ['error', 'single', { avoidEscape: true }],
'@typescript-eslint/camelcase': 'off',
'no-unused-vars': 'off',
'@typescript-eslint/no-unused-vars': ['error'],
'import/no-extraneous-dependencies': 'off', // ['error', { devDependencies: true }],
'import/no-mutable-exports': 0,
'import/order': [
'error',
{
groups: [
['builtin', 'external', 'internal'],
['parent', 'sibling', 'index'],
],
'newlines-between': 'always',
},
],
'no-labels': 0,
'no-restricted-syntax': 0,
'@typescript-eslint/ban-ts-comment': 'off',
'no-nested-ternary': 0,
},
plugins: ['@typescript-eslint', 'import'],
extends: [
'airbnb-base',
'airbnb-typescript/base', // uses rules from AirBnb codestyle
'plugin:prettier/recommended', // enables eslint-plugin-prettier and eslint-config-prettier. This will display prettier errors as ESLint errors. Make sure this is always the last configuration in the extends array.
'plugin:@typescript-eslint/recommended', // Uses the recommended rules from the @typescript-eslint/eslint-plugin
],
};