eslint-stylistic-airbnb 1.0.1 → 1.0.2

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.
Files changed (2) hide show
  1. package/package.json +1 -1
  2. package/rules/style.js +5 -1
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "eslint-stylistic-airbnb",
3
- "version": "1.0.1",
3
+ "version": "1.0.2",
4
4
  "description": "Airbnb config for eslint using stylistic plugin",
5
5
  "main": "index.js",
6
6
  "repository": {
package/rules/style.js CHANGED
@@ -43,13 +43,17 @@ module.exports = {
43
43
 
44
44
  // require trailing commas in multiline object literals
45
45
  // https://eslint.org/docs/rules/comma-dangle
46
- // https://eslint.style/rules/js/comma-dangle
46
+ // https://eslint.style/rules/default/comma-dangle
47
47
  '@stylistic/comma-dangle': ['error', {
48
48
  arrays: 'always-multiline',
49
49
  objects: 'always-multiline',
50
50
  imports: 'always-multiline',
51
51
  exports: 'always-multiline',
52
52
  functions: 'always-multiline',
53
+ // ts specific values https://eslint.style/rules/default/comma-dangle#ts-comma-dangle
54
+ enums: 'always-multiline',
55
+ generics: 'always-multiline',
56
+ tuples: 'always-multiline',
53
57
  }],
54
58
 
55
59
  // enforce spacing before and after comma