Skip to content

Commit

Permalink
prettier
Browse files Browse the repository at this point in the history
  • Loading branch information
pyramation committed May 25, 2024
1 parent 231e4ac commit 789e9d5
Show file tree
Hide file tree
Showing 5 changed files with 88 additions and 16 deletions.
Empty file removed .eslintignore
Empty file.
1 change: 0 additions & 1 deletion .eslintrc.js

This file was deleted.

80 changes: 80 additions & 0 deletions .eslintrc.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,80 @@
{
"env": {
"browser": true,
"es2021": true,
"node": true,
"jest": true
},
"extends": [
"eslint:recommended",
"plugin:@typescript-eslint/recommended",
"prettier"
],
"overrides": [],
"parser": "@typescript-eslint/parser",
"parserOptions": {
"ecmaVersion": "latest",
"sourceType": "module"
},
"plugins": [
"@typescript-eslint",
"simple-import-sort",
"unused-imports",
"prettier"
],
"rules": {
"indent": [
"error",
2
],
"quotes": [
"error",
"single",
{
"avoidEscape": true,
"allowTemplateLiterals": true
}
],
"quote-props": [
"error",
"as-needed"
],
"semi": [
"error",
"always"
],
"simple-import-sort/imports": 1,
"simple-import-sort/exports": 1,
"unused-imports/no-unused-imports": 1,
"@typescript-eslint/no-unused-vars": [
1,
{
"argsIgnorePattern": "React|res|next|^_"
}
],
"@typescript-eslint/no-explicit-any": 0,
"@typescript-eslint/no-var-requires": 0,
"no-console": 0,
"@typescript-eslint/ban-ts-comment": 0,
"prefer-const": 0,
"no-case-declarations": 0,
"no-implicit-globals": 0,
"@typescript-eslint/no-unsafe-declaration-merging": 0,
"prettier/prettier": [
"error",
{
"trailingComma": "es5",
"tabWidth": 2,
"semi": true,
"useTabs": false,
"singleQuote": true
}
]
},
"ignorePatterns": [
"node_modules/",
"dist/",
"**/node_modules/",
"**/dist/"
]
}
9 changes: 8 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -22,12 +22,19 @@
"postinstall": "yarn symlink"
},
"devDependencies": {
"@interweb/eslint": "^0.5.0",
"@types/jest": "^29.5.11",
"@types/node": "^20.12.7",
"@typescript-eslint/eslint-plugin": "^7.10.0",
"@typescript-eslint/parser": "^7.10.0",
"copyfiles": "^2.4.1",
"eslint-config-prettier": "^9.1.0",
"eslint": "^8.56.0",
"eslint-plugin-prettier": "^5.1.3",
"eslint-plugin-simple-import-sort": "^12.1.0",
"eslint-plugin-unused-imports": "^4.0.0",
"jest": "^29.6.2",
"lerna": "^6",
"prettier": "^3.0.2",
"rimraf": "4.4.1",
"strip-ansi": "^6",
"symlink-workspace": "^1.9.0",
Expand Down
14 changes: 0 additions & 14 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -365,20 +365,6 @@
resolved "https://registry.yarnpkg.com/@hutson/parse-repository-url/-/parse-repository-url-3.0.2.tgz#98c23c950a3d9b6c8f0daed06da6c3af06981340"
integrity sha512-H9XAx3hc0BQHY6l+IFSWHDySypcXsvsuLhgYLUGywmJ5pswRVQJUHpOsobnLYp2ZUaUlKiKDrgWWhosOwAEM8Q==

"@interweb/eslint@^0.5.0":
version "0.5.0"
resolved "https://registry.yarnpkg.com/@interweb/eslint/-/eslint-0.5.0.tgz#4f27e83139009a48c505ff22ad845099ebb86288"
integrity sha512-px4QHSPLO1X4hNN2eAIm0FsfnDaQYrb7X0qbJ8VC8hnix7J5q9yKVqGwtNhcV5itnf+4UKQt60GaKONlDp9Oaw==
dependencies:
"@typescript-eslint/eslint-plugin" "^7.10.0"
"@typescript-eslint/parser" "^7.10.0"
eslint "^8.56.0"
eslint-config-prettier "^9.1.0"
eslint-plugin-prettier "^5.1.3"
eslint-plugin-simple-import-sort "^12.1.0"
eslint-plugin-unused-imports "^4.0.0"
prettier "^3.0.2"

"@isaacs/cliui@^8.0.2":
version "8.0.2"
resolved "https://registry.yarnpkg.com/@isaacs/cliui/-/cliui-8.0.2.tgz#b37667b7bc181c168782259bab42474fbf52b550"
Expand Down

0 comments on commit 789e9d5

Please sign in to comment.