@@ -55,7 +55,7 @@ function parseOption(
5555 }
5656 | string ,
5757 context : RuleContext ,
58- filename : string
58+ filename : string ,
5959) : Validator | null {
6060 if ( typeof option === "string" ) {
6161 return schemaPathToValidator ( option , context ) ;
@@ -127,7 +127,7 @@ function parseOption(
127127 */
128128function schemaPathToValidator (
129129 schemaPath : string ,
130- context : RuleContext
130+ context : RuleContext ,
131131) : Validator | null {
132132 const schema = loadSchema ( schemaPath , context ) ;
133133 if ( ! schema ) {
@@ -141,7 +141,7 @@ function schemaPathToValidator(
141141 */
142142function schemaObjectToValidator (
143143 schema : SchemaObject | null ,
144- context : RuleContext
144+ context : RuleContext ,
145145) : Validator | null {
146146 if ( ! schema ) {
147147 return null ;
@@ -228,7 +228,7 @@ export default createRule("no-invalid", {
228228 const v = parseOption (
229229 context . options [ 0 ] || { } ,
230230 context ,
231- filename . startsWith ( cwd ) ? path . relative ( cwd , filename ) : filename
231+ filename . startsWith ( cwd ) ? path . relative ( cwd , filename ) : filename ,
232232 ) ;
233233 if ( ! v ) {
234234 return { } ;
@@ -244,7 +244,7 @@ export default createRule("no-invalid", {
244244 */
245245 function validateData (
246246 data : unknown ,
247- resolveLoc : ( error : ValidateError ) => JSONAST . SourceLocation | null
247+ resolveLoc : ( error : ValidateError ) => JSONAST . SourceLocation | null ,
248248 ) {
249249 const errors = validator ! ( data ) ;
250250 for ( const error of errors ) {
@@ -267,7 +267,7 @@ export default createRule("no-invalid", {
267267 */
268268 function validateJSExport (
269269 node : ESLintExpression ,
270- rootRange : [ number , number ]
270+ rootRange : [ number , number ] ,
271271 ) {
272272 if ( existsExports ) {
273273 return ;
@@ -371,7 +371,7 @@ export default createRule("no-invalid", {
371371 * ErrorData to report location.
372372 */
373373 function errorDataToLoc (
374- errorData : NodeData < JSONAST . JSONNode | YAML . YAMLNode | TOML . TOMLNode >
374+ errorData : NodeData < JSONAST . JSONNode | YAML . YAMLNode | TOML . TOMLNode > ,
375375 ) {
376376 if ( errorData . key ) {
377377 const range = errorData . key ( sourceCode ) ;
@@ -439,9 +439,9 @@ export default createRule("no-invalid", {
439439 path . dirname (
440440 typeof context . getPhysicalFilename === "function"
441441 ? context . getPhysicalFilename ( )
442- : getPhysicalFilename ( context . getFilename ( ) )
442+ : getPhysicalFilename ( context . getFilename ( ) ) ,
443443 ) ,
444- $schema
444+ $schema ,
445445 )
446446 : $schema
447447 : null ;
0 commit comments