Skip to content

Commit fc0ca20

Browse files
author
Mark George
committed
Linting
1 parent 8a8ebec commit fc0ca20

18 files changed

+5415
-821
lines changed

.eslintignore

+1
Original file line numberDiff line numberDiff line change
@@ -3,4 +3,5 @@
33
**/vendor/**
44
**/dist/**
55
**/tests/**
6+
**/lib/**
67
bin/*

.eslintrc

+6-3
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
2-
"plugins": ["jest"],
2+
"plugins": ["jest", "@typescript-eslint/eslint-plugin"],
33
"env": {
44
"browser": true,
55
"node": true,
@@ -13,12 +13,15 @@
1313
},
1414
"extends": [
1515
"eslint:recommended",
16+
"plugin:@typescript-eslint/eslint-recommended",
17+
"plugin:@typescript-eslint/recommended",
1618
"plugin:@wordpress/eslint-plugin/recommended"
1719
],
1820
"rules": {
19-
"no-unused-vars": [
21+
"@typescript-eslint/no-unused-vars": [
2022
"error",
2123
{ "args": "after-used", "argsIgnorePattern": "^_" }
22-
]
24+
],
25+
"no-useless-constructor": "off"
2326
}
2427
}

.prettierrc.json

+12
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
{
2+
"useTabs": true,
3+
"tabWidth": 2,
4+
"printWidth": 100,
5+
"singleQuote": true,
6+
"trailingComma": "es5",
7+
"bracketSpacing": true,
8+
"parenSpacing": true,
9+
"jsxBracketSameLine": false,
10+
"semi": true,
11+
"arrowParens": "avoid"
12+
}

0 commit comments

Comments
 (0)