-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
style: format code with Prettier and StandardJS
This commit fixes the style issues introduced in ff9a81d according to the output from Prettier and StandardJS. Details: The-Creative-Programming-Group/Weather-App#184
- Loading branch information
Showing
2 changed files
with
33 additions
and
33 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
import fs from "fs" | ||
import jsonl from "jsonl" | ||
import fs from 'fs' | ||
import jsonl from 'jsonl' | ||
|
||
fs.createReadStream("./city-list.json") | ||
.pipe(jsonl()) | ||
.pipe(fs.createWriteStream("./city-list.jsonl")) | ||
fs.createReadStream('./city-list.json') | ||
.pipe(jsonl()) | ||
.pipe(fs.createWriteStream('./city-list.jsonl')) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,45 +1,45 @@ | ||
/** @type {import("eslint").Linter.Config} */ | ||
const config = { | ||
extends: [ | ||
"turbo", | ||
"eslint:recommended", | ||
"plugin:@typescript-eslint/recommended-type-checked", | ||
"plugin:@typescript-eslint/stylistic-type-checked", | ||
"prettier", | ||
'turbo', | ||
'eslint:recommended', | ||
'plugin:@typescript-eslint/recommended-type-checked', | ||
'plugin:@typescript-eslint/stylistic-type-checked', | ||
'prettier' | ||
], | ||
env: { | ||
es2022: true, | ||
node: true, | ||
node: true | ||
}, | ||
parser: "@typescript-eslint/parser", | ||
parser: '@typescript-eslint/parser', | ||
parserOptions: { project: true }, | ||
plugins: ["@typescript-eslint", "import"], | ||
plugins: ['@typescript-eslint', 'import'], | ||
rules: { | ||
"turbo/no-undeclared-env-vars": "off", | ||
"@typescript-eslint/no-unused-vars": [ | ||
"error", | ||
{ argsIgnorePattern: "^_", varsIgnorePattern: "^_" }, | ||
'turbo/no-undeclared-env-vars': 'off', | ||
'@typescript-eslint/no-unused-vars': [ | ||
'error', | ||
{ argsIgnorePattern: '^_', varsIgnorePattern: '^_' } | ||
], | ||
"@typescript-eslint/consistent-type-imports": [ | ||
"warn", | ||
{ prefer: "type-imports", fixStyle: "separate-type-imports" }, | ||
'@typescript-eslint/consistent-type-imports': [ | ||
'warn', | ||
{ prefer: 'type-imports', fixStyle: 'separate-type-imports' } | ||
], | ||
"@typescript-eslint/no-misused-promises": [ | ||
'@typescript-eslint/no-misused-promises': [ | ||
2, | ||
{ checksVoidReturn: { attributes: false } }, | ||
{ checksVoidReturn: { attributes: false } } | ||
], | ||
"import/consistent-type-specifier-style": ["error", "prefer-top-level"], | ||
'import/consistent-type-specifier-style': ['error', 'prefer-top-level'] | ||
}, | ||
ignorePatterns: [ | ||
"**/*.config.js", | ||
"**/*.config.cjs", | ||
"**/.eslintrc.cjs", | ||
".next", | ||
"dist", | ||
"pnpm-lock.yaml", | ||
"_generated", | ||
'**/*.config.js', | ||
'**/*.config.cjs', | ||
'**/.eslintrc.cjs', | ||
'.next', | ||
'dist', | ||
'pnpm-lock.yaml', | ||
'_generated' | ||
], | ||
reportUnusedDisableDirectives: true, | ||
}; | ||
reportUnusedDisableDirectives: true | ||
} | ||
|
||
module.exports = config; | ||
module.exports = config |