@willbooster/eslint-config-js 6.2.1 → 6.5.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.
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
const path = require('path');
|
|
2
2
|
|
|
3
3
|
module.exports = {
|
|
4
|
-
'./**/*.{css,htm,html,js,json,jsx,md,scss,ts,tsx,vue,yaml,yml}': (files) => {
|
|
4
|
+
'./**/*.{cjs,css,htm,html,js,json,json5,jsx,md,mjs,scss,ts,tsx,vue,yaml,yml}': (files) => {
|
|
5
5
|
const filteredFiles = files
|
|
6
|
-
.filter((file) => !file.includes('/test-fixtures/')
|
|
6
|
+
.filter((file) => !file.includes('/test-fixtures/'))
|
|
7
7
|
.map((file) => path.relative('', file));
|
|
8
8
|
if (filteredFiles.length === 0) return [];
|
|
9
9
|
const commands = [`prettier --write ${filteredFiles.join(' ')}`];
|
package/.prettierignore
CHANGED
|
@@ -10,11 +10,14 @@ no-format/
|
|
|
10
10
|
test-fixtures/
|
|
11
11
|
*.d.ts
|
|
12
12
|
*.min.js
|
|
13
|
+
.yarn/
|
|
14
|
+
.pnp.js
|
|
13
15
|
|
|
14
16
|
|
|
15
17
|
.devcontainer/
|
|
16
18
|
dist/
|
|
17
19
|
temp/
|
|
20
|
+
Icon[
|
|
18
21
|
|
|
19
22
|
# Created by https://www.toptal.com/developers/gitignore/api/windows
|
|
20
23
|
# Edit at https://www.toptal.com/developers/gitignore?templates=windows
|
|
@@ -114,6 +117,9 @@ Temporary Items
|
|
|
114
117
|
.idea/**/dictionaries
|
|
115
118
|
.idea/**/shelf
|
|
116
119
|
|
|
120
|
+
# AWS User-specific
|
|
121
|
+
.idea/**/aws.xml
|
|
122
|
+
|
|
117
123
|
# Generated files
|
|
118
124
|
.idea/**/contentModel.xml
|
|
119
125
|
|
|
@@ -219,11 +225,17 @@ fabric.properties
|
|
|
219
225
|
!.vscode/extensions.json
|
|
220
226
|
*.code-workspace
|
|
221
227
|
|
|
228
|
+
# Local History for Visual Studio Code
|
|
229
|
+
.history/
|
|
230
|
+
|
|
222
231
|
### VisualStudioCode Patch ###
|
|
223
232
|
# Ignore all local history of files
|
|
224
233
|
.history
|
|
225
234
|
.ionide
|
|
226
235
|
|
|
236
|
+
# Support for Project snippet scope
|
|
237
|
+
!.vscode/*.code-snippets
|
|
238
|
+
|
|
227
239
|
# End of https://www.toptal.com/developers/gitignore/api/visualstudiocode
|
|
228
240
|
|
|
229
241
|
# Created by https://www.toptal.com/developers/gitignore/api/emacs
|
|
@@ -318,6 +330,7 @@ npm-debug.log*
|
|
|
318
330
|
yarn-debug.log*
|
|
319
331
|
yarn-error.log*
|
|
320
332
|
lerna-debug.log*
|
|
333
|
+
.pnpm-debug.log*
|
|
321
334
|
|
|
322
335
|
# Diagnostic reports (https://nodejs.org/api/report.html)
|
|
323
336
|
report.[0-9]*.[0-9]*.[0-9]*.[0-9]*.json
|
|
@@ -354,8 +367,8 @@ build/Release
|
|
|
354
367
|
node_modules/
|
|
355
368
|
jspm_packages/
|
|
356
369
|
|
|
357
|
-
#
|
|
358
|
-
|
|
370
|
+
# Snowpack dependency directory (https://snowpack.dev/)
|
|
371
|
+
web_modules/
|
|
359
372
|
|
|
360
373
|
# TypeScript cache
|
|
361
374
|
*.tsbuildinfo
|
|
@@ -384,7 +397,7 @@ typings/
|
|
|
384
397
|
# dotenv environment variables file
|
|
385
398
|
.env
|
|
386
399
|
.env.test
|
|
387
|
-
.env
|
|
400
|
+
.env.production
|
|
388
401
|
|
|
389
402
|
# parcel-bundler cache (https://parceljs.org/)
|
|
390
403
|
.cache
|
|
@@ -392,6 +405,7 @@ typings/
|
|
|
392
405
|
|
|
393
406
|
# Next.js build output
|
|
394
407
|
.next
|
|
408
|
+
out
|
|
395
409
|
|
|
396
410
|
# Nuxt.js build / generate output
|
|
397
411
|
.nuxt
|
|
@@ -421,4 +435,21 @@ dist
|
|
|
421
435
|
# Stores VSCode versions used for testing VSCode extensions
|
|
422
436
|
.vscode-test
|
|
423
437
|
|
|
438
|
+
# yarn v2
|
|
439
|
+
.yarn/cache
|
|
440
|
+
.yarn/unplugged
|
|
441
|
+
.yarn/build-state.yml
|
|
442
|
+
.yarn/install-state.gz
|
|
443
|
+
.pnp.*
|
|
444
|
+
|
|
445
|
+
### Node Patch ###
|
|
446
|
+
# Serverless Webpack directories
|
|
447
|
+
.webpack/
|
|
448
|
+
|
|
449
|
+
# Optional stylelint cache
|
|
450
|
+
.stylelintcache
|
|
451
|
+
|
|
452
|
+
# SvelteKit build / generate output
|
|
453
|
+
.svelte-kit
|
|
454
|
+
|
|
424
455
|
# End of https://www.toptal.com/developers/gitignore/api/node
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@willbooster/eslint-config-js",
|
|
3
|
-
"version": "6.
|
|
3
|
+
"version": "6.5.0",
|
|
4
4
|
"description": "A ESLint config for JavaScript projects",
|
|
5
5
|
"license": "Apache-2.0",
|
|
6
6
|
"author": "WillBooster Inc.",
|
|
@@ -8,22 +8,19 @@
|
|
|
8
8
|
"scripts": {
|
|
9
9
|
"cleanup": "yarn format",
|
|
10
10
|
"format": "sort-package-json && yarn prettify",
|
|
11
|
-
"prettify": "prettier --write \"**/{.*/,}*.{css,htm,html,js,json,jsx,md,scss,ts,tsx,vue,yaml,yml}\" \"!**/test-fixtures/**\"
|
|
11
|
+
"prettify": "prettier --color --write \"**/{.*/,}*.{cjs,css,htm,html,js,json,json5,jsx,md,mjs,scss,ts,tsx,vue,yaml,yml}\" \"!**/test-fixtures/**\""
|
|
12
12
|
},
|
|
13
13
|
"prettier": "@willbooster/prettier-config",
|
|
14
14
|
"devDependencies": {
|
|
15
|
-
"@willbooster/prettier-config": "^6.
|
|
16
|
-
"
|
|
17
|
-
"
|
|
18
|
-
"eslint-plugin-import": "2.22.1",
|
|
19
|
-
"prettier": "2.2.1",
|
|
20
|
-
"sort-package-json": "1.49.0"
|
|
15
|
+
"@willbooster/prettier-config": "^6.5.0",
|
|
16
|
+
"prettier": "2.4.1",
|
|
17
|
+
"sort-package-json": "1.53.1"
|
|
21
18
|
},
|
|
22
19
|
"peerDependencies": {
|
|
23
|
-
"@willbooster/prettier-config": ">=
|
|
24
|
-
"eslint": ">=
|
|
20
|
+
"@willbooster/prettier-config": ">=6",
|
|
21
|
+
"eslint": ">=8",
|
|
25
22
|
"eslint-config-prettier": ">=8",
|
|
26
23
|
"eslint-plugin-import": ">=2"
|
|
27
24
|
},
|
|
28
|
-
"gitHead": "
|
|
25
|
+
"gitHead": "e3e24949984b6a755a1fbacd9c6260c101ae9c9a"
|
|
29
26
|
}
|