🔧 Add eslint config

This commit is contained in:
r1oga
2022-12-14 14:07:25 +01:00
commit 3d6c684b42
9 changed files with 1673 additions and 0 deletions

2
.gitignore vendored Normal file
View File

@@ -0,0 +1,2 @@
node_modules
.idea

1
.tool-versions Normal file
View File

@@ -0,0 +1 @@
nodejs 19.2.0

6
lerna.json Normal file
View File

@@ -0,0 +1,6 @@
{
"$schema": "node_modules/lerna/schemas/lerna-schema.json",
"npmClient": "pnpm",
"useWorkspaces": true,
"version": "0.0.0"
}

12
package.json Normal file
View File

@@ -0,0 +1,12 @@
{
"name": "dotfiles",
"version": "1.0.0",
"description": "",
"main": "index.js",
"keywords": [],
"author": "",
"license": "ISC",
"devDependencies": {
"lerna": "^6.1.0"
}
}

View File

@@ -0,0 +1,14 @@
node_modules
pnpm-lock.yaml
package-lock.json
yarn.lock
# build dirs
dist
build
# Jest
coverage
# JetBrains IDE
.idea

View File

@@ -0,0 +1,22 @@
plugins: ['@typescript-eslint', 'jest', 'sort']
extends:
[
'eslint:recommended',
'plugin:@typescript-eslint/recommended',
'plugin:sort/recommended',
'standard-with-typescript',
'prettier',
]
parser: '@typescript-eslint/parser'
#parserOptions:
# project: ['./tsconfig.json', './test/tsconfig.json']
root: true
rules:
'@typescript-eslint/ban-ts-comment': warn
'@typescript-eslint/explicit-function-return-type': off
'@typescript-eslint/return-await': off
import/newline-after-import: warn
no-console: warn
no-useless-constructor: warn
env:
'jest/globals': true

View File

@@ -0,0 +1,33 @@
{
"name": "@r1oga/eslint",
"version": "1.0.0",
"description": "Share ES Lint configuration",
"main": ".eslintrc.yaml",
"scripts": {
"publish": ""
},
"keywords": [
"eslint",
"config",
"typescript",
"standard",
"prettier"
],
"author": "r1oga",
"license": "MIT",
"publishConfig": {
"access": "public"
},
"devDependencies": {
"@typescript-eslint/eslint-plugin": "^5.46.1",
"@typescript-eslint/parser": "^5.46.1",
"eslint": "^8.29.0",
"eslint-config-prettier": "^8.5.0",
"eslint-config-standard-with-typescript": "^24.0.0",
"eslint-plugin-import": "^2.26.0",
"eslint-plugin-jest": "^27.1.6",
"eslint-plugin-n": "^15.6.0",
"eslint-plugin-promise": "^6.1.1",
"eslint-plugin-sort": "^2.4.0"
}
}

1581
pnpm-lock.yaml generated Normal file

File diff suppressed because it is too large Load Diff

2
pnpm-workspace.yaml Normal file
View File

@@ -0,0 +1,2 @@
packages
- packages/*