Skip to content

Commit fca9fde

Browse files
committedMay 11, 2021
Initial commit
0 parents  commit fca9fde

File tree

5 files changed

+1124
-0
lines changed

5 files changed

+1124
-0
lines changed
 

‎.gitignore

+25
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
# Dev
2+
node_modules
3+
4+
# Logs
5+
logs
6+
*.log
7+
8+
# OS
9+
.DS_Store
10+
11+
# IDEs and editors
12+
/.idea
13+
.project
14+
.classpath
15+
.c9/
16+
*.launch
17+
.settings/
18+
*.sublime-workspace
19+
20+
# IDE - VSCode
21+
.vscode/*
22+
!.vscode/settings.json
23+
!.vscode/tasks.json
24+
!.vscode/launch.json
25+
!.vscode/extensions.json

‎.prettierignore

+6
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
# Add files here to ignore them from prettier formatting
2+
3+
/dist
4+
/coverage
5+
/tmp
6+
/node_modules

‎index.js

+46
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,46 @@
1+
module.exports = {
2+
parser: '@typescript-eslint/parser',
3+
parserOptions: {
4+
sourceType: 'module',
5+
},
6+
plugins: ['@typescript-eslint/eslint-plugin', 'unused-imports', 'prettier'],
7+
extends: ['prettier'],
8+
root: true,
9+
env: {
10+
node: true,
11+
jest: true,
12+
},
13+
rules: {
14+
'@typescript-eslint/interface-name-prefix': 'off',
15+
'@typescript-eslint/explicit-module-boundary-types': 'off',
16+
'no-console': 'error',
17+
'space-before-function-paren': ['error', {
18+
named: 'never',
19+
}],
20+
'unused-imports/no-unused-imports': 'error',
21+
'prettier/prettier': [
22+
'error',
23+
{
24+
singleQuote: true,
25+
trailingComma: 'all',
26+
semi: false,
27+
printWidth: 100,
28+
tabWidth: 4,
29+
overrides: [
30+
{
31+
files: [
32+
'**/*.json',
33+
'**/*.yml',
34+
'*rc',
35+
'*ignore',
36+
'*config'
37+
],
38+
options: {
39+
tabWidth: 2
40+
}
41+
}
42+
]
43+
}
44+
]
45+
},
46+
}

‎package.json

+29
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
{
2+
"name": "@pliancy/eslint-config-ts",
3+
"version": "0.0.0",
4+
"description": "Base eslint config for all TypeScript projects",
5+
"main": "index.js",
6+
"private": false,
7+
"license": "MIT",
8+
"peerDependencies": {
9+
"@typescript-eslint/eslint-plugin": "^4.6.1",
10+
"@typescript-eslint/parser": "^4.6.1",
11+
"eslint": "^7.12.1",
12+
"eslint-config-prettier": "8.3.0",
13+
"eslint-plugin-prettier": "^3.1.4",
14+
"eslint-plugin-unused-imports": "^1.0.1",
15+
"typescript": "^4.0.5"
16+
},
17+
"devDependencies": {
18+
"@typescript-eslint/eslint-plugin": "^4.6.1",
19+
"@typescript-eslint/parser": "^4.6.1",
20+
"eslint": "^7.12.1",
21+
"eslint-config-prettier": "8.3.0",
22+
"eslint-plugin-prettier": "^3.1.4",
23+
"eslint-plugin-unused-imports": "^1.0.1",
24+
"typescript": "^4.0.5"
25+
},
26+
"publishConfig": {
27+
"registry": "https://npm.pkg.github.com"
28+
}
29+
}

‎yarn.lock

+1,018
Large diffs are not rendered by default.

0 commit comments

Comments
 (0)
Please sign in to comment.