Skip to content

Commit

Permalink
style: format code with Prettier and StandardJS
Browse files Browse the repository at this point in the history
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
Dantemis committed Feb 1, 2024
1 parent e0dcdf8 commit 0ac115a
Show file tree
Hide file tree
Showing 2 changed files with 33 additions and 33 deletions.
10 changes: 5 additions & 5 deletions packages/city-data/src/createJSONL.mjs
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'))
56 changes: 28 additions & 28 deletions tooling/eslint/base.js
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

0 comments on commit 0ac115a

Please sign in to comment.