@hearthsim/eslint-config-typescript 2.0.3 → 3.0.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -5,25 +5,28 @@ on:
5
5
  tags:
6
6
  - 'v*.*.*'
7
7
 
8
+ permissions:
9
+ contents: read
10
+ id-token: write
11
+
8
12
  jobs:
9
13
  build:
10
14
  runs-on: ubuntu-latest
11
15
  steps:
12
- - uses: actions/checkout@v2
13
- - uses: actions/setup-node@v1
16
+ - uses: actions/checkout@v4
17
+ - uses: actions/setup-node@v4
14
18
  with:
15
- node-version: 12
19
+ node-version: 22
16
20
  - run: yarn install --frozen-lockfile
17
21
 
18
22
  publish-npm:
19
23
  needs: build
20
24
  runs-on: ubuntu-latest
21
25
  steps:
22
- - uses: actions/checkout@v2
23
- - uses: actions/setup-node@v1
26
+ - uses: actions/checkout@v4
27
+ - uses: actions/setup-node@v4
24
28
  with:
25
- node-version: 12
29
+ node-version: 22
26
30
  registry-url: https://registry.npmjs.org/
27
- - run: yarn publish --access public
28
- env:
29
- NODE_AUTH_TOKEN: ${{secrets.NPM_HEARTHSIM_TOKEN}}
31
+ - run: npm install -g npm@latest
32
+ - run: npm publish --access public
package/index.js CHANGED
@@ -14,7 +14,7 @@ module.exports = {
14
14
  files: ["**/*.js", "**/*.jsx"],
15
15
  rules: {
16
16
  // require is allowed in js, as we may not have import available
17
- "@typescript-eslint/no-var-requires": "off",
17
+ "@typescript-eslint/no-require-imports": "off",
18
18
  },
19
19
  },
20
20
  {
@@ -45,8 +45,9 @@ module.exports = {
45
45
  rules: {
46
46
  "@typescript-eslint/no-explicit-any": "off",
47
47
  "@typescript-eslint/explicit-function-return-type": "off",
48
- "@typescript-eslint/no-empty-interface": "warn",
49
- "@typescript-eslint/ban-types": [
48
+ // allowObjectTypes is off here since bare `{}` is instead handled below with our custom message
49
+ "@typescript-eslint/no-empty-object-type": ["warn", { allowObjectTypes: "always" }],
50
+ "@typescript-eslint/no-restricted-types": [
50
51
  "warn",
51
52
  {
52
53
  types: {
@@ -55,7 +56,6 @@ module.exports = {
55
56
  "If you're trying to do something like React.FC<{}>, use React.FC instead",
56
57
  },
57
58
  },
58
- extendDefaults: true,
59
59
  },
60
60
  ],
61
61
  // non-null assertions aren't great, but sometimes a last resort
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@hearthsim/eslint-config-typescript",
3
- "version": "2.0.3",
3
+ "version": "3.0.1",
4
4
  "description": "HearthSim's presets for ESLint, with Typescript support.",
5
5
  "repository": "git@github.com:HearthSim/eslint-config-typescript.git",
6
6
  "author": "Benedict Etzel <benedict@hearthsim.net>",
@@ -10,21 +10,21 @@
10
10
  "format": "prettier --write *.js"
11
11
  },
12
12
  "peerDependencies": {
13
- "@typescript-eslint/eslint-plugin": "^5.4.0",
14
- "eslint": "^6.8.0 || ^7.2.0 || ^8.0.0",
13
+ "@typescript-eslint/eslint-plugin": "^8.0.0",
14
+ "eslint": "^8.57.0 || ^9.0.0",
15
15
  "eslint-plugin-import": "^2.25.3",
16
16
  "eslint-plugin-jest": "^25.2.4",
17
17
  "prettier": ">=2.0.0",
18
- "typescript": ">=2.8.0"
18
+ "typescript": ">=4.8.4"
19
19
  },
20
20
  "dependencies": {
21
- "@typescript-eslint/parser": "5.4.0",
21
+ "@typescript-eslint/parser": "8.62.1",
22
22
  "eslint-config-prettier": "^8.3.0"
23
23
  },
24
24
  "devDependencies": {
25
- "eslint": "^8.0.0",
25
+ "eslint": "^8.57.0",
26
26
  "prettier": "^2.2.1",
27
- "typescript": "^4.0.0"
27
+ "typescript": "^5.0.0"
28
28
  },
29
29
  "publishConfig": {
30
30
  "access": "public"