@enormora/eslint-config-ava 0.0.9 → 0.0.11

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/ava.js CHANGED
@@ -1,24 +1,15 @@
1
1
  import avaPlugin from 'eslint-plugin-ava';
2
- import { stylisticRuleSet } from './rule-sets/stylistic.js';
3
-
4
- const commonTestRules = {
5
- 'no-magic-numbers': 'off',
6
- '@typescript-eslint/no-magic-numbers': 'off',
7
- 'max-len': [
8
- 'error',
9
- {
10
- ...stylisticRuleSet.rules['@stylistic/max-len'][1],
11
- ignoreStrings: true
12
- }
13
- ]
14
- };
2
+ import { testRuleSet } from './rule-sets/test-rules.js';
15
3
 
16
4
  export const avaConfig = {
17
5
  plugins: {
18
6
  ava: avaPlugin
19
7
  },
20
8
  rules: {
21
- ...commonTestRules,
9
+ ...testRuleSet.rules,
10
+
11
+ 'no-magic-numbers': 'off',
12
+ '@typescript-eslint/no-magic-numbers': 'off',
22
13
 
23
14
  'id-length': ['error', { min: 2, properties: 'never', exceptions: ['t'] }],
24
15
 
package/package.json CHANGED
@@ -13,5 +13,5 @@
13
13
  "url": "git://github.com/enormora/eslint-config.git"
14
14
  },
15
15
  "type": "module",
16
- "version": "0.0.9"
16
+ "version": "0.0.11"
17
17
  }
@@ -0,0 +1,13 @@
1
+ import { stylisticRuleSet } from './stylistic.js';
2
+
3
+ export const testRuleSet = {
4
+ rules: {
5
+ '@stylistic/max-len': [
6
+ 'error',
7
+ {
8
+ ...stylisticRuleSet.rules['@stylistic/max-len'][1],
9
+ ignoreStrings: true
10
+ }
11
+ ]
12
+ }
13
+ };