| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -68,7 +68,7 @@ module.exports = { | |||
| 68 | 68 | files: ['**/*.md/*.cjs', '**/*.md/*.js'], | |
| 69 | 69 | parserOptions: { | |
| 70 | 70 | sourceType: 'script', | |
| 71 | - ecmaFeatures: { impliedStrict: true } | ||
| 71 | + ecmaFeatures: { impliedStrict: true }, | ||
| 72 | 72 | }, | |
| 73 | 73 | rules: { strict: 'off' }, | |
| 74 | 74 | }, | |
@@ -103,11 +103,11 @@ module.exports = { | |||
| 103 | 103 | }, | |
| 104 | 104 | { | |
| 105 | 105 | name: 'Buffer', | |
| 106 | - message: 'Import Buffer instead of using the global' | ||
| 106 | + message: 'Import Buffer instead of using the global', | ||
| 107 | 107 | }, | |
| 108 | 108 | { | |
| 109 | 109 | name: 'process', | |
| 110 | - message: 'Import process instead of using the global' | ||
| 110 | + message: 'Import process instead of using the global', | ||
| 111 | 111 | }, | |
| 112 | 112 | ] }, | |
| 113 | 113 | }, | |
@@ -134,13 +134,7 @@ module.exports = { | |||
| 134 | 134 | ignorePattern: '.*', | |
| 135 | 135 | }, | |
| 136 | 136 | }], | |
| 137 | - 'comma-dangle': ['error', { | ||
| 138 | - arrays: 'always-multiline', | ||
| 139 | - exports: 'only-multiline', | ||
| 140 | - functions: 'only-multiline', | ||
| 141 | - imports: 'only-multiline', | ||
| 142 | - objects: 'only-multiline', | ||
| 143 | - }], | ||
| 137 | + 'comma-dangle': ['error', 'always-multiline'], | ||
| 144 | 138 | 'comma-spacing': 'error', | |
| 145 | 139 | 'comma-style': 'error', | |
| 146 | 140 | 'computed-property-spacing': 'error', | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -5,4 +5,11 @@ env: | |||
| 5 | 5 | es6: true | |
| 6 | 6 | ||
| 7 | 7 | rules: | |
| 8 | + comma-dangle: [error, { | ||
| 9 | + arrays: always-multiline, | ||
| 10 | + exports: only-multiline, | ||
| 11 | + functions: only-multiline, | ||
| 12 | + imports: only-multiline, | ||
| 13 | + objects: only-multiline, | ||
| 14 | + }] | ||
| 8 | 15 | prefer-arrow-callback: error | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -15,4 +15,3 @@ rules: | |||
| 15 | 15 | ||
| 16 | 16 | # Stylistic Issues | |
| 17 | 17 | no-multiple-empty-lines: [error, {max: 1, maxEOF: 0, maxBOF: 0}] | |
| 18 | - comma-dangle: [error, always-multiline] | ||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -2,6 +2,13 @@ env: | |||
| 2 | 2 | es6: true | |
| 3 | 3 | ||
| 4 | 4 | rules: | |
| 5 | + comma-dangle: [error, { | ||
| 6 | + arrays: always-multiline, | ||
| 7 | + exports: only-multiline, | ||
| 8 | + functions: only-multiline, | ||
| 9 | + imports: only-multiline, | ||
| 10 | + objects: only-multiline, | ||
| 11 | + }] | ||
| 5 | 12 | prefer-object-spread: error | |
| 6 | 13 | no-buffer-constructor: error | |
| 7 | 14 | no-mixed-operators: | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -31,7 +31,7 @@ async function buildAddon(dir) { | |||
| 31 | 31 | await execFile(process.execPath, [nodeGyp, 'rebuild', `--directory=${dir}`], | |
| 32 | 32 | { | |
| 33 | 33 | stdio: 'inherit', | |
| 34 | - env: { ...process.env, MAKEFLAGS: '-j1' } | ||
| 34 | + env: { ...process.env, MAKEFLAGS: '-j1' }, | ||
| 35 | 35 | }); | |
| 36 | 36 | ||
| 37 | 37 | // We buffer the output and print it out once the process is done in order | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -38,7 +38,7 @@ tree.children.forEach((node) => { | |||
| 38 | 38 | ||
| 39 | 39 | await Promise.all( | |
| 40 | 40 | Object.keys(addons).flatMap( | |
| 41 | - (header) => verifyFiles(addons[header].files, header) | ||
| 41 | + (header) => verifyFiles(addons[header].files, header), | ||
| 42 | 42 | )); | |
| 43 | 43 | ||
| 44 | 44 | function verifyFiles(files, blockName) { | |
@@ -82,8 +82,8 @@ ${files[name].replace( | |||
| 82 | 82 | sources: files.map(({ name }) => name), | |
| 83 | 83 | includes: ['../common.gypi'], | |
| 84 | 84 | }, | |
| 85 | - ] | ||
| 86 | - }) | ||
| 85 | + ], | ||
| 86 | + }), | ||
| 87 | 87 | }); | |
| 88 | 88 | ||
| 89 | 89 | const dirCreation = mkdir(dir); | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -96,8 +96,8 @@ all = all.slice(0, apiStart.index + apiStart[0].length) | |||
| 96 | 96 | '\n</head>', | |
| 97 | 97 | buildCSSForFlavoredJS(new Set(Array.from( | |
| 98 | 98 | apicontent.matchAll(/(?<=<pre class="with-)\d+(?=-chars">)/g), | |
| 99 | - (x) => Number(x[0]) | ||
| 100 | - ))) + '\n</head>' | ||
| 99 | + (x) => Number(x[0]), | ||
| 100 | + ))) + '\n</head>', | ||
| 101 | 101 | ) + | |
| 102 | 102 | apicontent + | |
| 103 | 103 | all.slice(apiEnd); | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -18,7 +18,7 @@ const results = { | |||
| 18 | 18 | modules: [], | |
| 19 | 19 | classes: [], | |
| 20 | 20 | globals: [], | |
| 21 | - methods: [] | ||
| 21 | + methods: [], | ||
| 22 | 22 | }; | |
| 23 | 23 | ||
| 24 | 24 | // Identify files that should be skipped. As files are processed, they | |
@@ -33,7 +33,7 @@ for (const link of toc.match(/<a.*?>/g)) { | |||
| 33 | 33 | if (!jsonFiles.includes(json) || seen.has(json)) continue; | |
| 34 | 34 | const data = JSON.parse( | |
| 35 | 35 | fs.readFileSync(new URL(`./${json}`, source), 'utf8') | |
| 36 | - .replace(/<a href=\\"#/g, `<a href=\\"${href}#`) | ||
| 36 | + .replace(/<a href=\\"#/g, `<a href=\\"${href}#`), | ||
| 37 | 37 | ); | |
| 38 | 38 | ||
| 39 | 39 | for (const property in data) { | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -27,7 +27,7 @@ function execSync(command) { | |||
| 27 | 27 | try { | |
| 28 | 28 | return child_process.execSync( | |
| 29 | 29 | command, | |
| 30 | - { stdio: ['ignore', null, 'ignore'] } | ||
| 30 | + { stdio: ['ignore', null, 'ignore'] }, | ||
| 31 | 31 | ).toString().trim(); | |
| 32 | 32 | } catch { | |
| 33 | 33 | return ''; | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -27,7 +27,7 @@ const testHeading = (headingNode, expectedDeprecationCode) => { | |||
| 27 | 27 | assert.strictEqual( | |
| 28 | 28 | headingNode?.children[0]?.value.substring(0, 9), | |
| 29 | 29 | `${expectedDeprecationCode}: `, | |
| 30 | - 'Ill-formed or out-of-order deprecation code.' | ||
| 30 | + 'Ill-formed or out-of-order deprecation code.', | ||
| 31 | 31 | ); | |
| 32 | 32 | } catch (e) { | |
| 33 | 33 | throw addMarkdownPathToErrorStack(e, headingNode); | |
@@ -39,7 +39,7 @@ const testYAMLComment = (commentNode) => { | |||
| 39 | 39 | assert.match( | |
| 40 | 40 | commentNode?.value?.substring(0, 21), | |
| 41 | 41 | /^<!-- YAML\r?\nchanges:\r?\n/, | |
| 42 | - 'Missing or ill-formed YAML comment.' | ||
| 42 | + 'Missing or ill-formed YAML comment.', | ||
| 43 | 43 | ); | |
| 44 | 44 | } catch (e) { | |
| 45 | 45 | throw addMarkdownPathToErrorStack(e, commentNode); | |
@@ -51,7 +51,7 @@ const testDeprecationType = (paragraphNode) => { | |||
| 51 | 51 | assert.strictEqual( | |
| 52 | 52 | paragraphNode?.children[0]?.value?.substring(0, 6), | |
| 53 | 53 | 'Type: ', | |
| 54 | - 'Missing deprecation type.' | ||
| 54 | + 'Missing deprecation type.', | ||
| 55 | 55 | ); | |
| 56 | 56 | } catch (e) { | |
| 57 | 57 | throw addMarkdownPathToErrorStack(e, paragraphNode); | |
@@ -74,7 +74,7 @@ for (let i = 0; i < tree.children.length; i++) { | |||
| 74 | 74 | assert.strictEqual( | |
| 75 | 75 | deprecationCodeAsText, | |
| 76 | 76 | expectedDeprecationCode, | |
| 77 | - 'Deprecation codes are not ordered correctly.' | ||
| 77 | + 'Deprecation codes are not ordered correctly.', | ||
| 78 | 78 | ); | |
| 79 | 79 | } catch (e) { | |
| 80 | 80 | throw addMarkdownPathToErrorStack(e, node); | |
| Back | FazBrowse Home | New Git URL |
0 commit comments