@plugjs/eslint-plugin 0.1.1 → 0.1.3
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 +14 -8
- package/package.json +7 -4
package/configs/typescript.cjs
CHANGED
|
@@ -120,12 +120,7 @@ module.exports = {
|
|
|
120
120
|
// Import specifics
|
|
121
121
|
'import/no-cycle': 'error',
|
|
122
122
|
'import/no-duplicates': 'error',
|
|
123
|
-
'import/no-extraneous-dependencies':
|
|
124
|
-
'devDependencies': [ 'test/**', 'build.ts' ],
|
|
125
|
-
'peerDependencies': true,
|
|
126
|
-
'optionalDependencies': true,
|
|
127
|
-
'bundledDependencies': false,
|
|
128
|
-
} ],
|
|
123
|
+
'import/no-extraneous-dependencies': 'off',
|
|
129
124
|
'import/order': [ 'error', {
|
|
130
125
|
'groups': [ 'builtin', 'external', 'internal', [ 'parent', 'sibling' ], 'index', 'object', 'type' ],
|
|
131
126
|
'newlines-between': 'always',
|
|
@@ -168,16 +163,27 @@ module.exports = {
|
|
|
168
163
|
'@typescript-eslint/no-floating-promises': [ 'off' ],
|
|
169
164
|
'@typescript-eslint/explicit-function-return-type': [ 'off' ],
|
|
170
165
|
},
|
|
166
|
+
}, {
|
|
167
|
+
files: [ 'src/**' ],
|
|
168
|
+
rules: {
|
|
169
|
+
// Turn _ON_ dependencies checks only for sources
|
|
170
|
+
'import/no-extraneous-dependencies': [ 'error', {
|
|
171
|
+
'devDependencies': true,
|
|
172
|
+
'peerDependencies': true,
|
|
173
|
+
'optionalDependencies': true,
|
|
174
|
+
'bundledDependencies': false,
|
|
175
|
+
} ],
|
|
176
|
+
},
|
|
171
177
|
}, {
|
|
172
178
|
files: [ '*.cjs' ],
|
|
173
179
|
parserOptions: {
|
|
174
180
|
'sourceType': 'script',
|
|
175
|
-
}
|
|
181
|
+
},
|
|
176
182
|
}, {
|
|
177
183
|
files: [ '*.mjs' ],
|
|
178
184
|
parserOptions: {
|
|
179
185
|
'sourceType': 'module',
|
|
180
|
-
}
|
|
186
|
+
},
|
|
181
187
|
} ],
|
|
182
188
|
|
|
183
189
|
}
|
package/package.json
CHANGED
|
@@ -1,19 +1,22 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@plugjs/eslint-plugin",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.3",
|
|
4
4
|
"description": "Shared ESLint configurations and extras",
|
|
5
5
|
"main": "./index.cjs",
|
|
6
6
|
"author": "Team Juit <developers@juit.com>",
|
|
7
7
|
"license": "Apache-2.0",
|
|
8
|
+
"scripts": {
|
|
9
|
+
"build": "eslint *.cjs configs/*.cjs"
|
|
10
|
+
},
|
|
8
11
|
"peerDependencies": {
|
|
9
12
|
"@typescript-eslint/eslint-plugin": ">=5",
|
|
10
13
|
"@typescript-eslint/parser": ">=5"
|
|
11
14
|
},
|
|
12
15
|
"dependencies": {
|
|
13
16
|
"eslint-config-google": "^0.14.0",
|
|
14
|
-
"eslint-import-resolver-typescript": "^3.5.
|
|
15
|
-
"eslint-plugin-import": "^2.
|
|
16
|
-
"eslint-plugin-unicorn": "^
|
|
17
|
+
"eslint-import-resolver-typescript": "^3.5.3",
|
|
18
|
+
"eslint-plugin-import": "^2.27.5",
|
|
19
|
+
"eslint-plugin-unicorn": "^46.0.0"
|
|
17
20
|
},
|
|
18
21
|
"files": [
|
|
19
22
|
"*.md",
|