@plugjs/eslint-plugin 0.1.10 → 0.1.12
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/configs/typescript.cjs +10 -11
- package/package.json +3 -3
package/configs/typescript.cjs
CHANGED
|
@@ -38,8 +38,8 @@ module.exports = {
|
|
|
38
38
|
],
|
|
39
39
|
rules: {
|
|
40
40
|
// No logging / no debugging
|
|
41
|
-
'no-console': 'warn',
|
|
42
|
-
'no-debugger': 'warn',
|
|
41
|
+
'no-console': [ 'warn' ],
|
|
42
|
+
'no-debugger': [ 'warn' ],
|
|
43
43
|
|
|
44
44
|
// Indenting, but for TypeScript
|
|
45
45
|
'indent': [ 'off' ],
|
|
@@ -78,8 +78,7 @@ module.exports = {
|
|
|
78
78
|
// Always have newline character at the end of the file
|
|
79
79
|
'eol-last': [ 'error', 'always' ],
|
|
80
80
|
|
|
81
|
-
//
|
|
82
|
-
// 'max-len': [ 'error', { 'code': 120, 'comments': 80 } ],
|
|
81
|
+
// No constraints for the max line length
|
|
83
82
|
'max-len': [ 'off' ],
|
|
84
83
|
|
|
85
84
|
// No more than 2 blank lines
|
|
@@ -118,9 +117,10 @@ module.exports = {
|
|
|
118
117
|
} ],
|
|
119
118
|
|
|
120
119
|
// Import specifics
|
|
121
|
-
'import/no-cycle': 'error',
|
|
122
|
-
'import/no-duplicates': 'error',
|
|
123
|
-
'import/no-extraneous-dependencies': 'off',
|
|
120
|
+
'import/no-cycle': [ 'error' ],
|
|
121
|
+
'import/no-duplicates': [ 'error' ],
|
|
122
|
+
'import/no-extraneous-dependencies': [ 'off' ],
|
|
123
|
+
'import/consistent-type-specifier-style': [ 'error', 'prefer-top-level' ],
|
|
124
124
|
'import/order': [ 'error', {
|
|
125
125
|
'groups': [ 'builtin', 'external', 'internal', [ 'parent', 'sibling' ], 'index', 'object', 'type' ],
|
|
126
126
|
'newlines-between': 'always',
|
|
@@ -128,9 +128,9 @@ module.exports = {
|
|
|
128
128
|
} ],
|
|
129
129
|
|
|
130
130
|
// Unicorn extras
|
|
131
|
-
'unicorn/empty-brace-spaces': 'error',
|
|
132
|
-
'unicorn/no-instanceof-array': 'error',
|
|
133
|
-
'unicorn/prefer-node-protocol': 'error',
|
|
131
|
+
'unicorn/empty-brace-spaces': [ 'error' ],
|
|
132
|
+
'unicorn/no-instanceof-array': [ 'error' ],
|
|
133
|
+
'unicorn/prefer-node-protocol': [ 'error' ],
|
|
134
134
|
|
|
135
135
|
// Turn off specific JavaScript rules
|
|
136
136
|
'guard-for-in': [ 'off' ], // no errors on for ... in
|
|
@@ -185,5 +185,4 @@ module.exports = {
|
|
|
185
185
|
'sourceType': 'module',
|
|
186
186
|
},
|
|
187
187
|
} ],
|
|
188
|
-
|
|
189
188
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@plugjs/eslint-plugin",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.12",
|
|
4
4
|
"description": "Shared ESLint configurations and extras",
|
|
5
5
|
"main": "./index.cjs",
|
|
6
6
|
"author": "Team Juit <developers@juit.com>",
|
|
@@ -14,8 +14,8 @@
|
|
|
14
14
|
},
|
|
15
15
|
"dependencies": {
|
|
16
16
|
"eslint-config-google": "^0.14.0",
|
|
17
|
-
"eslint-import-resolver-typescript": "^3.
|
|
18
|
-
"eslint-plugin-import": "^2.28.
|
|
17
|
+
"eslint-import-resolver-typescript": "^3.6.0",
|
|
18
|
+
"eslint-plugin-import": "^2.28.1",
|
|
19
19
|
"eslint-plugin-unicorn": "^48.0.1"
|
|
20
20
|
},
|
|
21
21
|
"files": [
|