-
Notifications
You must be signed in to change notification settings - Fork 29
Expand file tree
/
Copy pathreact.js
More file actions
42 lines (39 loc) · 795 Bytes
/
react.js
File metadata and controls
42 lines (39 loc) · 795 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
// Copyright (c) Microsoft Corporation.
// Licensed under the MIT License.
"use strict";
const pluginReact = require("eslint-plugin-react");
module.exports = (pluginSdl) => {
return [
{
languageOptions: {
parserOptions: {
ecmaFeatures: {
jsx: true
}
}
}
},
{
plugins: {
react: pluginReact
},
rules: {
"react/no-danger": "error",
"react/jsx-no-target-blank": [
"error",
{
allowReferrer: false,
enforceDynamicLinks: "always",
warnOnSpreadAttributes: true
}
],
"react/iframe-missing-sandbox": "error"
}
},
{
plugins: {
"@microsoft/sdl": pluginSdl
}
}
];
};