Skip to content

Commit 852d675

Browse files
committed
chore(pr-deploy-site): migrate to flat config
1 parent ab40067 commit 852d675

File tree

3 files changed

+30
-22
lines changed

3 files changed

+30
-22
lines changed

apps/pr-deploy-site/.eslintrc.json

-21
This file was deleted.

apps/pr-deploy-site/eslint.config.js

+29
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
const js = require('@eslint/js');
2+
const sdl = require('@microsoft/eslint-plugin-sdl');
3+
const es = require('eslint-plugin-es');
4+
const { FlatCompat } = require('@eslint/eslintrc');
5+
6+
const compat = new FlatCompat({
7+
baseDirectory: __dirname,
8+
recommendedConfig: js.configs.recommended,
9+
allConfig: js.configs.all,
10+
});
11+
12+
module.exports = [
13+
...compat.extends('plugin:@fluentui/eslint-plugin/node'),
14+
...sdl.configs.recommended,
15+
{
16+
files: ['**/pr-deploy-site.js'],
17+
plugins: {
18+
es,
19+
},
20+
21+
rules: {
22+
curly: 'off',
23+
'no-var': 'off',
24+
'vars-on-top': 'off',
25+
'prefer-arrow-callback': 'off',
26+
'no-restricted-globals': 'off',
27+
},
28+
},
29+
];

apps/pr-deploy-site/package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
"scripts": {
88
"clean": "just-scripts clean",
99
"generate:site": "just-scripts generate:site",
10-
"lint": "ESLINT_USE_FLAT_CONFIG=false eslint --ext .js,.ts --cache .",
10+
"lint": "eslint --cache .",
1111
"type-check": "tsc -p . --noEmit"
1212
},
1313
"license": "MIT",

0 commit comments

Comments
 (0)