forked from timdeschryver/eslint-plugin-ngrx
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.eslintrc.js
executable file
·25 lines (25 loc) · 857 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
module.exports = {
root: true,
parser: '@typescript-eslint/parser',
extends: [
'plugin:@typescript-eslint/eslint-recommended',
'plugin:@typescript-eslint/recommended',
'plugin:prettier/recommended',
],
plugins: ['internal-rules'],
parserOptions: {
ecmaVersion: 2018,
sourceType: 'module',
project: './tsconfig.eslint.json',
extraFileExtensions: ['.json'],
},
ignorePatterns: ['internal-rules/out/*.js', '.eslintrc.js'],
rules: {
'@typescript-eslint/consistent-type-imports': 'error',
'@typescript-eslint/explicit-module-boundary-types': 'off',
'@typescript-eslint/no-unnecessary-type-assertion': 'error',
'@typescript-eslint/no-unused-vars': ['error', { argsIgnorePattern: '^_' }],
'@typescript-eslint/prefer-reduce-type-parameter': 'error',
'internal-rules/first-rule': 'error',
},
}