This file contains hidden or 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
| # The following is an auto-generated list of all linter rules available in the Dart SDK as of version 3.8.1. | |
| # Add them to your analysis_options.yaml file and adjust as you see fit. | |
| # See: https://dart.dev/tools/linter-rules/all | |
| linter: | |
| rules: | |
| - always_declare_return_types | |
| - always_put_control_body_on_new_line | |
| - always_put_required_named_parameters_first | |
| - always_specify_types | |
| - always_use_package_imports |
This file contains hidden or 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
| # Disables rules that may conflict with Prettier | |
| # heading-increment - Heading levels should only increment by one level at a time | |
| #MD001: false | |
| # heading-style - Heading style | |
| MD003: false | |
| # ul-style - Unordered list style | |
| #MD004: false | |
| # list-indent - Inconsistent indentation for list items at the same level | |
| MD005: false |
This file contains hidden or 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
| // 🐦 Flutter imports: | |
| import 'package:flutter/foundation.dart'; | |
| import 'package:flutter/material.dart'; | |
| // 🌎 Project imports: | |
| import 'package:mirae/gen/colors.gen.dart'; | |
| extension ColorSchemeDebugExtension on ColorScheme { | |
| /// Human-friendly dump of the ColorScheme. | |
| /// |
This file contains hidden or 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
| import { useState } from 'react'; | |
| type AppLocale = 'en-US' | 'es-ES' | 'ko-KR'; | |
| type Translations = { | |
| [K in AppLocale]: { | |
| [key: string]: string; | |
| }; | |
| }; | |
| const TRANSLATIONS: Translations = { |
This file contains hidden or 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
| // 🎯 Dart imports: | |
| import 'dart:io'; | |
| import 'dart:ui'; | |
| // 🐦 Flutter imports: | |
| import 'package:flutter/foundation.dart'; | |
| import 'package:flutter/widgets.dart'; | |
| // 📦 Package imports: | |
| import 'package:logger/logger.dart'; |
This file contains hidden or 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
| #!/usr/bin/env bash | |
| # ANSI codes | |
| BOLD="\033[1m" | |
| GREEN="\033[32m" | |
| YELLOW="\033[33m" | |
| RED="\033[31m" | |
| BLUE="\033[34m" | |
| GRAY="\033[90m" | |
| RESET="\033[0m" |
This file contains hidden or 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
| // 🐦 Flutter imports: | |
| import 'package:flutter/material.dart'; | |
| // 📦 Package imports: | |
| import 'package:json_annotation/json_annotation.dart'; | |
| /// A [JsonConverter] between Flutter [Color] (ARGB) | |
| /// and web/Figma-style hex strings using `RRGGBBAA` (RGBA) format, | |
| /// optionally prefixed with `#`. | |
| /// |
This file contains hidden or 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
| // 🎯 Dart imports: | |
| import 'dart:async'; | |
| import 'dart:math' as math; | |
| // 🐦 Flutter imports: | |
| import 'package:flutter/cupertino.dart'; | |
| import 'package:flutter/foundation.dart'; | |
| import 'package:flutter/material.dart'; | |
| /// Extension on [BuildContext] that provides convenient methods for displaying |
This file contains hidden or 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
| import 'dart:io'; | |
| import 'package:path/path.dart' as p; | |
| import 'package:sass/sass.dart' as sass; | |
| /// Recursively compiles all `*.module.scss` files under directory into sibling `*.module.css` files. | |
| void main(List<String> arguments) { | |
| final src = arguments[0]; | |
| final srcDir = Directory('$src'); | |
| if (!srcDir.existsSync()) { |
NewerOlder