Skip to content

Commit 0a8f5b6

Browse files
committed
Update eslint, update eslint config and fix eslint errors
1 parent 87655b8 commit 0a8f5b6

File tree

6 files changed

+532
-1015
lines changed

6 files changed

+532
-1015
lines changed

.eslintrc.json

Lines changed: 7 additions & 32 deletions
Original file line numberDiff line numberDiff line change
@@ -18,45 +18,20 @@
1818
"ava"
1919
],
2020
"extends": [
21-
"airbnb-typescript",
22-
"@octetstream",
23-
"plugin:ava/recommended"
21+
"plugin:ava/recommended",
22+
"@octetstream/eslint-config/esm/typescript"
2423
],
2524
"rules": {
26-
"no-void": 0,
27-
"func-names": 0,
28-
"no-shadow": 0,
2925
"no-use-before-define": 0,
30-
"max-len": [
31-
"error",
32-
{
33-
"code": 80,
34-
"ignoreComments": true
35-
}
36-
],
37-
"import/no-unresolved": [
38-
"error",
39-
{
40-
"ignore": [
41-
"dinky.js"
42-
]
43-
}
44-
],
4526
"no-plusplus": 0,
4627
// These two rules are false-positive and have no solution for TS
4728
"no-redeclare": 0,
4829
"no-dupe-class-members": 0,
4930
"lines-between-class-members": 0,
50-
"@typescript-eslint/semi": 0,
51-
"@typescript-eslint/no-shadow": 0,
52-
"@typescript-eslint/quotes": [
53-
"error",
54-
"double"
55-
],
56-
"@typescript-eslint/object-curly-spacing": [
57-
"error",
58-
"never"
59-
],
60-
"@typescript-eslint/comma-dangle": 0
31+
32+
"import/no-extraneous-dependencies": ["error", {
33+
"devDependencies": ["**/*.test.ts"]
34+
}],
35+
"import/extensions": ["error", {"ts": "never"}]
6136
}
6237
}

.npmrc

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
strict-peer-dependencies=false

package.json

Lines changed: 14 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -38,26 +38,27 @@
3838
"author": "Nick K.",
3939
"license": "MIT",
4040
"devDependencies": {
41-
"@octetstream/eslint-config": "5.0.0",
41+
"@octetstream/eslint-config": "6.2.1",
4242
"@types/mime-types": "2.1.1",
43-
"@types/node": "17.0.35",
44-
"@typescript-eslint/eslint-plugin": "5.18.0",
45-
"@typescript-eslint/parser": "5.18.0",
46-
"ava": "4.2.0",
43+
"@types/node": "17.0.42",
44+
"@typescript-eslint/eslint-plugin": "5.27.1",
45+
"@typescript-eslint/parser": "5.27.1",
46+
"ava": "4.3.0",
4747
"c8": "7.11.3",
4848
"del-cli": "4.0.1",
49-
"eslint": "7.32.0",
50-
"eslint-config-airbnb-typescript": "12.3.1",
49+
"eslint": "8.17.0",
50+
"eslint-config-airbnb-typescript": "17.0.0",
5151
"eslint-import-resolver-typescript": "2.7.1",
5252
"eslint-plugin-ava": "13.2.0",
53-
"eslint-plugin-jsx-a11y": "6.4.1",
54-
"eslint-plugin-react": "7.26.1",
55-
"formdata-node": "4.3.2",
53+
"eslint-plugin-import": "^2.26.0",
54+
"eslint-plugin-jsx-a11y": "6.5.1",
55+
"eslint-plugin-react": "7.30.0",
56+
"formdata-node": "4.3.3",
5657
"husky": "8.0.1",
57-
"lint-staged": "12.4.1",
58+
"lint-staged": "13.0.1",
5859
"pinst": "3.0.0",
59-
"ts-node": "10.7.0",
60+
"ts-node": "10.8.1",
6061
"ttypescript": "1.5.13",
61-
"typescript": "4.6.4"
62+
"typescript": "4.7.3"
6263
}
6364
}

0 commit comments

Comments
 (0)