forked from JeremyHeleine/Photo-Sphere-Viewer
-
-
Notifications
You must be signed in to change notification settings - Fork 686
/
.eslintrc.js
26 lines (26 loc) · 1.04 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
module.exports = {
root: true,
extends: [
'eslint:recommended',
'plugin:@typescript-eslint/recommended',
'plugin:@typescript-eslint/stylistic',
],
parser: '@typescript-eslint/parser',
plugins: ['@typescript-eslint'],
rules: {
'@typescript-eslint/ban-ts-comment': 'off',
'@typescript-eslint/no-explicit-any': 'off',
'array-callback-return': 'error',
'eqeqeq': 'error',
'no-var': 'error',
'prefer-const': ['error', { destructuring: 'all' }],
'@typescript-eslint/no-duplicate-enum-values': 'error',
'@typescript-eslint/no-shadow': 'error',
'@typescript-eslint/prefer-for-of': 'error',
'@typescript-eslint/array-type': ['error', { default: 'array-simple' }],
'@typescript-eslint/consistent-type-definitions': ['error', 'type'],
'@typescript-eslint/class-literal-property-style': 'off',
'@typescript-eslint/no-unused-vars': ['error', { argsIgnorePattern: '^_' }]
},
ignorePatterns: ['**/dist/**/*', '*.js'],
};