Browse Source

CHORE,REFA: introduced linter

dev-feat-component_preview
chris 2 months ago
parent
commit
362d9f870c
  1. 2
      README.md
  2. 15
      eslint.config.mjs
  3. 3544
      package-lock.json
  4. 7
      package.json

2
README.md

@ -45,3 +45,5 @@ you have been warned.
```sh ```sh
sh join_js_files.sh sh join_js_files.sh
``` ```
https://eslint.org/docs/latest/use/getting-started

15
eslint.config.mjs

@ -0,0 +1,15 @@
import js from "@eslint/js";
import globals from "globals";
import json from "@eslint/json";
import css from "@eslint/css";
import { defineConfig } from "eslint/config";
export default defineConfig([
{ files: ["**/*.{js,mjs,cjs}"], plugins: { js }, extends: ["js/recommended"] },
{ files: ["**/*.js"], languageOptions: { sourceType: "script" } },
{ files: ["**/*.{js,mjs,cjs}"], languageOptions: { globals: globals.browser } },
{ files: ["**/*.json"], plugins: { json }, language: "json/json", extends: ["json/recommended"] },
{ files: ["**/*.jsonc"], plugins: { json }, language: "json/jsonc", extends: ["json/recommended"] },
{ files: ["**/*.css"], plugins: { css }, language: "css/css", extends: ["css/recommended"] },
]);

3544
package-lock.json

File diff suppressed because it is too large

7
package.json

@ -20,5 +20,12 @@
"license": "SEE LICENCE.md", "license": "SEE LICENCE.md",
"dependencies": { "dependencies": {
"jpclw-extension": "git+https://git.labos.goip.de/chris/jpclw-extension.git" "jpclw-extension": "git+https://git.labos.goip.de/chris/jpclw-extension.git"
},
"devDependencies": {
"@eslint/css": "^0.7.0",
"@eslint/js": "^9.26.0",
"@eslint/json": "^0.12.0",
"eslint": "^9.26.0",
"globals": "^16.1.0"
} }
} }
Loading…
Cancel
Save