-
Notifications
You must be signed in to change notification settings - Fork 76
/
.eslintrc.js
30 lines (30 loc) · 1006 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
26
27
28
29
30
module.exports = {
env: {
browser: true,
es6: true,
node: true,
jasmine: true,
},
extends: [
'eslint:recommended',
'plugin:@typescript-eslint/eslint-recommended',
'plugin:@typescript-eslint/recommended',
'prettier',
],
parser: '@typescript-eslint/parser',
parserOptions: {
project: 'tsconfig.json',
sourceType: 'module',
},
ignorePatterns: ['**/*.css.ts'],
plugins: ['@typescript-eslint', 'jasmine'],
// Only adding rules that override the defaults or enforce new standards
rules: {
'curly': 'error',
'@typescript-eslint/no-explicit-any': 'off', // Would LOVE to turn this on
'@typescript-eslint/no-unused-vars': 'off', // TypeScript is catching this
'@typescript-eslint/no-use-before-define': 'off', // Lots of complaints in tests.
'jasmine/no-focused-tests': 'error', // Prevent focused tests
'no-irregular-whitespace': ['error', { skipTemplates: true }], // Turn of whitespace checking inside of `` templates
},
};