mirror of
https://github.com/yuezk/GlobalProtect-openconnect.git
synced 2025-04-02 18:31:50 -04:00
37 lines
766 B
JavaScript
37 lines
766 B
JavaScript
module.exports = {
|
|
env: {
|
|
browser: true,
|
|
es2021: true,
|
|
},
|
|
extends: [
|
|
"eslint:recommended",
|
|
"plugin:@typescript-eslint/recommended",
|
|
"plugin:react/recommended",
|
|
"plugin:react/jsx-runtime",
|
|
"plugin:react-hooks/recommended",
|
|
"prettier",
|
|
],
|
|
overrides: [
|
|
{
|
|
env: {
|
|
node: true,
|
|
},
|
|
files: [".eslintrc.{js,cjs}"],
|
|
parserOptions: {
|
|
sourceType: "script",
|
|
},
|
|
},
|
|
],
|
|
parser: "@typescript-eslint/parser",
|
|
parserOptions: {
|
|
ecmaVersion: "latest",
|
|
sourceType: "module",
|
|
},
|
|
plugins: ["@typescript-eslint", "react"],
|
|
rules: {
|
|
"react-hooks/rules-of-hooks": "error",
|
|
"react-hooks/exhaustive-deps": "error",
|
|
"@typescript-eslint/no-unused-vars": "warn",
|
|
},
|
|
};
|