chore: add package.json with ESLint and related dependencies
This commit is contained in:
@@ -0,0 +1,17 @@
|
|||||||
|
import js from "@eslint/js";
|
||||||
|
import globals from "globals";
|
||||||
|
import pluginVue from "eslint-plugin-vue";
|
||||||
|
import json from "@eslint/json";
|
||||||
|
import markdown from "@eslint/markdown";
|
||||||
|
import css from "@eslint/css";
|
||||||
|
import { defineConfig } from "eslint/config";
|
||||||
|
|
||||||
|
export default defineConfig([
|
||||||
|
{ files: ["**/*.{js,mjs,cjs,vue}"], plugins: { js }, extends: ["js/recommended"], languageOptions: { globals: {...globals.browser, ...globals.node} } },
|
||||||
|
pluginVue.configs["flat/essential"],
|
||||||
|
{ files: ["**/*.json"], plugins: { json }, language: "json/json", extends: ["json/recommended"] },
|
||||||
|
{ files: ["**/*.jsonc"], plugins: { json }, language: "json/jsonc", extends: ["json/recommended"] },
|
||||||
|
{ files: ["**/*.json5"], plugins: { json }, language: "json/json5", extends: ["json/recommended"] },
|
||||||
|
{ files: ["**/*.md"], plugins: { markdown }, language: "markdown/commonmark", extends: ["markdown/recommended"] },
|
||||||
|
{ files: ["**/*.css"], plugins: { css }, language: "css/css", extends: ["css/recommended"] },
|
||||||
|
]);
|
||||||
@@ -0,0 +1,17 @@
|
|||||||
|
const name = "Stribbs";
|
||||||
|
let lessonsCompleted = 1;
|
||||||
|
|
||||||
|
console.log(name);
|
||||||
|
console.log(lessonsCompleted);
|
||||||
|
|
||||||
|
lessonsCompleted = lessonsCompleted + 1;
|
||||||
|
|
||||||
|
console.log(lessonsCompleted);
|
||||||
|
|
||||||
|
const framework = "Vue.js";
|
||||||
|
let filesCreated = 2;
|
||||||
|
|
||||||
|
filesCreated = filesCreated + 1;
|
||||||
|
|
||||||
|
console.log(framework);
|
||||||
|
console.log(filesCreated);
|
||||||
Generated
+2318
File diff suppressed because it is too large
Load Diff
@@ -0,0 +1,11 @@
|
|||||||
|
{
|
||||||
|
"devDependencies": {
|
||||||
|
"@eslint/css": "^1.4.0",
|
||||||
|
"@eslint/js": "^10.0.1",
|
||||||
|
"@eslint/json": "^2.0.1",
|
||||||
|
"@eslint/markdown": "^8.0.3",
|
||||||
|
"eslint": "^10.8.0",
|
||||||
|
"eslint-plugin-vue": "^10.10.0",
|
||||||
|
"globals": "^17.9.0"
|
||||||
|
}
|
||||||
|
}
|
||||||
Reference in New Issue
Block a user