-
Notifications
You must be signed in to change notification settings - Fork 2.8k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore(pr-deploy-site): migrate to flat config
- Loading branch information
1 parent
ab40067
commit 852d675
Showing
3 changed files
with
30 additions
and
22 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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', | ||
}, | ||
}, | ||
]; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters