File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Load Diff This file was deleted.
Original file line number Diff line number Diff line change 1+ import js from '@eslint/js'
2+ import globals from 'globals'
3+
4+ /** @type {import('eslint').Linter.RulesRecord } */
5+ const RULES = {
6+ 'comma-dangle' : [
7+ 'error' ,
8+ 'never'
9+ ] ,
10+ 'quotes' : [
11+ 'error' ,
12+ 'single'
13+ ] ,
14+ 'quote-props' : [
15+ 'error' ,
16+ 'always'
17+ ]
18+ } ;
19+
20+ /** @type {import('eslint').Linter.FlatConfig[] } */
21+ export default [
22+ // global ignores
23+ {
24+ 'ignores' : [
25+ 'bootstrap' ,
26+ 'node_modules/**'
27+ ]
28+ } ,
29+ {
30+ 'languageOptions' : {
31+ 'ecmaVersion' : 2022 ,
32+ 'sourceType' : 'script' ,
33+ 'globals' : {
34+ ...globals . node
35+ }
36+ } ,
37+ 'linterOptions' : {
38+ 'reportUnusedDisableDirectives' : 'error'
39+ }
40+ } ,
41+ js . configs . recommended ,
42+ {
43+ 'files' : [
44+ '**/*.js'
45+ ] ,
46+ 'rules' : {
47+ ...RULES
48+ }
49+ } ,
50+ {
51+ 'files' : [
52+ '**/*.mjs'
53+ ] ,
54+ 'languageOptions' : {
55+ 'sourceType' : 'module' ,
56+ 'globals' : {
57+ ...globals . nodeBuiltin
58+ }
59+ } ,
60+ 'rules' : {
61+ ...RULES
62+ }
63+ }
64+ ]
You can’t perform that action at this time.
0 commit comments