@tpluscode/eslint-config 0.4.9 → 0.6.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,21 @@
1
1
  # Changelog
2
2
 
3
+ ## 0.6.0
4
+
5
+ ### Minor Changes
6
+
7
+ - 9f0174f: Added recommended mocha rules
8
+
9
+ ### Patch Changes
10
+
11
+ - ca15bcd: Allow test dev deps is `tests` directory (plural)
12
+
13
+ ## 0.5.0
14
+
15
+ ### Minor Changes
16
+
17
+ - 50bd0e7: Enabled rule `@typescript-eslint/consistent-type-exports`
18
+
3
19
  ## 0.4.9
4
20
 
5
21
  ### Patch Changes
package/README.md CHANGED
@@ -46,3 +46,5 @@ In a TypeScript project:
46
46
  }
47
47
  }
48
48
  ```
49
+
50
+ `parserOptions.project` is required for TypeScript projects unless the rule `@typescript-eslint/consistent-type-exports` is disabled.
package/index.js CHANGED
@@ -26,6 +26,7 @@ module.exports = {
26
26
  'no-redeclare': 'off',
27
27
  '@typescript-eslint/no-redeclare': 'warn',
28
28
  '@typescript-eslint/no-unused-vars': 'off',
29
+ '@typescript-eslint/consistent-type-exports': 'error',
29
30
  '@typescript-eslint/consistent-type-imports': 'error'
30
31
  },
31
32
  settings: {
package/js.js CHANGED
@@ -4,13 +4,15 @@ module.exports = {
4
4
  'plugin:import/errors',
5
5
  'plugin:import/warnings',
6
6
  'plugin:require-extensions/recommended',
7
- 'plugin:rdf/recommended'
7
+ 'plugin:rdf/recommended',
8
+ 'plugin:mocha/recommended'
8
9
  ],
9
10
  plugins: [
10
11
  'import',
11
12
  'require-extensions',
12
13
  'unused-imports',
13
- 'rdf'
14
+ 'rdf',
15
+ 'mocha'
14
16
  ],
15
17
  rules: {
16
18
  indent: ['error', 2],
@@ -33,14 +35,17 @@ module.exports = {
33
35
  {
34
36
  devDependencies: [
35
37
  '**/test/**/*.ts',
38
+ '**/tests/**/*.ts',
36
39
  '*.test.ts',
37
40
  '*.spec.ts',
38
41
  '*.test.js',
39
42
  '*.spec.js',
40
43
  '**/test/**/*.js',
44
+ '**/tests/**/*.js',
41
45
  '*.test.js',
42
46
  '*.spec.js',
43
47
  '**/test/**/*.mjs',
48
+ '**/tests/**/*.mjs',
44
49
  '*.test.mjs',
45
50
  '*.spec.mjs'
46
51
  ],
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tpluscode/eslint-config",
3
- "version": "0.4.9",
3
+ "version": "0.6.0",
4
4
  "description": "",
5
5
  "main": "index.js",
6
6
  "scripts": {
@@ -30,6 +30,7 @@
30
30
  "eslint": "^8",
31
31
  "eslint-config-standard": "^17.1.0",
32
32
  "eslint-plugin-import": "^2.29.1",
33
+ "eslint-plugin-mocha": "^10.5.0",
33
34
  "eslint-plugin-node": "^11.1.0",
34
35
  "eslint-plugin-promise": "^6.2.0",
35
36
  "eslint-plugin-rdf": "^1.0",