pFad - Phone/Frame/Anonymizer/Declutterfier! Saves Data!


--- a PPN by Garber Painting Akron. With Image Size Reduction included!

URL: http://github.com/browserify/resolve/commit/49776b28638fd104f7393a6f22eefebf7202ed00

9407.css" /> [Dev Deps] update `eslint`, `@ljharb/eslint-config`, `npmignore`, `tape` · browserify/resolve@49776b2 · GitHub
Skip to content

Commit 49776b2

Browse files
committed
[Dev Deps] update eslint, @ljharb/eslint-config, npmignore, tape
1 parent 6b0aeb4 commit 49776b2

File tree

4 files changed

+87
-73
lines changed

4 files changed

+87
-73
lines changed

.editorconfig

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,15 +9,16 @@ trim_trailing_whitespace = true
99
insert_final_newline = true
1010
max_line_length = 200
1111

12-
[*.js]
12+
[*.{,m}js]
1313
block_comment_start = /*
1414
block_comment = *
1515
block_comment_end = */
1616

1717
[*.yml]
18+
indent_style = space
1819
indent_size = 1
1920

20-
[package.json]
21+
[{package.json,*.mjs}]
2122
indent_style = tab
2223

2324
[CHANGELOG.md]

.eslintrc

Lines changed: 0 additions & 66 deletions
This file was deleted.

eslint.config.mjs

Lines changed: 79 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,79 @@
1+
import ljharb from '@ljharb/eslint-config/flat';
2+
3+
export default [
4+
...ljharb,
5+
{
6+
ignores: [
7+
'test/resolver/malformed_package_json/package.json',
8+
'test/list-exports/**',
9+
],
10+
},
11+
{
12+
rules: {
13+
'array-bracket-newline': 'off',
14+
complexity: 'off',
15+
'consistent-return': 'off',
16+
curly: 'off',
17+
'dot-notation': ['error', { allowKeywords: true }],
18+
'func-name-matching': 'off',
19+
'func-style': 'off',
20+
'global-require': 'warn',
21+
'id-length': ['error', { min: 1, max: 40 }],
22+
'max-lines-per-function': 'warn',
23+
'max-lines': ['error', 360],
24+
'max-nested-callbacks': 'off',
25+
'max-params': 'off',
26+
'max-statements-per-line': ['error', { max: 2 }],
27+
'max-statements': 'off',
28+
'multiline-comment-style': 'off',
29+
'no-magic-numbers': 'off',
30+
'no-shadow': 'off',
31+
'no-use-before-define': 'off',
32+
'sort-keys': 'off',
33+
strict: 'off',
34+
},
35+
},
36+
{
37+
files: ['**/*.js'],
38+
rules: {
39+
indent: ['error', 4],
40+
},
41+
},
42+
{
43+
files: ['bin/**'],
44+
rules: {
45+
'no-process-exit': 'off',
46+
},
47+
},
48+
{
49+
files: ['example/**'],
50+
rules: {
51+
'no-console': 'off',
52+
},
53+
},
54+
{
55+
files: ['test/resolver/nested_symlinks/mylib/*.js'],
56+
rules: {
57+
'no-throw-literal': 'off',
58+
},
59+
},
60+
{
61+
files: ['test/**'],
62+
languageOptions: {
63+
ecmaVersion: 5,
64+
parserOptions: {
65+
allowReserved: false,
66+
},
67+
},
68+
rules: {
69+
'dot-notation': ['error', { allowPattern: 'throws' }],
70+
'max-lines': 'off',
71+
'max-lines-per-function': 'off',
72+
'no-unused-vars': ['error', {
73+
vars: 'all',
74+
args: 'none',
75+
caughtErrors: 'none',
76+
}],
77+
},
78+
},
79+
];

package.json

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -32,8 +32,8 @@
3232
"prepack": "npmignore --auto --commentLines=autogenerated",
3333
"prepublishOnly": "safe-publish-latest",
3434
"prepublish": "not-in-publish || npm run prepublishOnly",
35-
"prelint": "eclint check $(git ls-files | grep -Ev test/list-exports$ | xargs find 2> /dev/null | grep -vE 'node_modules|\\.git')",
36-
"lint": "eslint --ext=js,mjs --no-eslintrc -c .eslintrc . 'bin/**'",
35+
"prelint": "eclint check $(git ls-files | grep -Ev test\\/list-exports$ | xargs find 2> /dev/null | grep -vE 'node_modules|\\.git')",
36+
"lint": "eslint .",
3737
"pretests-only": "cd ./test/resolver/nested_symlinks && node mylib/sync && node mylib/async",
3838
"tests-only": "tape test/*.js",
3939
"pretest": "npm run lint",
@@ -56,15 +56,15 @@
5656
"supports-preserve-symlinks-flag": "^1.0.0"
5757
},
5858
"devDependencies": {
59-
"@ljharb/eslint-config": "^21.2.0",
59+
"@ljharb/eslint-config": "^22.0.2",
6060
"array.prototype.map": "^1.0.8",
6161
"copy-dir": "^1.3.0",
6262
"eclint": "^2.8.1",
63-
"eslint": "=8.8.0",
63+
"eslint": "^9.39.1",
6464
"in-publish": "^2.0.1",
6565
"mkdirp": "^0.5.6",
6666
"mv": "^2.1.1",
67-
"npmignore": "^0.3.1",
67+
"npmignore": "^0.3.2",
6868
"object-keys": "^1.1.1",
6969
"rimraf": "^2.7.1",
7070
"safe-publish-latest": "^2.0.0",

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad © 2024 Your Company Name. All rights reserved.





Check this box to remove all script contents from the fetched content.



Check this box to remove all images from the fetched content.


Check this box to remove all CSS styles from the fetched content.


Check this box to keep images inefficiently compressed and original size.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy