File tree 6 files changed +43
-10
lines changed
6 files changed +43
-10
lines changed Original file line number Diff line number Diff line change
1
+ module . exports = {
2
+ parser : '@typescript-eslint/parser' ,
3
+ parserOptions : {
4
+ ecmaVersion : 2020 ,
5
+ sourceType : 'module' ,
6
+ } ,
7
+ extends : [
8
+ 'plugin:@typescript-eslint/recommended' ,
9
+ 'prettier/@typescript-eslint' ,
10
+ 'plugin:prettier/recommended' ,
11
+ ] ,
12
+ rules : {
13
+ // Place to specify ESLint rules. Can be used to overwrite rules specified from the extended configs
14
+ // e.g. "@typescript-eslint/explicit-function-return-type": "off",
15
+ } ,
16
+ } ;
Original file line number Diff line number Diff line change
1
+ {
2
+ "hooks": {
3
+ "pre-commit": "lint-staged",
4
+ "pre-push":"npm run test"
5
+ }
6
+ }
Original file line number Diff line number Diff line change
1
+ {
2
+ "*.{js,ts}": [
3
+ "eslint --fix"
4
+ ]
5
+ }
Original file line number Diff line number Diff line change 1
1
{
2
- "singleQuote": true
2
+ "singleQuote": true,
3
+ "printWidth": 100,
4
+ "tabWidth": 2,
5
+ "semi": true,
6
+ "trailingComma":"all",
7
+ "arrowParens": "avoid"
3
8
}
Original file line number Diff line number Diff line change 6
6
"scripts" : {
7
7
"build" : " tsc" ,
8
8
"format" : " prettier --write \" src/**/*.ts\" " ,
9
- "lint" : " tslint -p tsconfig.json" ,
9
+ "lint" : " eslint 'src/**/*.{js,ts}' .ts --quiet --fix" ,
10
+ "lint:no-fix" : " eslint 'src/**/*.{js,ts}' --ext .ts" ,
11
+ "lint:prettier" : " prettier --config .prettierrc \" src/**/*.ts\" " ,
10
12
"test" : " mocha -r ts-node/register -r jsdom-global/register **/*.spec.ts" ,
11
13
"prepare" : " npm run build" ,
12
14
"prePublish" : " npm run build"
34
36
"devDependencies" : {
35
37
"@types/chai" : " 4.1.3" ,
36
38
"@types/mocha" : " 8.0.3" ,
39
+ "@typescript-eslint/eslint-plugin" : " ^4.13.0" ,
40
+ "@typescript-eslint/parser" : " ^4.13.0" ,
37
41
"chai" : " 4.2.0" ,
42
+ "eslint" : " ^7.17.0" ,
43
+ "eslint-config-prettier" : " ^7.1.0" ,
44
+ "eslint-plugin-prettier" : " ^3.3.1" ,
45
+ "husky" : " ^4.3.7" ,
38
46
"jsdom" : " 16.4.0" ,
39
47
"jsdom-global" : " 3.0.2" ,
48
+ "lint-staged" : " ^10.5.3" ,
40
49
"mocha" : " 8.1.3" ,
41
50
"prettier" : " 2.1.2" ,
42
51
"ts-node" : " 9.0.0" ,
43
- "tslint" : " 6.1.3" ,
44
- "tslint-config-prettier" : " 1.18.0" ,
45
52
"typescript" : " 4.0.3"
46
53
}
47
54
}
Load Diff This file was deleted.
You can’t perform that action at this time.
0 commit comments