File tree Expand file tree Collapse file tree 1 file changed +73
-0
lines changed Expand file tree Collapse file tree 1 file changed +73
-0
lines changed Original file line number Diff line number Diff line change 1+ import js from '@eslint/js' ;
2+ import importPlugin from 'eslint-plugin-import' ;
3+
4+ export default [
5+ js . configs . recommended ,
6+ importPlugin . flatConfigs . recommended ,
7+ {
8+ files : [ '**/*.js' ] ,
9+ languageOptions : {
10+ ecmaVersion : 13 ,
11+ sourceType : 'module' ,
12+ globals : {
13+ atom : true ,
14+ document : false ,
15+ escape : false ,
16+ navigator : false ,
17+ unescape : false ,
18+ window : false ,
19+ PACKAGE_VERSION : false ,
20+ // Node.js globals
21+ process : 'readonly' ,
22+ Buffer : 'readonly' ,
23+ __dirname : 'readonly' ,
24+ __filename : 'readonly' ,
25+ module : 'readonly' ,
26+ require : 'readonly' ,
27+ exports : 'readonly' ,
28+ global : 'readonly' ,
29+ console : 'readonly'
30+ }
31+ } ,
32+ settings : {
33+ 'import/resolver' : {
34+ webpack : {
35+ config : {
36+ resolve : {
37+ extensions : [ '.js' ]
38+ }
39+ }
40+ }
41+ }
42+ } ,
43+ rules : {
44+ 'curly' : [ 'warn' , 'all' ] ,
45+ 'linebreak-style' : [ 'error' , 'unix' ] ,
46+ 'no-console' : [
47+ 'error' ,
48+ {
49+ allow : [ 'warn' , 'error' , 'info' ]
50+ }
51+ ] ,
52+ 'prefer-const' : 'error' ,
53+ 'quotes' : [ 'error' , 'single' , 'avoid-escape' ] ,
54+ 'semi' : [ 'error' , 'always' ] ,
55+ 'sort-imports' : [
56+ 'warn' ,
57+ {
58+ ignoreCase : false ,
59+ ignoreMemberSort : false ,
60+ memberSyntaxSortOrder : [ 'none' , 'all' , 'multiple' , 'single' ]
61+ }
62+ ] ,
63+ 'no-useless-escape' : 'off' ,
64+ 'no-empty' : [
65+ 'warn' ,
66+ {
67+ allowEmptyCatch : true
68+ }
69+ ] ,
70+ 'require-atomic-updates' : 'off'
71+ }
72+ }
73+ ] ;
You can’t perform that action at this time.
0 commit comments