Skip to content

Instantly share code, notes, and snippets.

@Sammuel09
Created January 15, 2021 07:22
Show Gist options
  • Save Sammuel09/f7e5788cd2af21c619b2a9737cc9f60a to your computer and use it in GitHub Desktop.
Save Sammuel09/f7e5788cd2af21c619b2a9737cc9f60a to your computer and use it in GitHub Desktop.
module.exports = {
root: true,
env: {
node: true,
jest: true,
},
extends: [
"eslint:recommended",
"plugin:jest/recommended",
"plugin:@typescript-eslint/recommended",
// https://vuejs.github.io/eslint-plugin-vue/rules/#priority-c-recommended-minimizing-arbitrary-choices-and-cognitive-overhead
"plugin:vue/recommended",
"prettier",
"prettier/vue",
"prettier/@typescript-eslint",
],
parserOptions: {
parser: "@typescript-eslint/parser",
ecmaVersion: 2020,
sourceType: "module",
},
plugins: ["@typescript-eslint"],
rules: {
"no-console": process.env.NODE_ENV === "production" ? "warn" : "off",
"no-debugger": process.env.NODE_ENV === "production" ? "warn" : "off",
"@typescript-eslint/no-explicit-any": "off",
"@typescript-eslint/no-var-requires": 0,
"@typescript-eslint/no-use-before-define": 0,
"@typescript-eslint/ban-ts-ignore": "off",
"@typescript-eslint/no-non-null-assertion": 0,
"@typescript-eslint/explicit-module-boundary-types": "off",
"semi": "off",
"@typescript-eslint/semi": "error",
"no-unused-vars": "off",
"@typescript-eslint/no-unused-vars": "error",
"object-curly-spacing": ["error", "always"],
},
};
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment