File tree Expand file tree Collapse file tree 5 files changed +844
-694
lines changed Expand file tree Collapse file tree 5 files changed +844
-694
lines changed Load Diff This file was deleted.
Original file line number Diff line number Diff line change 1+ import eslint from '@eslint/js' ;
2+ import { defineConfig } from 'eslint/config' ;
3+ import tseslint from 'typescript-eslint' ;
4+
5+ export default defineConfig ( [
6+ eslint . configs . recommended ,
7+ tseslint . configs . recommended ,
8+ {
9+ languageOptions : {
10+ globals : {
11+ es6 : true ,
12+ node : true
13+ } ,
14+ parserOptions : {
15+ ecmaVersion : 2021 ,
16+ sourceType : 'module'
17+ }
18+ } ,
19+ rules : {
20+ 'array-bracket-spacing' : [
21+ 2 ,
22+ 'never'
23+ ] ,
24+ 'block-scoped-var' : 2 ,
25+ 'brace-style' : [
26+ 2 ,
27+ '1tbs'
28+ ] ,
29+ 'camelcase' : 1 ,
30+ 'computed-property-spacing' : [
31+ 2 ,
32+ 'never'
33+ ] ,
34+ 'curly' : 2 ,
35+ 'eol-last' : 2 ,
36+ 'eqeqeq' : [
37+ 2 ,
38+ 'smart'
39+ ] ,
40+ 'max-depth' : [
41+ 1 ,
42+ 3
43+ ] ,
44+ 'new-cap' : 0 ,
45+ 'no-extend-native' : 2 ,
46+ 'no-mixed-spaces-and-tabs' : 2 ,
47+ 'no-trailing-spaces' : 2 ,
48+ 'no-unused-vars' : 0 ,
49+ 'no-use-before-define' : [
50+ 2 ,
51+ 'nofunc'
52+ ] ,
53+ 'object-curly-spacing' : [
54+ 2 ,
55+ 'never'
56+ ] ,
57+ 'quotes' : [
58+ 2 ,
59+ 'single' ,
60+ 'avoid-escape'
61+ ] ,
62+ 'semi' : [
63+ 2 ,
64+ 'always'
65+ ] ,
66+ 'keyword-spacing' : [
67+ 2 ,
68+ {
69+ 'before' : true ,
70+ 'after' : true
71+ }
72+ ] ,
73+ 'space-unary-ops' : 2
74+ }
75+ }
76+ ] ) ;
You can’t perform that action at this time.
0 commit comments