mirror of
https://github.com/Dan6erbond/sk-auth.git
synced 2025-05-02 01:17:00 +02:00
🎨 Update Prettier and ESLint + format codebase
This commit is contained in:
parent
6ebd1e2f6c
commit
bfc84678a1
@ -1,22 +1,10 @@
|
|||||||
module.exports = {
|
module.exports = {
|
||||||
root: true,
|
root: true,
|
||||||
parser: "@typescript-eslint/parser",
|
parser: "@typescript-eslint/parser",
|
||||||
extends: ["eslint:recommended", "plugin:@typescript-eslint/recommended", "prettier"],
|
extends: [
|
||||||
plugins: ["@typescript-eslint"],
|
"eslint:recommended",
|
||||||
|
"plugin:@typescript-eslint/recommended",
|
||||||
|
"./.eslintrc.shared.cjs",
|
||||||
|
],
|
||||||
ignorePatterns: ["*.cjs", "app/**/*"],
|
ignorePatterns: ["*.cjs", "app/**/*"],
|
||||||
parserOptions: {
|
|
||||||
sourceType: "module",
|
|
||||||
ecmaVersion: 2019,
|
|
||||||
},
|
|
||||||
rules: {
|
|
||||||
"@typescript-eslint/explicit-module-boundary-types": "off",
|
|
||||||
"@typescript-eslint/no-explicit-any": "off",
|
|
||||||
"@typescript-eslint/no-unused-vars": ["off", { argsIgnorePattern: "^_" }],
|
|
||||||
"@typescript-eslint/no-non-null-assertion": "off",
|
|
||||||
},
|
|
||||||
env: {
|
|
||||||
browser: true,
|
|
||||||
es2017: true,
|
|
||||||
node: true,
|
|
||||||
},
|
|
||||||
};
|
};
|
||||||
|
21
.eslintrc.shared.cjs
Normal file
21
.eslintrc.shared.cjs
Normal file
@ -0,0 +1,21 @@
|
|||||||
|
module.exports = {
|
||||||
|
root: true,
|
||||||
|
parser: "@typescript-eslint/parser",
|
||||||
|
extends: ["prettier"],
|
||||||
|
plugins: ["@typescript-eslint"],
|
||||||
|
parserOptions: {
|
||||||
|
sourceType: "module",
|
||||||
|
ecmaVersion: 2019,
|
||||||
|
},
|
||||||
|
env: {
|
||||||
|
browser: true,
|
||||||
|
es2017: true,
|
||||||
|
node: true,
|
||||||
|
},
|
||||||
|
rules: {
|
||||||
|
"@typescript-eslint/explicit-module-boundary-types": "off",
|
||||||
|
"@typescript-eslint/no-explicit-any": "off",
|
||||||
|
"@typescript-eslint/no-unused-vars": ["off", { argsIgnorePattern: "^_" }],
|
||||||
|
"@typescript-eslint/no-non-null-assertion": "off",
|
||||||
|
},
|
||||||
|
};
|
@ -1,3 +1,4 @@
|
|||||||
dist/**
|
dist/**
|
||||||
node_modules/**
|
node_modules/**
|
||||||
README.md
|
README.md
|
||||||
|
app/**/*
|
||||||
|
@ -1,20 +1,15 @@
|
|||||||
module.exports = {
|
module.exports = {
|
||||||
root: true,
|
root: true,
|
||||||
parser: "@typescript-eslint/parser",
|
parser: "@typescript-eslint/parser",
|
||||||
extends: ["../.eslintrc.cjs"],
|
extends: ["../.eslintrc.shared.cjs"],
|
||||||
plugins: ["svelte3", "@typescript-eslint"],
|
plugins: ["svelte3"],
|
||||||
ignorePatterns: ["*.cjs"],
|
overrides: [
|
||||||
overrides: [{ files: ["*.svelte"], processor: "svelte3/svelte3" }],
|
{
|
||||||
|
files: ["*.svelte"],
|
||||||
|
processor: "svelte3/svelte3",
|
||||||
|
},
|
||||||
|
],
|
||||||
settings: {
|
settings: {
|
||||||
"svelte3/typescript": () => require("typescript"),
|
"svelte3/typescript": () => require("typescript"),
|
||||||
},
|
},
|
||||||
parserOptions: {
|
|
||||||
sourceType: "module",
|
|
||||||
ecmaVersion: 2019,
|
|
||||||
},
|
|
||||||
env: {
|
|
||||||
browser: true,
|
|
||||||
es2017: true,
|
|
||||||
node: true,
|
|
||||||
},
|
|
||||||
};
|
};
|
||||||
|
Loading…
Reference in New Issue
Block a user