Skip to content

Commit

Permalink
fix: eslint
Browse files Browse the repository at this point in the history
  • Loading branch information
arpowers committed Dec 17, 2021
1 parent 665234b commit d3a0216
Showing 1 changed file with 45 additions and 40 deletions.
85 changes: 45 additions & 40 deletions .eslintrc.js → .eslintrc.json
Original file line number Diff line number Diff line change
@@ -1,27 +1,29 @@
module.exports = {
root: true,
globals: {
module: false,
process: false,
cy: false,
Cypress: false,
to: false,
describe: false,
context: false,
globalThis: false,
{
"root": true,
"globals": {
"module": false,
"process": false,
"cy": false,
"Cypress": false,
"to": false,
"describe": false,
"context": false,
"globalThis": false
},
parser: "vue-eslint-parser",
parserOptions: {
sourceType: "module",
parser: "@typescript-eslint/parser",
"parser": "vue-eslint-parser",
"parserOptions": {
"sourceType": "module",
"parser": "@typescript-eslint/parser",
"project": "./tsconfig.json",
"extraFileExtensions": [".vue", ".json"]
},
env: {
browser: true,
es6: true,
node: true,
"env": {
"browser": true,
"es6": true,
"node": true
},

extends: [
"extends": [
"plugin:unicorn/recommended",
"plugin:jest/recommended",
"eslint:recommended",
Expand All @@ -30,25 +32,25 @@ module.exports = {
"plugin:import/typescript",
"plugin:@typescript-eslint/recommended",
"plugin:vue/vue3-recommended",
"prettier",
"prettier"
],

plugins: [
"plugins": [
"json",
"prettier",
"unicorn",
"import",
"jest",
"@typescript-eslint",
"implicit-dependencies",
"implicit-dependencies"
],

rules: {
"rules": {
"implicit-dependencies/no-implicit": [
"error",
{ peer: true, dev: true, optional: true },
{ "peer": true, "dev": true, "optional": true }
],
semi: ["error", "never"],
"semi": ["error", "never"],
"jest/no-disabled-tests": "off",
"jest/no-commented-out-tests": "off",
"jest/expect-expect": "off",
Expand All @@ -69,7 +71,7 @@ module.exports = {
"import/no-cycle": 2,
"import/no-unresolved": "off",
"import/named": "off",
"import/extensions": ["warn", "always", { ts: "never", js: "never" }],
"import/extensions": ["warn", "always", { "ts": "never", "js": "never" }],
"unicorn/prefer-module": "off",
"unicorn/no-null": "off",
"unicorn/no-fn-reference-in-iterator": "off",
Expand All @@ -84,25 +86,28 @@ module.exports = {
"@typescript-eslint/ban-ts-ignore": "off",
"@typescript-eslint/no-explicit-any": "off",
"@typescript-eslint/member-delimiter-style": "off",
"@typescript-eslint/no-unused-vars": ["warn", { argsIgnorePattern: "^_" }],
"@typescript-eslint/no-unused-vars": [
"warn",
{ "argsIgnorePattern": "^_" }
],
"vue/no-v-html": "off",
"no-undef": "off",
"no-undef": "off"
},
overrides: [
"overrides": [
{
// enable the rule specifically for TypeScript files
files: ["*.ts", "*.tsx"],
rules: {
"@typescript-eslint/explicit-function-return-type": ["warn"],
},
"files": ["*.ts", "*.tsx"],
"rules": {
"@typescript-eslint/explicit-function-return-type": ["warn"]
}
},
{
files: "*.vue",
rules: {
"unicorn/consistent-function-scoping": "off",
},
},
"files": "*.vue",
"rules": {
"unicorn/consistent-function-scoping": "off"
}
}
],

settings: {},
"settings": {}
}

0 comments on commit d3a0216

Please sign in to comment.