-
Notifications
You must be signed in to change notification settings - Fork 0
/
.eslintrc.cjs
32 lines (31 loc) · 927 Bytes
/
.eslintrc.cjs
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
/* eslint-env node */
module.exports = {
plugins: ['@typescript-eslint'],
extends: [
'eslint:recommended',
'plugin:@typescript-eslint/recommended',
'plugin:@typescript-eslint/recommended-type-checked',
'plugin:@typescript-eslint/strict',
'plugin:@typescript-eslint/strict-type-checked',
'prettier',
],
env: {
'browser': true,
'es2021': true,
},
parser: '@typescript-eslint/parser',
parserOptions: {
'project': './tsconfig.json',
'ecmaVersion': 12,
'sourceType': 'module',
},
rules: {
'linebreak-style': ['error', 'unix'],
'no-prototype-builtins': 0,
'@typescript-eslint/no-unused-vars': ['error', { 'argsIgnorePattern': '^_' }],
'@typescript-eslint/no-non-null-assertion': 0,
'@typescript-eslint/restrict-template-expressions': ['error', { allowNumber: true }],
},
root: true,
ignorePatterns: ['build.ts', 'dist/', 'docs/', 'types/'],
};