Skip to content
This repository was archived by the owner on Sep 17, 2022. It is now read-only.

Commit 2a4010a

Browse files
committed
Add eslint
1 parent 49fd23e commit 2a4010a

File tree

3 files changed

+969
-0
lines changed

3 files changed

+969
-0
lines changed

Diff for: .eslintrc.js

+15
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
module.exports = {
2+
root: true,
3+
parser: '@typescript-eslint/parser',
4+
parserOptions: {
5+
project: './tsconfig.json'
6+
},
7+
plugins: ['@typescript-eslint'],
8+
extends: [
9+
'eslint:recommended',
10+
'plugin:@typescript-eslint/eslint-recommended',
11+
'plugin:@typescript-eslint/recommended',
12+
'standard-with-typescript'
13+
],
14+
ignorePatterns: ['node_modules/', 'dist/', '*.js']
15+
}

Diff for: package.json

+21
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,7 @@
2929
"license": "MIT",
3030
"scripts": {
3131
"build": "tsup src/index.ts --format esm,cjs --dts",
32+
"lint": "eslint .",
3233
"test": "jest"
3334
},
3435
"main": "dist/index.js",
@@ -42,11 +43,31 @@
4243
"dist",
4344
"README.md"
4445
],
46+
"changelog": {
47+
"labels": {
48+
"Type: Feature": ":star: New Features",
49+
"Type: Bug": ":bug: Bug Fixes",
50+
"Type: Security": ":lock: Security Fixes",
51+
"Type: Performance": ":chart_with_upwards_trend: Performance Fixes",
52+
"Type: Improvement": ":zap: Improved Features",
53+
"Type: Breaking": ":boom: Breaking Change",
54+
"Type: Deprecated": ":warning: Deprecated Features",
55+
"Type: I18n": ":globe_with_meridians: Internationalization",
56+
"Type: A11y": ":wheelchair: Accessibility",
57+
"Type: Documentation": ":pencil: Documentation"
58+
}
59+
},
4560
"devDependencies": {
4661
"@fluent/bundle": "^0.17.0",
4762
"@types/jest": "^27.0.2",
4863
"@types/loader-utils": "^2.0.3",
64+
"@typescript-eslint/eslint-plugin": "^5.2.0",
4965
"@vue/compiler-sfc": "^3.2.20",
66+
"eslint": "^8.1.0",
67+
"eslint-config-standard-with-typescript": "^21.0.1",
68+
"eslint-plugin-import": "^2.25.2",
69+
"eslint-plugin-node": "^11.1.0",
70+
"eslint-plugin-promise": "^5.1.1",
5071
"jest": "^27.3.1",
5172
"memfs": "^3.3.0",
5273
"ts-jest": "^27.0.7",

0 commit comments

Comments
 (0)