"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "packages/hoppscotch-app/.eslintrc.js" between
hoppscotch-2.2.1.tar.gz and hoppscotch-3.0.0.tar.gz

About: Hoppscotch is a light-weight, web based API development suite.

.eslintrc.js  (hoppscotch-2.2.1):.eslintrc.js  (hoppscotch-3.0.0)
/* eslint-env node */
require("@rushstack/eslint-patch/modern-module-resolution")
module.exports = { module.exports = {
root: true, root: true,
env: { env: {
browser: true, browser: true,
node: true, node: true,
jest: true, jest: true,
}, },
parserOptions: { parserOptions: {
sourceType: "module", sourceType: "module",
requireConfigFile: false, requireConfigFile: false,
}, },
extends: [ extends: [
"@nuxtjs", "@vue/typescript/recommended",
"@nuxtjs/eslint-config-typescript", "plugin:vue/vue3-recommended",
"prettier/prettier",
"eslint:recommended",
"plugin:vue/recommended",
"plugin:prettier/recommended", "plugin:prettier/recommended",
"plugin:nuxt/recommended",
], ],
ignorePatterns: ["helpers/backend/graphql.ts"], ignorePatterns: [
plugins: ["vue", "nuxt", "prettier"], "static/**/*",
"./helpers/backend/graphql.ts",
"**/*.d.ts",
"types/**/*",
],
plugins: ["vue", "prettier"],
// add your custom rules here // add your custom rules here
rules: { rules: {
semi: [2, "never"], semi: [2, "never"],
"import/named": "off", // because, named import issue with typescript see: h ttps://github.com/typescript-eslint/typescript-eslint/issues/154 "import/named": "off", // because, named import issue with typescript see: h ttps://github.com/typescript-eslint/typescript-eslint/issues/154
"no-console": process.env.NODE_ENV === "production" ? "error" : "off", "no-console": "off",
"no-debugger": process.env.NODE_ENV === "production" ? "error" : "off", "no-debugger": process.env.HOPP_LINT_FOR_PROD === "true" ? "error" : "warn",
"prettier/prettier":
process.env.HOPP_LINT_FOR_PROD === "true" ? "error" : "warn",
"vue/multi-word-component-names": "off", "vue/multi-word-component-names": "off",
"vue/no-side-effects-in-computed-properties": "off",
"import/no-named-as-default": "off", "import/no-named-as-default": "off",
"import/no-named-as-default-member": "off", "import/no-named-as-default-member": "off",
"@typescript-eslint/no-non-null-assertion": "off",
"@typescript-eslint/no-explicit-any": "off",
"import/default": "off", "import/default": "off",
"no-undef": "off", "no-undef": "off",
// localStorage block // localStorage block
"no-restricted-globals": [ "no-restricted-globals": [
"error", "error",
{ {
name: "localStorage", name: "localStorage",
message: message:
"Do not use 'localStorage' directly. Please use localpersistence.ts fu nctions or stores", "Do not use 'localStorage' directly. Please use localpersistence.ts fu nctions or stores",
}, },
skipping to change at line 53 skipping to change at line 62
// window.localStorage block // window.localStorage block
"no-restricted-syntax": [ "no-restricted-syntax": [
"error", "error",
{ {
selector: "CallExpression[callee.object.property.name='localStorage']", selector: "CallExpression[callee.object.property.name='localStorage']",
message: message:
"Do not use 'localStorage' directly. Please use localpersistence.ts fu nctions or stores", "Do not use 'localStorage' directly. Please use localpersistence.ts fu nctions or stores",
}, },
], ],
}, },
globals: {
$nuxt: true,
},
} }
 End of changes. 8 change blocks. 
13 lines changed or deleted 19 lines changed or added

Home  |  About  |  Features  |  All  |  Newest  |  Dox  |  Diffs  |  RSS Feeds  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTP(S)