@ololoepepe/eslint-config 0.0.12 → 0.0.14

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ololoepepe/eslint-config",
3
- "version": "0.0.12",
3
+ "version": "0.0.14",
4
4
  "description": "ESLint config",
5
5
  "main": "src/index.js",
6
6
  "scripts": {
@@ -69,8 +69,28 @@ module.exports = {
69
69
  orderImportKind: 'ignore'
70
70
  },
71
71
  distinctGroup: true,
72
- groups: ['builtin', 'external', 'internal', 'parent', 'sibling', 'index', 'object', 'unknown', 'type'],
72
+ groups: ['builtin', 'external', 'type', 'internal', 'parent', 'sibling', 'index', 'object', 'unknown'],
73
73
  'newlines-between': 'always-and-inside-groups',
74
+ pathGroups: [{
75
+ group: 'internal',
76
+ pattern: '#src/**'
77
+ }, {
78
+ group: 'parent',
79
+ pattern: '../**/styles.css',
80
+ position: 'after'
81
+ }, {
82
+ group: 'parent',
83
+ pattern: '../**/styles.less',
84
+ position: 'after'
85
+ }, {
86
+ group: 'sibling',
87
+ pattern: './**/styles.css',
88
+ position: 'after'
89
+ }, {
90
+ group: 'sibling',
91
+ pattern: './**/styles.less',
92
+ position: 'after'
93
+ }],
74
94
  warnOnUnassignedImports: false
75
95
  }],
76
96
  'import/prefer-default-export': 'off',
package/src/rules/no.js CHANGED
@@ -161,8 +161,7 @@ module.exports = {
161
161
  }],
162
162
  'no-setter-return': 'error',
163
163
  'no-shadow': ['error', {
164
- allow: ['hasOwnProperty', 'length'],
165
- builtinGlobals: true,
164
+ builtinGlobals: false,
166
165
  hoist: 'functions',
167
166
  ignoreOnInitialization: false
168
167
  }],