Skip to content

Commit

Permalink
chore(pr-deploy-site): migrate to flat config
Browse files Browse the repository at this point in the history
  • Loading branch information
mainframev committed Dec 31, 2024
1 parent ab40067 commit 852d675
Show file tree
Hide file tree
Showing 3 changed files with 30 additions and 22 deletions.
21 changes: 0 additions & 21 deletions apps/pr-deploy-site/.eslintrc.json

This file was deleted.

29 changes: 29 additions & 0 deletions apps/pr-deploy-site/eslint.config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
const js = require('@eslint/js');
const sdl = require('@microsoft/eslint-plugin-sdl');
const es = require('eslint-plugin-es');
const { FlatCompat } = require('@eslint/eslintrc');

const compat = new FlatCompat({
baseDirectory: __dirname,
recommendedConfig: js.configs.recommended,
allConfig: js.configs.all,
});

module.exports = [
...compat.extends('plugin:@fluentui/eslint-plugin/node'),
...sdl.configs.recommended,
{
files: ['**/pr-deploy-site.js'],
plugins: {
es,
},

rules: {
curly: 'off',
'no-var': 'off',
'vars-on-top': 'off',
'prefer-arrow-callback': 'off',
'no-restricted-globals': 'off',
},
},
];
2 changes: 1 addition & 1 deletion apps/pr-deploy-site/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
"scripts": {
"clean": "just-scripts clean",
"generate:site": "just-scripts generate:site",
"lint": "ESLINT_USE_FLAT_CONFIG=false eslint --ext .js,.ts --cache .",
"lint": "eslint --cache .",
"type-check": "tsc -p . --noEmit"
},
"license": "MIT",
Expand Down

0 comments on commit 852d675

Please sign in to comment.