@tpluscode/eslint-config 1.1.0 → 2.1.0

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.
package/CHANGELOG.md CHANGED
@@ -1,5 +1,15 @@
1
1
  # Changelog
2
2
 
3
+ ## 2.1.0
4
+ ### Minor Changes
5
+
6
+ - 70dffbf: Set `ignoreRestArgs` of `@typescript-eslint/no-explicit-any` rule
7
+
8
+ ## 2.0.0
9
+ ### Major Changes
10
+
11
+ - fada491: Added eslint stylistic plugin
12
+
3
13
  ## 1.1.0
4
14
  ### Minor Changes
5
15
 
package/index.js CHANGED
@@ -46,6 +46,9 @@ export default [
46
46
  '@typescript-eslint/no-empty-object-type': ['error', {
47
47
  allowInterfaces: 'with-single-extends',
48
48
  }],
49
+ '@typescript-eslint/no-explicit-any': ['error', {
50
+ ignoreRestArgs: true,
51
+ }],
49
52
  },
50
53
  },
51
54
  {
package/js.js CHANGED
@@ -7,6 +7,7 @@ import n from 'eslint-plugin-n'
7
7
  import promise from 'eslint-plugin-promise'
8
8
  import rdf from 'eslint-plugin-rdf'
9
9
  import unusedImports from 'eslint-plugin-unused-imports'
10
+ import stylistic from '@stylistic/eslint-plugin'
10
11
 
11
12
  const require = createRequire(import.meta.url)
12
13
  const requireExtensions = require('eslint-plugin-require-extensions')
@@ -17,6 +18,10 @@ function rulesFrom(config) {
17
18
 
18
19
  export default [
19
20
  js.configs.recommended,
21
+ {
22
+ plugins: { '@stylistic': stylistic },
23
+ },
24
+ stylistic.configs['recommended'],
20
25
  {
21
26
  files: ['**/*.{js,cjs,mjs}'],
22
27
  languageOptions: {
@@ -28,7 +33,7 @@ export default [
28
33
  },
29
34
  },
30
35
  plugins: {
31
- import: importPlugin,
36
+ 'import': importPlugin,
32
37
  mocha,
33
38
  n,
34
39
  promise,
@@ -49,7 +54,7 @@ export default [
49
54
  ...rulesFrom(requireExtensions.configs.recommended),
50
55
  ...rulesFrom(mocha.configs.recommended),
51
56
 
52
- indent: ['error', 2],
57
+ 'indent': ['error', 2],
53
58
  'no-console': 'error',
54
59
  'import/no-unresolved': 'error',
55
60
  'import/extensions': 'off',
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tpluscode/eslint-config",
3
- "version": "1.1.0",
3
+ "version": "2.1.0",
4
4
  "type": "module",
5
5
  "main": "index.js",
6
6
  "scripts": {
@@ -17,6 +17,7 @@
17
17
  },
18
18
  "dependencies": {
19
19
  "@eslint/js": ">=9 <11",
20
+ "@stylistic/eslint-plugin": "^5.10.0",
20
21
  "globals": "^15.0.0"
21
22
  },
22
23
  "peerDependencies": {
@@ -47,8 +48,8 @@
47
48
  "eslint-plugin-rdf": "^2.0.1",
48
49
  "eslint-plugin-require-extensions": "^0.1.3",
49
50
  "eslint-plugin-unused-imports": "^4.4.1",
50
- "lint-staged": "^15.2.7",
51
- "husky": "^9.0.11"
51
+ "husky": "^9.0.11",
52
+ "lint-staged": "^15.2.7"
52
53
  },
53
54
  "repository": {
54
55
  "type": "git",