Skip to content

Commit

Permalink
Fix eslint config
Browse files Browse the repository at this point in the history
  • Loading branch information
ryan-pratt committed Dec 20, 2024
1 parent 34889a4 commit 9216eb3
Show file tree
Hide file tree
Showing 20 changed files with 557 additions and 486 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -8,31 +8,34 @@ import { FlatCompat } from "@eslint/eslintrc";
const __filename = fileURLToPath(import.meta.url);
const __dirname = path.dirname(__filename);
const compat = new FlatCompat({
baseDirectory: __dirname,
recommendedConfig: js.configs.recommended,
allConfig: js.configs.all
baseDirectory: __dirname,
recommendedConfig: js.configs.recommended,
allConfig: js.configs.all
});

export default [...compat.extends("plugin:prettier/recommended"), {
export default [
...compat.extends("plugin:prettier/recommended"),
{
plugins: {
prettier,
prettier,
},

languageOptions: {
globals: {
...globals.node,
},
globals: {
...globals.node,
},

ecmaVersion: 2020,
sourceType: "module",
ecmaVersion: 2022,
sourceType: "module",
},

rules: {
"no-console": "error",
"no-debugger": "error",
"no-console": "error",
"no-debugger": "error",

"prettier/prettier": ["warn", {
endOfLine: "auto",
}],
"prettier/prettier": ["warn", {
endOfLine: "auto",
}],
},
}];
},
];
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import prettier from "eslint-plugin-prettier";
import prettierConfig from "@vue/eslint-config-prettier";
import globals from "globals";
import parser from "vue-eslint-parser";
import path from "node:path";
Expand All @@ -9,50 +10,54 @@ import { FlatCompat } from "@eslint/eslintrc";
const __filename = fileURLToPath(import.meta.url);
const __dirname = path.dirname(__filename);
const compat = new FlatCompat({
baseDirectory: __dirname,
recommendedConfig: js.configs.recommended,
allConfig: js.configs.all
baseDirectory: __dirname,
recommendedConfig: js.configs.recommended,
allConfig: js.configs.all
});

export default [...compat.extends(
export default [
...compat.extends(
"plugin:vue/vue3-essential",
"plugin:prettier/recommended",
"@vue/prettier",
), {
),
{
plugins: {
prettier,
prettier,
},

languageOptions: {
globals: {
...globals.node,
},
globals: {
...globals.node,
},

parser: parser,
ecmaVersion: 2022,
sourceType: "module",
parser: parser,
ecmaVersion: 2022,
sourceType: "module",
},

rules: {
"no-console": "error",
"no-debugger": "error",
"no-console": "error",
"no-debugger": "error",

"prettier/prettier": ["warn", {
endOfLine: "auto",
}],
"prettier/prettier": ["warn", {
endOfLine: "auto",
}],

"vue/multi-word-component-names": "off",
"vue/multi-word-component-names": "off",

"vue/valid-v-slot": ["error", {
allowModifiers: true,
}],
"vue/valid-v-slot": ["error", {
allowModifiers: true,
}],
},
}, {
},
{
files: ["**/__tests__/*.{j,t}s?(x)", "**/tests/unit/**/*.spec.{j,t}s?(x)"],

languageOptions: {
globals: {
...globals.jest,
},
globals: {
...globals.jest,
},
},
}];
},
prettierConfig,
];
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import prettier from "eslint-plugin-prettier";
import prettierConfig from "@vue/eslint-config-prettier";
import globals from "globals";
import parser from "vue-eslint-parser";
import path from "node:path";
Expand All @@ -9,50 +10,54 @@ import { FlatCompat } from "@eslint/eslintrc";
const __filename = fileURLToPath(import.meta.url);
const __dirname = path.dirname(__filename);
const compat = new FlatCompat({
baseDirectory: __dirname,
recommendedConfig: js.configs.recommended,
allConfig: js.configs.all
baseDirectory: __dirname,
recommendedConfig: js.configs.recommended,
allConfig: js.configs.all
});

export default [...compat.extends(
export default [
...compat.extends(
"plugin:vue/vue3-essential",
"plugin:prettier/recommended",
"@vue/prettier",
), {
),
{
plugins: {
prettier,
prettier,
},

languageOptions: {
globals: {
...globals.node,
},
globals: {
...globals.node,
},

parser: parser,
ecmaVersion: 2022,
sourceType: "module",
parser: parser,
ecmaVersion: 2022,
sourceType: "module",
},

rules: {
"no-console": "error",
"no-debugger": "error",
"no-console": "error",
"no-debugger": "error",

"prettier/prettier": ["warn", {
endOfLine: "auto",
}],
"prettier/prettier": ["warn", {
endOfLine: "auto",
}],

"vue/multi-word-component-names": "off",
"vue/multi-word-component-names": "off",

"vue/valid-v-slot": ["error", {
allowModifiers: true,
}],
"vue/valid-v-slot": ["error", {
allowModifiers: true,
}],
},
}, {
},
{
files: ["**/__tests__/*.{j,t}s?(x)", "**/tests/unit/**/*.spec.{j,t}s?(x)"],

languageOptions: {
globals: {
...globals.jest,
},
globals: {
...globals.jest,
},
},
}];
},
prettierConfig,
];
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import prettier from "eslint-plugin-prettier";
import prettierConfig from "@vue/eslint-config-prettier";
import globals from "globals";
import parser from "vue-eslint-parser";
import path from "node:path";
Expand All @@ -9,50 +10,54 @@ import { FlatCompat } from "@eslint/eslintrc";
const __filename = fileURLToPath(import.meta.url);
const __dirname = path.dirname(__filename);
const compat = new FlatCompat({
baseDirectory: __dirname,
recommendedConfig: js.configs.recommended,
allConfig: js.configs.all
baseDirectory: __dirname,
recommendedConfig: js.configs.recommended,
allConfig: js.configs.all
});

export default [...compat.extends(
export default [
...compat.extends(
"plugin:vue/vue3-essential",
"plugin:prettier/recommended",
"@vue/prettier",
), {
),
{
plugins: {
prettier,
prettier,
},

languageOptions: {
globals: {
...globals.node,
},
globals: {
...globals.node,
},

parser: parser,
ecmaVersion: 2022,
sourceType: "module",
parser: parser,
ecmaVersion: 2022,
sourceType: "module",
},

rules: {
"no-console": "error",
"no-debugger": "error",
"no-console": "error",
"no-debugger": "error",

"prettier/prettier": ["warn", {
endOfLine: "auto",
}],
"prettier/prettier": ["warn", {
endOfLine: "auto",
}],

"vue/multi-word-component-names": "off",
"vue/multi-word-component-names": "off",

"vue/valid-v-slot": ["error", {
allowModifiers: true,
}],
"vue/valid-v-slot": ["error", {
allowModifiers: true,
}],
},
}, {
},
{
files: ["**/__tests__/*.{j,t}s?(x)", "**/tests/unit/**/*.spec.{j,t}s?(x)"],

languageOptions: {
globals: {
...globals.jest,
},
globals: {
...globals.jest,
},
},
}];
},
prettierConfig,
];
Loading

0 comments on commit 9216eb3

Please sign in to comment.