@tpluscode/eslint-config 0.4.4 → 0.4.6

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.
@@ -6,9 +6,9 @@ jobs:
6
6
  lint:
7
7
  runs-on: ubuntu-latest
8
8
  steps:
9
- - uses: actions/checkout@v2
10
- - uses: actions/setup-node@v2.1.2
9
+ - uses: actions/checkout@v4
10
+ - uses: actions/setup-node@v4
11
11
  with:
12
12
  node-version: 14
13
- - run: yarn
14
- - run: yarn test
13
+ - run: npm ci
14
+ - run: npm test
@@ -5,28 +5,26 @@ on:
5
5
  branches:
6
6
  - master
7
7
 
8
+ concurrency: ${{ github.workflow }}-${{ github.ref }}
9
+
8
10
  jobs:
9
11
  release:
10
12
  name: Release
11
13
  runs-on: ubuntu-latest
12
14
  steps:
13
15
  - name: Checkout Repo
14
- uses: actions/checkout@master
15
- with:
16
- # This makes Actions fetch all Git history so that Changesets can generate changelogs with the correct commits
17
- fetch-depth: 0
16
+ uses: actions/checkout@v4
18
17
 
19
- - name: Setup Node.js
20
- uses: actions/setup-node@v2.1.2
18
+ - uses: actions/setup-node@v4
21
19
  with:
22
- node-version: 14
20
+ node-version: "lts/*"
23
21
 
24
22
  - name: Install Dependencies
25
- run: yarn
23
+ run: npm ci
26
24
 
27
25
  - name: Create Release Pull Request or Publish to npm
28
26
  id: changesets
29
- uses: changesets/action@master
27
+ uses: changesets/action@v1
30
28
  with:
31
29
  # This expects you to have a script called release which does a build for your packages and calls changeset publish
32
30
  publish: yarn release
package/.husky/pre-commit CHANGED
@@ -1,4 +1 @@
1
- #!/bin/sh
2
- . "$(dirname "$0")/_/husky.sh"
3
-
4
1
  npx lint-staged
package/CHANGELOG.md CHANGED
@@ -1,5 +1,17 @@
1
1
  # Changelog
2
2
 
3
+ ## 0.4.6
4
+
5
+ ### Patch Changes
6
+
7
+ - 3c0ac2e: Added `eslint-plugin-rdf`
8
+
9
+ ## 0.4.5
10
+
11
+ ### Patch Changes
12
+
13
+ - ffd1199: Add rules to automatically remove unused imports
14
+
3
15
  ## 0.4.4
4
16
 
5
17
  ### Patch Changes
package/index.js CHANGED
@@ -24,7 +24,8 @@ module.exports = {
24
24
  'no-dupe-class-members': 'off',
25
25
  '@typescript-eslint/no-dupe-class-members': ['error'],
26
26
  'no-redeclare': 'off',
27
- '@typescript-eslint/no-redeclare': 'warn'
27
+ '@typescript-eslint/no-redeclare': 'warn',
28
+ '@typescript-eslint/no-unused-vars': 'off'
28
29
  },
29
30
  settings: {
30
31
  'import/parsers': {
package/js.js CHANGED
@@ -3,11 +3,14 @@ module.exports = {
3
3
  'standard',
4
4
  'plugin:import/errors',
5
5
  'plugin:import/warnings',
6
- 'plugin:require-extensions/recommended'
6
+ 'plugin:require-extensions/recommended',
7
+ 'plugin:rdf/recommended'
7
8
  ],
8
9
  plugins: [
9
10
  'import',
10
- 'require-extensions'
11
+ 'require-extensions',
12
+ 'unused-imports',
13
+ 'rdf'
11
14
  ],
12
15
  rules: {
13
16
  indent: ['error', 2],
@@ -43,11 +46,14 @@ module.exports = {
43
46
  ],
44
47
  optionalDependencies: false
45
48
  }
49
+ ],
50
+ 'no-unused-vars': 'off',
51
+ 'unused-imports/no-unused-imports': 'error',
52
+ 'unused-imports/no-unused-vars': [
53
+ 'warn',
54
+ { vars: 'all', varsIgnorePattern: '^_', args: 'after-used', argsIgnorePattern: '^_' }
46
55
  ]
47
56
  },
48
- settings: {
49
- 'import/core-modules': ['rdf-js']
50
- },
51
57
  overrides: [
52
58
  {
53
59
  files: [
package/package.json CHANGED
@@ -1,10 +1,10 @@
1
1
  {
2
2
  "name": "@tpluscode/eslint-config",
3
- "version": "0.4.4",
3
+ "version": "0.4.6",
4
4
  "description": "",
5
5
  "main": "index.js",
6
6
  "scripts": {
7
- "prepare": "husky install",
7
+ "prepare": "husky",
8
8
  "test": "eslint .",
9
9
  "release": "changeset publish"
10
10
  },
@@ -12,10 +12,11 @@
12
12
  "eslint": ">=6",
13
13
  "eslint-config-standard": ">=11",
14
14
  "eslint-plugin-import": ">=2",
15
+ "eslint-plugin-n": ">=15",
15
16
  "eslint-plugin-node": ">=11",
16
17
  "eslint-plugin-promise": ">=6",
17
- "eslint-plugin-n": ">=15",
18
18
  "eslint-plugin-require-extensions": ">=0.1.3",
19
+ "eslint-plugin-unused-imports": "^3.0.0",
19
20
  "standard": ">=11"
20
21
  },
21
22
  "optionalDependencies": {
@@ -25,14 +26,15 @@
25
26
  },
26
27
  "devDependencies": {
27
28
  "@changesets/cli": "^2.26.0",
28
- "eslint": "^7.23.0",
29
- "eslint-config-standard": "^16.0.2",
30
- "eslint-plugin-import": "^2.22.1",
29
+ "eslint": "^8",
30
+ "eslint-config-standard": "^17.1.0",
31
+ "eslint-plugin-import": "^2.29.1",
31
32
  "eslint-plugin-node": "^11.1.0",
32
- "eslint-plugin-promise": "^6.1.1",
33
- "standard": "^16.0.3",
34
- "lint-staged": "^10.5.4",
35
- "husky": "^6.0.0"
33
+ "eslint-plugin-promise": "^6.2.0",
34
+ "eslint-plugin-unused-imports": "^3.0.0",
35
+ "standard": "^17.1.0",
36
+ "lint-staged": "^15.2.7",
37
+ "husky": "^9.0.11"
36
38
  },
37
39
  "repository": {
38
40
  "type": "git",