feat: apply cumulative update to address various issues (#10324)
This commit is contained in:
78
.eslintrc.js
Normal file
78
.eslintrc.js
Normal file
@@ -0,0 +1,78 @@
|
||||
/**
|
||||
* @prettier
|
||||
*/
|
||||
const path = require("node:path")
|
||||
|
||||
module.exports = {
|
||||
parser: "@babel/eslint-parser",
|
||||
env: {
|
||||
browser: true,
|
||||
node: true,
|
||||
es6: true,
|
||||
jest: true,
|
||||
"jest/globals": true,
|
||||
},
|
||||
parserOptions: {
|
||||
ecmaFeatures: { jsx: true },
|
||||
babelOptions: { configFile: path.join(__dirname, "babel.config.js") },
|
||||
},
|
||||
extends: [
|
||||
"eslint:recommended",
|
||||
"plugin:react/recommended",
|
||||
"plugin:prettier/recommended",
|
||||
],
|
||||
plugins: ["react", "import", "jest", "prettier"],
|
||||
settings: {
|
||||
react: {
|
||||
pragma: "React",
|
||||
version: "15.0",
|
||||
},
|
||||
},
|
||||
rules: {
|
||||
semi: [2, "never"],
|
||||
strict: 0,
|
||||
quotes: [
|
||||
2,
|
||||
"double",
|
||||
{
|
||||
avoidEscape: true,
|
||||
allowTemplateLiterals: true,
|
||||
},
|
||||
],
|
||||
"no-unused-vars": 2,
|
||||
"no-multi-spaces": 1,
|
||||
camelcase: [
|
||||
"error",
|
||||
{
|
||||
allow: [
|
||||
"^UNSAFE_",
|
||||
"^requestSnippetGenerator_",
|
||||
"^JsonSchema_",
|
||||
"^curl_",
|
||||
"^dom_",
|
||||
"^api_",
|
||||
"^client_",
|
||||
"^grant_",
|
||||
"^code_",
|
||||
"^redirect_",
|
||||
"^spec",
|
||||
],
|
||||
},
|
||||
],
|
||||
"no-use-before-define": [2, "nofunc"],
|
||||
"no-underscore-dangle": 0,
|
||||
"no-unused-expressions": 1,
|
||||
"comma-dangle": 0,
|
||||
"no-console": [
|
||||
2,
|
||||
{
|
||||
allow: ["warn", "error"],
|
||||
},
|
||||
],
|
||||
"react/jsx-no-bind": 1,
|
||||
"react/jsx-no-target-blank": 2,
|
||||
"react/display-name": 0,
|
||||
"import/no-extraneous-dependencies": 2,
|
||||
"react/jsx-filename-extension": 2,
|
||||
},
|
||||
}
|
||||
Reference in New Issue
Block a user