Some checks failed
Node.js CI / build (push) Failing after 2s
Node.js CI / e2e-tests (+(a11y|security|bugs)/**/*cy.js) (push) Failing after 2s
Node.js CI / e2e-tests (features/**/!(o|d|m)*.cy.js) (push) Failing after 2s
Node.js CI / e2e-tests (features/**/+(o|d)*.cy.js) (push) Failing after 2s
Node.js CI / e2e-tests (features/**/m*.cy.js) (push) Failing after 2s
Security scan for docker image / build (push) Failing after 8s
CodeQL / Analyze (javascript) (push) Failing after 1m10s
79 lines
1.5 KiB
JavaScript
Executable File
79 lines
1.5 KiB
JavaScript
Executable File
/**
|
|
* @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,
|
|
},
|
|
}
|