Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions .github/workflows/nodejs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,9 @@ name: Node.js build

on:
push:
branches: [ main, live ]
branches: [ main ]
pull_request:
branches: [ main, live ]
branches: [ main ]
workflow_dispatch:

jobs:
Expand All @@ -17,7 +17,7 @@ jobs:

strategy:
matrix:
node-version: [ 18.x, 20.x ]
node-version: [ 20.x, 22.x, 24.x ]

steps:
- uses: actions/checkout@v3
Expand All @@ -42,7 +42,7 @@ jobs:

strategy:
matrix:
node-version: [ 18.x, 20.x ]
node-version: [ 20.x, 22.x, 24.x ]

steps:
- uses: actions/checkout@v3
Expand Down
71 changes: 32 additions & 39 deletions app-auth/graphapponlytutorial/eslint.config.js
Original file line number Diff line number Diff line change
@@ -1,49 +1,42 @@
// Copyright (c) Microsoft Corporation.
// Licensed under the MIT license.

import globals from 'globals';
import js from '@eslint/js';
import eslintPluginPrettier from 'eslint-plugin-prettier';
// cSpell:ignore ganchev

import { defineConfig } from 'eslint/config';

import eslintPrettierRecommended from 'eslint-plugin-prettier/recommended';
import header from 'eslint-plugin-header';
header.rules.header.meta.schema = false;
import header from '@tony.ganchev/eslint-plugin-header';

export default [
js.configs.recommended,
eslintPrettierRecommended,
{
languageOptions: {
globals: {
...globals.commonjs,
...globals.node,
},
export default defineConfig(eslintPrettierRecommended, {
files: ['**/**.js'],

ecmaVersion: 'latest',
sourceType: 'module',
},
languageOptions: {
ecmaVersion: 'latest',
sourceType: 'module',
},

plugins: {
header,
eslintPluginPrettier,
},
plugins: {
header,
},

rules: {
'header/header': [
'error',
'line',
[
' Copyright (c) Microsoft Corporation.',
' Licensed under the MIT license.',
],
],
'prettier/prettier': [
'error',
{
singleQuote: true,
endOfLine: 'auto',
printWidth: 80,
},
rules: {
'header/header': [
'error',
'line',
[
' Copyright (c) Microsoft Corporation.',
' Licensed under the MIT license.',
],
},
2,
],
'prettier/prettier': [
'error',
{
singleQuote: true,
endOfLine: 'auto',
printWidth: 80,
},
],
},
];
});
Loading
Loading