Skip to content
This repository has been archived by the owner on Oct 19, 2022. It is now read-only.

Commit

Permalink
Improve configuration
Browse files Browse the repository at this point in the history
  • Loading branch information
Levminer committed Jul 6, 2022
1 parent 3b2fd0d commit e09477f
Show file tree
Hide file tree
Showing 5 changed files with 8 additions and 149 deletions.
10 changes: 3 additions & 7 deletions .eslintrc.cjs
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@ module.exports = {
node: true,
},
parser: "@typescript-eslint/parser",
extends: ["standard", "eslint:recommended", "plugin:node/recommended", "plugin:promise/recommended", "plugin:prettier/recommended", "plugin:@typescript-eslint/eslint-recommended", "plugin:svelte/recommended"],
plugins: ["@typescript-eslint", "prettier"],
extends: ["standard", "eslint:recommended", "plugin:promise/recommended", "plugin:prettier/recommended", "plugin:@typescript-eslint/eslint-recommended", "plugin:svelte/recommended"],
plugins: ["@typescript-eslint"],
ignorePatterns: ["/node_modules/*", "/dist/*", "/build/*"],
parserOptions: {
ecmaVersion: 12,
Expand All @@ -27,16 +27,12 @@ module.exports = {
quotes: ["error", "double"],
semi: ["error", "never"],

"prettier/prettier": ["warn"],
"linebreak-style": ["warn", "windows"],
"prettier/prettier": ["warn", { endOfLine: "auto" }],
"prefer-const": ["warn"],
"prefer-arrow-callback": ["error"],
"prefer-template": ["error"],
"func-style": ["error"],
"no-var": ["error"],
"node/no-unpublished-require": ["off"],
"node/no-unpublished-import": ["off"],
"node/no-unsupported-features/es-syntax": ["off"],
"no-unused-vars": ["warn"],
"no-use-before-define": ["off"],
},
Expand Down
141 changes: 4 additions & 137 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 0 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,6 @@
"eslint": "^8.19.0",
"eslint-config-prettier": "^8.5.0",
"eslint-config-standard": "^17.0.0-1",
"eslint-plugin-node": "^11.1.0",
"eslint-plugin-prettier": "^4.0.0",
"eslint-plugin-promise": "^6.0.0",
"eslint-plugin-svelte": "^2.1.0",
Expand All @@ -29,7 +28,6 @@
"svelte-check": "^2.2.7",
"svelte-preprocess": "^4.9.8",
"tailwindcss": "^3.1.4",
"tslib": "^2.3.1",
"typescript": "^4.5.4",
"vite": "^2.9.9"
},
Expand Down
1 change: 0 additions & 1 deletion prettier.config.cjs
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
module.exports = {
endOfLine: "crlf",
trailingComma: "es5",
tabWidth: 4,
printWidth: 1000,
Expand Down
3 changes: 1 addition & 2 deletions tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
"target": "esnext",
"useDefineForClassFields": true,
"module": "esnext",
"moduleResolution": "Node16",
"moduleResolution": "Node",
"resolveJsonModule": true,
"baseUrl": ".",
"allowJs": true,
Expand All @@ -14,4 +14,3 @@
"include": ["interface/**/*.d.ts", "interface/**/*.ts", "interface/**/*.js", "interface/**/*.svelte", "interface/vite.config.js", "interface/svelte.config.js"],
"exclude": ["dist", "interface/svelte.config.js", "interface/vite.config.js"]
}

0 comments on commit e09477f

Please sign in to comment.