-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy path.eslintrc.js
41 lines (41 loc) · 1.36 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 = {
parser: '@typescript-eslint/parser', // Specifies the ESLint parser
parserOptions: {
ecmaVersion: 'latest',
sourceType: 'module' // Allows for the use of imports
},
extends: [
'plugin:@typescript-eslint/recommended', // Uses the recommended rules from the @typescript-eslint/eslint-plugin
'prettier', // Uses eslint-config-prettier to disable ESLint rules from @typescript-eslint/eslint-plugin that would conflict with prettier
'plugin:prettier/recommended',
'plugin:unicorn/recommended'
],
plugins: ['prettier', 'unicorn'],
rules: {
'@typescript-eslint/no-non-null-assertion': 'off',
'@typescript-eslint/no-unused-vars': 'error',
'@typescript-eslint/no-var-requires': 'off',
'@typescript-eslint/no-explicit-any': 'off',
'@typescript-eslint/ban-ts-comment': 'off',
'@typescript-eslint/explicit-module-boundary-types': [
'error',
{
allowArgumentsExplicitlyTypedAsAny: true
}
],
quotes: ['error', 'single'],
'object-curly-spacing': 'off',
'@typescript-eslint/object-curly-spacing': ['error', 'always'],
'unicorn/no-array-reduce': 'off',
'unicorn/no-process-exit': 'off'
},
overrides: [
{
files: ['test/**/*.spec.ts', 'scripts/**/*.ts'],
rules: {
'unicorn/filename-case': 'off'
}
}
],
ignorePatterns: ['.eslintrc.js']
}