Skip to content

Commit

Permalink
chore: install personal eslint configuration
Browse files Browse the repository at this point in the history
  • Loading branch information
Tchoupinax committed Aug 8, 2023
1 parent fad8631 commit 553b85a
Show file tree
Hide file tree
Showing 3 changed files with 844 additions and 1,341 deletions.
60 changes: 5 additions & 55 deletions .eslintrc.js
Original file line number Diff line number Diff line change
@@ -1,55 +1,5 @@
module.exports = {
env: {
es2022: true,
node: true,
},
extends: [
"standard",
"plugin:@typescript-eslint/recommended",
"plugin:typescript-sort-keys/recommended",
],
parser: "@typescript-eslint/parser",
parserOptions: {
ecmaVersion: "latest",
sourceType: "module",
},
plugins: [
"@typescript-eslint",
"simple-import-sort",
"typescript-sort-keys",
"unused-imports",
],
root: true,
overrides: [
{
files: ["*.ts"],
rules: { "@typescript-eslint/explicit-function-return-type": "warn" },
},
],
rules: {
"@typescript-eslint/consistent-type-definitions": ["error", "type"],
"@typescript-eslint/no-unused-vars": "error",
indent: ["error", 2, { ignoredNodes: ["PropertyDefinition"] }],
"arrow-body-style": "off",
"comma-dangle": ["error", "always-multiline"],
"import/first": "error",
"import/newline-after-import": "error",
"import/no-duplicates": "error",
// "max-len": ["error", { code: 100 }],
"no-useless-constructor": "off",
"simple-import-sort/exports": "error",
"simple-import-sort/imports": "error",
"space-before-function-paren": ["error", "always"],
"unused-imports/no-unused-imports": "error",
"unused-imports/no-unused-vars": "error",
camelcase: "off",
quotes: ["error", "double"],
semi: ["error", "always"],
"key-spacing": ["error", {
singleLine: {
beforeColon: false,
afterColon: true,
},
}],
},
};
module.exports = {
extends: [
"eslint-config-tchoupinax",
],
};
23 changes: 6 additions & 17 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -21,35 +21,24 @@
"watch": "nodemon --exec vite-node --options.deps.inline=\"@aws-sdk\" src/index.ts"
},
"dependencies": {
"@aws-sdk/client-s3": "3.379.1",
"@aws-sdk/client-s3": "3.386.0",
"config": "3.3.9",
"express": "4.18.2",
"fastify": "4.21.0",
"moment": "2.29.4",
"pino": "8.14.2",
"pino": "8.15.0",
"pino-pretty": "10.2.0",
"pretty-bytes": "6.1.1",
"prom-client": "14.2.0",
"vite-node": "0.33.0",
"vitest": "0.33.0"
"vite-node": "0.34.1",
"vitest": "0.34.1"
},
"devDependencies": {
"@types/config": "3.3.0",
"@types/express": "4.17.17",
"@types/node": "20.4.5",
"@typescript-eslint/eslint-plugin": "6.2.0",
"@typescript-eslint/parser": "6.2.0",
"@types/node": "20.4.8",
"esbuild-plugin-tsc": "0.4.0",
"eslint": "8.46.0",
"eslint-config-prettier": "8.9.0",
"eslint-config-standard": "17.1.0",
"eslint-plugin-import": "2.28.0",
"eslint-plugin-n": "16.0.1",
"eslint-plugin-prettier": "5.0.0",
"eslint-plugin-promise": "6.1.1",
"eslint-plugin-simple-import-sort": "10.0.0",
"eslint-plugin-typescript-sort-keys": "2.3.0",
"eslint-plugin-unused-imports": "3.0.0",
"eslint-config-tchoupinax": "1.0.3",
"nodemon": "3.0.1",
"typescript": "5"
}
Expand Down
Loading

0 comments on commit 553b85a

Please sign in to comment.