Skip to content

Commit f1718db

Browse files
Revert unrelated formatting changes
1 parent 1be0a3c commit f1718db

File tree

1 file changed

+11
-17
lines changed

1 file changed

+11
-17
lines changed

eslint.config.js

+11-17
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
'use strict';
1+
"use strict";
22

33
const js = require('@eslint/js');
44
const n = require('eslint-plugin-n');
@@ -53,7 +53,7 @@ module.exports = [
5353
],
5454
languageOptions: {
5555
globals: globals.node,
56-
ecmaVersion: 2020
56+
ecmaVersion: 2020,
5757
}
5858
},
5959
{
@@ -81,8 +81,8 @@ module.exports = [
8181
{
8282
files: ['test/**/*.mjs'],
8383
languageOptions: {
84-
sourceType: 'module'
85-
}
84+
sourceType: "module"
85+
},
8686
},
8787
{
8888
files: ['bin/*', 'lib/**/*.js'],
@@ -119,39 +119,33 @@ module.exports = [
119119
}
120120
],
121121
'no-restricted-modules': ['error', 'timers'],
122-
'no-restricted-syntax': [
123-
'error',
122+
"no-restricted-syntax": ['error',
124123
// disallow `global.setTimeout()`, `global.setInterval()`, etc.
125124
{
126125
message: messages.gh237,
127-
selector:
128-
'CallExpression[callee.object.name=global][callee.property.name=/(set|clear)(Timeout|Immediate|Interval)/]'
126+
selector: 'CallExpression[callee.object.name=global][callee.property.name=/(set|clear)(Timeout|Immediate|Interval)/]'
129127
},
130128
// disallow `new global.Date()`
131129
{
132130
message: messages.gh237,
133-
selector:
134-
'NewExpression[callee.object.name=global][callee.property.name=Date]'
131+
selector: 'NewExpression[callee.object.name=global][callee.property.name=Date]'
135132
},
136133
// disallow property access of `global.<timer>.*`
137134
{
138135
message: messages.gh237,
139-
selector:
140-
'*[object.object.name=global][object.property.name=/(Date|(set|clear)(Timeout|Immediate|Interval))/]:expression'
136+
selector: '*[object.object.name=global][object.property.name=/(Date|(set|clear)(Timeout|Immediate|Interval))/]:expression'
141137
}
142138
]
143139
}
144140
},
145141
{
146142
files: ['lib/reporters/*.js'],
147143
rules: {
148-
'no-restricted-syntax': [
149-
'error',
144+
'no-restricted-syntax': ['error',
150145
// disallow Reporters using `console.log()`
151146
{
152147
message: messages.gh3604,
153-
selector:
154-
'CallExpression[callee.object.name=console][callee.property.name=log]'
148+
selector: 'CallExpression[callee.object.name=console][callee.property.name=log]'
155149
}
156150
]
157151
}
@@ -165,6 +159,6 @@ module.exports = [
165159
'test/integration/fixtures/**',
166160
'.karma/**',
167161
'mocha.js'
168-
]
162+
],
169163
}
170164
];

0 commit comments

Comments
 (0)