-
Notifications
You must be signed in to change notification settings - Fork 3.4k
Expand file tree
/
Copy patheslint.config.ts
More file actions
49 lines (48 loc) · 1.33 KB
/
eslint.config.ts
File metadata and controls
49 lines (48 loc) · 1.33 KB
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
42
43
44
45
46
47
48
49
import { baseConfig, cliOverrides } from '@packages/eslint-config'
export default [
...baseConfig,
...cliOverrides,
{
languageOptions: {
parserOptions: {
tsconfigRootDir: __dirname,
},
},
},
{
rules: {
'@stylistic/comma-dangle': 'warn',
'@stylistic/comma-spacing': 'warn',
'@stylistic/type-generic-spacing': 'warn',
'@stylistic/quotes': 'warn',
'@stylistic/arrow-parens': 'warn',
'@stylistic/no-multi-spaces': 'warn',
'padding-line-between-statements': 'warn',
'@stylistic/space-unary-ops': 'warn',
'@stylistic/member-delimiter-style': 'warn',
'@stylistic/object-curly-spacing': 'warn',
'@stylistic/semi': 'warn',
'@stylistic/space-in-parens': 'warn',
'@stylistic/space-infix-ops': 'warn',
'@stylistic/template-tag-spacing': 'warn',
'no-var': 'warn',
'@stylistic/space-before-function-paren': ['warn', 'always'],
},
},
{
ignores: [
'**/__snapshots__',
'**/build/**/*',
'package.json',
'**/angular/**/*',
'**/angular-zoneless/**/*',
'**/react/**/*',
'**/vue/**/*',
'**/svelte/**/*',
'**/mount-utils/**/*',
'**/types/{bluebird,chai,chai-jquery,jquery,lodash,minimatch,mocha,sinon,sinon-chai}/**/*',
'.mocharc.js',
'**/*.js',
],
},
]