@alexlit/config-eslint 43.0.0 → 43.2.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,3 +1,9 @@
1
+ # [43.2.0](https://github.com/alex-lit/config-eslint/compare/v43.1.0...v43.2.0) (2022-03-17)
2
+
3
+ # [43.1.0](https://github.com/alex-lit/config-eslint/compare/v43.0.1...v43.1.0) (2022-03-15)
4
+
5
+ ## [43.0.1](https://github.com/alex-lit/config-eslint/compare/v43.0.0...v43.0.1) (2022-03-14)
6
+
1
7
  # [43.0.0](https://github.com/alex-lit/config-eslint/compare/v42.6.0...v43.0.0) (2022-03-14)
2
8
 
3
9
  # [42.6.0](https://github.com/alex-lit/config-eslint/compare/v42.5.1...v42.6.0) (2022-03-09)
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@alexlit/config-eslint",
3
- "version": "43.0.0",
3
+ "version": "43.2.0",
4
4
  "private": false,
5
5
  "description": "eslint config",
6
6
  "keywords": [
@@ -40,12 +40,12 @@
40
40
  },
41
41
  "dependencies": {
42
42
  "@intlify/eslint-plugin-vue-i18n": "^1.4.0",
43
- "@typescript-eslint/eslint-plugin": "^5.14.0",
44
- "@typescript-eslint/parser": "^5.14.0",
43
+ "@typescript-eslint/eslint-plugin": "^5.15.0",
44
+ "@typescript-eslint/parser": "^5.15.0",
45
45
  "eslint": "^8.11.0",
46
46
  "eslint-config-airbnb-base": "^15.0.0",
47
47
  "eslint-config-prettier": "^8.5.0",
48
- "eslint-define-config": "^1.2.5",
48
+ "eslint-define-config": "^1.3.0",
49
49
  "eslint-import-resolver-alias": "^1.1.2",
50
50
  "eslint-plugin-array-func": "^3.1.7",
51
51
  "eslint-plugin-compat": "^4.0.2",
@@ -58,7 +58,7 @@
58
58
  "eslint-plugin-jest": "^26.1.1",
59
59
  "eslint-plugin-jest-dom": "^4.0.1",
60
60
  "eslint-plugin-jest-formatting": "^3.1.0",
61
- "eslint-plugin-jsdoc": "^38.0.3",
61
+ "eslint-plugin-jsdoc": "^38.0.4",
62
62
  "eslint-plugin-jsx-a11y": "^6.5.1",
63
63
  "eslint-plugin-lit": "^1.6.1",
64
64
  "eslint-plugin-lit-a11y": "^2.2.0",
@@ -76,7 +76,7 @@
76
76
  "eslint-plugin-quasar": "^1.1.0",
77
77
  "eslint-plugin-react": "^7.29.4",
78
78
  "eslint-plugin-react-hooks": "^4.3.0",
79
- "eslint-plugin-regexp": "^1.5.1",
79
+ "eslint-plugin-regexp": "^1.6.0",
80
80
  "eslint-plugin-security": "^1.4.0",
81
81
  "eslint-plugin-simple-import-sort": "^7.0.0",
82
82
  "eslint-plugin-sonarjs": "^0.12.0",
@@ -5,28 +5,29 @@
5
5
  module.exports = {
6
6
  overrides: [
7
7
  {
8
- files: [
9
- '**/.*.*',
10
- '**/pages/**/{0,1,2,3,4,5,6,7,8,9}*.vue',
11
- '**/pages/index.vue',
12
- ],
8
+ files: ['**/layouts/**/*.vue'],
13
9
 
14
10
  rules: {
15
- 'filenames/match-exported': 'off',
11
+ 'filenames/match-exported': ['error', 'kebab'],
16
12
  },
17
13
  },
18
14
  {
19
- files: ['**/layouts/**/*.vue'],
15
+ files: ['**/pages/**/*.vue'],
20
16
 
21
17
  rules: {
22
- 'filenames/match-exported': ['error', 'kebab'],
18
+ 'filenames/match-exported': ['error', 'kebab', /^_/],
23
19
  },
24
20
  },
21
+ // off
25
22
  {
26
- files: ['**/pages/**/*.vue'],
23
+ files: [
24
+ '**/.*.*',
25
+ '**/pages/**/{0,1,2,3,4,5,6,7,8,9}*.vue',
26
+ '**/pages/index.vue',
27
+ ],
27
28
 
28
29
  rules: {
29
- 'filenames/match-exported': ['error', 'kebab', /^_/],
30
+ 'filenames/match-exported': 'off',
30
31
  },
31
32
  },
32
33
  ],
@@ -1,3 +1,5 @@
1
+ /* eslint-disable unicorn/no-null */
2
+
1
3
  const ALLOW_BOOLEAN_PROPERTY_LIST = require('./allow-boolean-property-list.const');
2
4
  const BOOLEAN_PREFIXES = require('./boolean-prefixes.const');
3
5
  const ENGLISH_VERBS = require('./english-verbs.const');
@@ -10,7 +12,7 @@ module.exports = {
10
12
 
11
13
  overrides: [
12
14
  {
13
- files: ['*.d.ts'],
15
+ files: ['*.d.ts', '.*'],
14
16
 
15
17
  rules: {
16
18
  '@typescript-eslint/naming-convention': 'off',
@@ -58,7 +60,7 @@ module.exports = {
58
60
  selector: 'default',
59
61
  },
60
62
  {
61
- format: ['camelCase' /* 'UPPER_CASE' */],
63
+ format: ['camelCase'],
62
64
  selector: 'variable',
63
65
  },
64
66
  {
@@ -86,16 +88,16 @@ module.exports = {
86
88
  selector: 'interface',
87
89
  },
88
90
  {
89
- format: ['camelCase', 'UPPER_CASE', 'PascalCase', 'snake_case'],
91
+ format: null,
90
92
  leadingUnderscore: 'allow',
91
93
  selector: 'objectLiteralProperty',
92
94
  },
93
95
  {
94
- format: ['camelCase', 'UPPER_CASE', 'PascalCase'],
96
+ format: null,
95
97
  selector: 'objectLiteralMethod',
96
98
  },
97
99
  {
98
- format: ['camelCase', 'PascalCase', 'UPPER_CASE'],
100
+ format: null,
99
101
  modifiers: ['destructured'],
100
102
  selector: 'parameter',
101
103
  },
@@ -104,12 +106,6 @@ module.exports = {
104
106
  modifiers: ['const'],
105
107
  selector: 'variable',
106
108
  },
107
- {
108
- format: ['camelCase'],
109
- leadingUnderscore: 'allow',
110
- modifiers: ['destructured'],
111
- selector: 'variable',
112
- },
113
109
  {
114
110
  filter: {
115
111
  match: false,
@@ -122,7 +118,7 @@ module.exports = {
122
118
 
123
119
  prefix: BOOLEAN_PREFIXES,
124
120
 
125
- selector: ['variable', 'parameter', /* 'property', */ 'accessor'],
121
+ selector: ['accessor', 'parameter', 'variable'],
126
122
 
127
123
  types: ['boolean'],
128
124
  },
@@ -133,12 +129,7 @@ module.exports = {
133
129
 
134
130
  prefix: [...ENGLISH_VERBS, 'on'],
135
131
 
136
- selector: [
137
- 'function',
138
- 'classMethod',
139
- // 'objectLiteralMethod',
140
- // 'typeMethod',
141
- ],
132
+ selector: ['classMethod', 'function'],
142
133
  },
143
134
  ],
144
135
 
@@ -6,7 +6,7 @@ module.exports = {
6
6
 
7
7
  overrides: [
8
8
  {
9
- files: ['.stylelintrc.js'],
9
+ files: ['.*'],
10
10
 
11
11
  rules: {
12
12
  'unicorn/no-null': 'off',