forked from Kunstmaan/snipsonian
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.eslintrc.js
32 lines (30 loc) · 1.08 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
const OFF = 'off';
const ERROR = 'error';
// const WARN = 'warn';
module.exports = {
parser: '@typescript-eslint/parser', // Specifies the ESLint parser
plugins: ['@typescript-eslint'],
extends: [
'./node_modules/@kunstmaan/eslint-typescript-config/index.js',
],
env: {
jest: true,
},
parserOptions: {
ecmaVersion: 2018, // Allows for the parsing of modern ECMAScript features
sourceType: 'module', // Allows for the use of imports
},
globals: {
window: 'readonly',
document: 'readonly',
navigator: 'readonly'
},
rules: {
'implicit-arrow-linebreak': [OFF],
'function-paren-newline': [ERROR, 'consistent'],
'@typescript-eslint/explicit-function-return-type': [ERROR, { allowExpressions: true }],
'@typescript-eslint/interface-name-prefix': [ERROR, 'always'],
'@typescript-eslint/no-object-literal-type-assertion': [ERROR, { allowAsParameter: true }],
'@typescript-eslint/no-use-before-define': [ERROR, { functions: false, classes: true }],
}
};